/*
╔═══════════════════════════════════════════════════════════════════════════════╗
║                                                                               ║
║   ART BLOG TEMPLATE - STYLESHEET                                             ║
║   Bento Grid / Colorful Brutalist Design                                     ║
║                                                                               ║
║   HOW TO CUSTOMIZE:                                                          ║
║   - Most colors can be changed in the Settings panel after setup             ║
║   - For deeper customization, edit the CSS variables in :root below          ║
║   - Each section is labeled so you can find what you want to change          ║
║                                                                               ║
║   COLOR SCHEME:                                                               ║
║   - Orange (#ff6b35) - Primary accent, buttons, highlights                   ║
║   - Lime (#c8ff00) - Secondary accent, like buttons, active states           ║
║   - Pink (#ff3c8e) - Dislike buttons, warnings                               ║
║   - Purple (#8b5cf6) - Alternative accent                                    ║
║   - Blue (#00d4ff) - Links, info highlights                                  ║
║                                                                               ║
║   LICENSE: MIT - Free to use and modify                                       ║
║                                                                               ║
╚═══════════════════════════════════════════════════════════════════════════════╝
*/


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 1: FONTS & VARIABLES
   
   This section loads fonts and defines CSS variables (custom properties).
   Variables let you change a color in one place and it updates everywhere.
   
   To change the fonts:
   1. Go to fonts.google.com and pick fonts you like
   2. Replace the @import URL below
   3. Update the --font-display, --font-body, and --font-mono variables
   
═══════════════════════════════════════════════════════════════════════════════ */

/* 
   Google Fonts Import
   - Space Grotesk: Clean, modern sans-serif for body text
   - Bebas Neue: Bold, impactful display font for headings
   - JetBrains Mono: Monospace font for code-like elements
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Bebas+Neue&family=JetBrains+Mono:wght@400;500&display=swap');

/*
   CSS Variables (Custom Properties)
   These are like "settings" you can change to customize the whole site.
   Format: --variable-name: value;
   Usage: var(--variable-name)
*/
:root {
    /* ─────────────────────────────────────────────────────────────────────────
       CORE COLOR PALETTE
       Change these to completely transform the look of your blog
    ───────────────────────────────────────────────────────────────────────── */
    --bg-dark: #0d0d0d;      /* Main background - very dark gray */
    --bg-card: #1a1a1a;      /* Card/panel backgrounds - slightly lighter */
    --orange: #ff6b35;       /* Primary accent - energetic orange */
    --lime: #c8ff00;         /* Secondary accent - electric lime green */
    --pink: #ff3c8e;         /* Tertiary accent - hot pink */
    --purple: #8b5cf6;       /* Alternative accent - vibrant purple */
    --blue: #00d4ff;         /* Info/link color - cyan blue */
    --white: #ffffff;        /* Pure white for text */
    --gray: #888888;         /* Muted text color */
    --border: #333333;       /* Border color - subtle dark gray */
    
    /* ─────────────────────────────────────────────────────────────────────────
       MAPPED VARIABLES
       These map to the color picker values in Settings.
       They get overwritten by JavaScript when you change settings.
    ───────────────────────────────────────────────────────────────────────── */
    --background-color: var(--bg-dark);
    --text-color: var(--white);
    --sidebar-bg: var(--bg-card);
    --header-footer-color: var(--bg-dark);
    --accent-color: var(--orange);
    --accent-secondary: var(--lime);    /* Used for success states */
    --accent-tertiary: var(--orange);   /* Used for loading states */
    --leaflet-bg: var(--bg-card);
    --border-color: var(--border);
    --nav-active-color: var(--lime);
    
    /* Reaction button colors */
    --like-color: var(--lime);
    --dislike-color: var(--pink);
    --like-btn-color: var(--bg-dark);    /* Text on like button */
    --dislike-btn-color: var(--bg-dark); /* Text on dislike button */
    
    /* Layout spacing */
    --widget-padding: 1.5rem;
    --bg-image: none;  /* Set via Settings for background image */
    
    /* ─────────────────────────────────────────────────────────────────────────
       TYPOGRAPHY
       Change these to use different fonts
    ───────────────────────────────────────────────────────────────────────── */
    --font-display: 'Bebas Neue', sans-serif;     /* For big headings */
    --font-body: 'Space Grotesk', sans-serif;     /* For regular text */
    --font-mono: 'JetBrains Mono', monospace;     /* For labels/code */
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 2: CSS RESET & BASE STYLES
   
   This section resets browser defaults and sets up base styles.
   You usually don't need to change anything here.
   
═══════════════════════════════════════════════════════════════════════════════ */

/* Reset all elements to use border-box sizing (makes layouts easier) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scrolling when clicking anchor links */
html {
    scroll-behavior: smooth;
}

/* Main body styles */
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    background-image: var(--bg-image);
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    line-height: 1.6;          /* Space between lines of text */
    min-height: 100vh;         /* At least full viewport height */
    position: relative;
    overflow-x: hidden;        /* Prevent horizontal scroll */
}

/* 
   GRID PATTERN BACKGROUND
   Creates a subtle grid overlay on the entire page.
   To remove: Delete this entire body::before block
*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;  /* Grid cell size */
    pointer-events: none;
    z-index: -1;
}

/* 
   FLOATING ACCENT CIRCLE
   Creates a glowing orb in the background for visual interest.
   To remove: Delete this entire body::after block
*/
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

/* Floating animation for the accent circle */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Text selection highlight color */
::selection {
    background: var(--orange);
    color: var(--bg-dark);
}

/* Default link styles */
a {
    color: var(--orange);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--lime);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 3: SCROLLBAR STYLING
   
   Custom scrollbar design. Only works in Chrome, Edge, and Safari.
   Firefox uses its own scrollbar (can't be styled the same way).
   
═══════════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;   /* Vertical scrollbar width */
    height: 8px;  /* Horizontal scrollbar height */
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);  /* Track (background) color */
}

::-webkit-scrollbar-thumb {
    background: var(--orange);   /* Draggable part color */
    border-radius: 0;            /* Square edges (0) or rounded (4px) */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lime);     /* Color when hovering */
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 4: LAYOUT STRUCTURE
   
   The main layout containers that hold everything together.
   
═══════════════════════════════════════════════════════════════════════════════ */

/* Main container - centers content and sets max width */
.container {
    max-width: 1400px;  /* Maximum width of the content */
    margin: 0 auto;     /* Center horizontally */
    padding: 0 1.5rem;  /* Side padding */
}

/* 
   Two-column layout: Sidebar + Main content
   Uses CSS Grid for easy responsive design
*/
.layout-wrapper {
    display: grid;
    grid-template-columns: 180px 1fr;  /* Sidebar: 180px, Content: rest */
    gap: 1rem;                          /* Space between columns */
    min-height: calc(100vh - 200px);
    padding: 1rem 0;
}

/* On tablets and smaller: Stack vertically */
@media (max-width: 900px) {
    .layout-wrapper {
        grid-template-columns: 1fr;  /* Single column */
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 5: HEADER
   
   The top bar with your site name, tagline, and status indicator.
   
═══════════════════════════════════════════════════════════════════════════════ */

#site-header-block {
    background: var(--bg-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.header-overlay {
    padding: 1rem 2rem;
    position: relative;
}

/* Flexbox row for header content */
.header-row {
    display: flex;
    justify-content: space-between;  /* Push items to edges */
    align-items: center;
    flex-wrap: wrap;                 /* Wrap on small screens */
    gap: 1rem;
}

/* Left side: Logo + titles */
.header-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Profile picture in header */
.site-pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;              /* Make it circular */
    object-fit: cover;               /* Crop to fit */
    border: 2px solid var(--orange);
    transition: all 0.3s ease;
}

.site-pfp:hover {
    border-color: var(--lime);
    transform: scale(1.1);           /* Grow on hover */
}

/* Site name / logo */
.header-titles h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.1em;           /* Space out letters */
    line-height: 1;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pulsing dot before site name */
.header-titles h1::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--lime);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tagline under site name */
.site-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Adds "// " before tagline */
.site-tagline::before {
    content: '// ';
    color: var(--orange);
}

/* Status indicator (right side of header) */
#db-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

/* When system is online */
#db-status.online {
    color: var(--lime);
    border-color: var(--lime);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 6: MARQUEE BANNER
   
   The scrolling text banner below the header.
   
   TO CUSTOMIZE THE TEXT: Edit the <span> elements in index.html
   TO CHANGE THE SPEED: Modify the "20s" in the animation below
   TO REMOVE: Delete the .marquee-container div in index.html
   
═══════════════════════════════════════════════════════════════════════════════ */

.marquee-container {
    overflow: hidden;
    background: var(--orange);       /* Banner background color */
    padding: 0.6rem 0;
}

.marquee {
    display: flex;
    animation: scroll 20s linear infinite;  /* 20s = speed (lower = faster) */
    white-space: nowrap;
}

.marquee span {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--bg-dark);           /* Text color */
    padding: 0 1.5rem;
}

/* Star separator between items */
.marquee span::after {
    content: '✦';                    /* Change this symbol if you want */
    margin-left: 1.5rem;
}

/* Scrolling animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }  /* Moves half width for seamless loop */
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 7: SIDEBAR NAVIGATION
   
   The left sidebar with navigation buttons.
   
═══════════════════════════════════════════════════════════════════════════════ */

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;                /* Sticks when scrolling */
    top: 1rem;
    height: fit-content;
}

/* "NAVIGATION" label at top */
.sidebar::before {
    content: '// NAVIGATION';
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Navigation buttons */
.nav-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

/* "//" prefix on hover */
.nav-btn::before {
    content: '//';
    margin-right: 0.5rem;
    color: var(--orange);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
}

.nav-btn:hover::before {
    opacity: 1;
}

/* Active/selected state */
.nav-btn.active {
    background: var(--orange);
    color: var(--bg-dark);
    font-weight: 500;
}

.nav-btn.active::before {
    opacity: 1;
    color: var(--bg-dark);
}

/* Mobile: Horizontal navigation */
@media (max-width: 900px) {
    .sidebar {
        flex-direction: row;
        position: relative;
        top: 0;
        overflow-x: auto;            /* Scrollable on mobile */
        border-radius: 8px;
        padding: 1rem;
    }
    
    .sidebar::before {
        display: none;               /* Hide "NAVIGATION" label */
    }
    
    .nav-btn {
        white-space: nowrap;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 8: MAIN CONTENT AREA
   
   The area where posts, gallery, and admin panels appear.
   
═══════════════════════════════════════════════════════════════════════════════ */

main {
    min-height: 500px;
}

/* Tab sections (hidden by default, shown when active) */
.view-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view-section.active {
    display: block;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section headings */
.view-section h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Green dot before section headings */
.view-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 9: POST CARDS (LEAFLETS)
   
   The individual post/artwork cards in the feed.
   These use a "bento grid" layout that adapts to screen size.
   
═══════════════════════════════════════════════════════════════════════════════ */

/* Grid container for posts */
#leaflets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  /* Responsive columns */
    gap: 1rem;
}

@media (max-width: 500px) {
    #leaflets-container {
        grid-template-columns: 1fr;  /* Single column on mobile */
    }
}

/* Individual post card */
.leaflet-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover effect: Lift up and highlight border */
.leaflet-item:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

/* 
   COLORFUL TOP ACCENT BARS
   Each post gets a different color accent at the top.
   Uses :nth-child to cycle through colors.
*/
.leaflet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);       /* Default: orange */
}

.leaflet-item:nth-child(2n)::before {
    background: var(--lime);         /* Every 2nd: lime */
}

.leaflet-item:nth-child(3n)::before {
    background: var(--pink);         /* Every 3rd: pink */
}

.leaflet-item:nth-child(4n)::before {
    background: var(--purple);       /* Every 4th: purple */
}

.leaflet-item:nth-child(5n)::before {
    background: var(--blue);         /* Every 5th: blue */
}

/* Avatar (hidden in this design) */
.leaflet-avatar {
    display: none;
}

/* Post body content */
.leaflet-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Post header: Author + Date */
.leaflet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.leaflet-author {
    color: var(--orange);
    font-weight: 500;
}

/* Comment count badge */
.comment-count {
    margin-left: auto;
    padding: 0.25rem 0.6rem;
    background: var(--border);
    border-radius: 12px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-count:hover {
    background: var(--blue);
    color: var(--bg-dark);
}

/* Post text content */
.leaflet-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.leaflet-content p {
    margin-bottom: 0.75rem;
}

.leaflet-content a {
    color: var(--blue);
    border-bottom: 1px dashed var(--blue);
}

.leaflet-content a:hover {
    color: var(--lime);
    border-color: var(--lime);
}

.leaflet-content strong {
    color: var(--lime);
}

.leaflet-content code {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────────────────────────────
   POST MEDIA (Images/Videos)
   
   object-fit: contain = Show full image without cropping
   object-fit: cover = Crop to fill (use if you want cropped images)
───────────────────────────────────────────────────────────────────────────── */

.leaflet-media-container {
    margin: 0.5rem -1.5rem;          /* Extend to card edges */
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);      /* Background for letterboxing */
}

.leaflet-media-container img,
.leaflet-media-container video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;             /* Show full image (not cropped) */
    display: block;
    transition: transform 0.5s ease;
    background: var(--bg-dark);
}

/* Slight zoom on hover */
.leaflet-item:hover .leaflet-media-container img,
.leaflet-item:hover .leaflet-media-container video {
    transform: scale(1.02);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 10: REACTION BUTTONS (Like/Dislike)
   
   The like/dislike widget at the bottom of each post.
   
═══════════════════════════════════════════════════════════════════════════════ */

.reaction-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;                /* Push to bottom of card */
}

.reaction-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

/* Like button (green) */
.reaction-btn.like-btn {
    color: var(--bg-dark);
    background: var(--lime);
    border-color: var(--lime);
}

.reaction-btn.like-btn:hover {
    background: #d9ff33;             /* Lighter green on hover */
    transform: translateY(-2px);
}

/* Dislike button (pink) */
.reaction-btn.dislike-btn {
    color: var(--bg-dark);
    background: var(--pink);
    border-color: var(--pink);
}

.reaction-btn.dislike-btn:hover {
    background: #ff5da3;             /* Lighter pink on hover */
    transform: translateY(-2px);
}

/* Already voted state */
.reaction-btn.voted {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.reaction-btn.voted::after {
    content: ' ✓';                   /* Checkmark after text */
}

.reaction-btn.like-btn.voted {
    background: #a8cc00;             /* Darker when voted */
}

.reaction-btn.dislike-btn.voted {
    background: #cc3070;
}

/* Progress bar between buttons */
.reaction-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* Filled portion of the bar */
.reaction-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lime), var(--orange));
    transition: width 0.5s ease;
    border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 11: IMAGE GALLERY
   
   Grid of all images from posts.
   
═══════════════════════════════════════════════════════════════════════════════ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;                 /* Square aspect ratio */
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    background: var(--bg-card);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

/* Arrow icon that appears on hover */
.gallery-item::after {
    content: '↗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    background: var(--orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;             /* Show full image */
    background: var(--bg-dark);
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 12: ADMIN PANEL
   
   Styles for the admin dashboard, settings forms, and controls.
   
═══════════════════════════════════════════════════════════════════════════════ */

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.admin-panel h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-panel h3::before {
    content: '//';
    color: var(--lime);
}

.admin-panel h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--blue);
    margin: 1.5rem 0 1rem;
    letter-spacing: 0.1em;
}

/* Action buttons (Save, Post, etc.) */
.action-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    background: var(--orange);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--lime);
    transform: translateY(-2px);
}

/* Form inputs */
.setup-input,
.admin-panel input[type="text"],
.admin-panel input[type="password"],
.admin-panel textarea,
.admin-panel select {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--white);
    margin-bottom: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Input focus state */
.setup-input:focus,
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Grid layout for config options */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.config-item label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Color picker inputs */
.color-picker {
    width: 100%;
    height: 40px;
    padding: 4px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}

.color-picker:hover {
    border-color: var(--orange);
}

/* File upload wrapper */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-upload-wrapper input[type="file"] {
    font-family: var(--font-mono);
    font-size: 0.7rem;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 13: LIGHTBOX (Post Detail Modal)
   
   The popup that shows when you click on a post.
   
═══════════════════════════════════════════════════════════════════════════════ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;                        /* Fills entire screen */
    background: rgba(13, 13, 13, 0.95);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);     /* Blurs background */
}

.lightbox.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    position: relative;
    margin: auto;
    overflow: hidden;
}

/* Rainbow gradient top bar */
.lightbox-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple), var(--blue));
}

/* Close button */
.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--orange);
    transform: rotate(90deg);        /* Spin on hover */
}

#lightbox-body {
    padding: 0;
}

/* Post inside lightbox */
#lightbox-body .leaflet-item {
    cursor: default;
    border: none;
    border-radius: 0;
}

#lightbox-body .leaflet-item:hover {
    transform: none;                 /* Disable hover effect */
}

#lightbox-body .leaflet-item::before {
    display: none;                   /* No color bar */
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMMENTS SECTION (inside lightbox)
───────────────────────────────────────────────────────────────────────────── */

.comments-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.comments-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-section h3::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--lime);
    border-radius: 50%;
}

/* Comment list */
.comments-list,
.reply-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Nested replies - indented with border */
.reply-list {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin-top: 0.75rem;
}

/* Individual comment */
.comment-item {
    background: var(--bg-card);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.comment-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.comment-author {
    color: var(--orange);
    font-weight: 500;
}

/* Reply button */
.reply-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--blue);
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reply-btn:hover {
    color: var(--lime);
}

/* Comment form */
.comment-form {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.comment-form h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 14: MEDIA FULLSCREEN VIEWER
   
   The fullscreen popup for viewing images/videos.
   
═══════════════════════════════════════════════════════════════════════════════ */

.media-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.98);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.media-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.close-media-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.close-media-btn:hover {
    color: var(--orange);
    transform: rotate(90deg);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 15: SETUP WIZARD
   
   The initial setup screen that appears on first visit.
   
═══════════════════════════════════════════════════════════════════════════════ */

#setup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.setup-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Rainbow gradient top bar */
.setup-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--lime), var(--pink), var(--purple));
    border-radius: 12px 12px 0 0;
}

.setup-box h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--orange);
}

.setup-box h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--lime);
    letter-spacing: 0.1em;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 16: FOOTER
   
   Bottom of the page copyright notice.
   
═══════════════════════════════════════════════════════════════════════════════ */

footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    position: relative;
    margin-top: 2rem;
}

#footer-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    padding: 1.5rem;
    text-align: center;
}

/* Decorative diamonds */
#footer-text::before {
    content: '◈ ';
    color: var(--orange);
}

#footer-text::after {
    content: ' ◈';
    color: var(--lime);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 17: UTILITY CLASSES & STATES
   
   Helper classes used throughout the site.
   
═══════════════════════════════════════════════════════════════════════════════ */

/* Prevents scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Delete button styling */
.delete-btn {
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pink) !important;
    background: none;
    border: none;
    cursor: pointer;
}

.delete-btn:hover {
    color: var(--white) !important;
}

/* Sync status indicator */
.sync-status {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
}

.sync-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
}

.sync-indicator.synced {
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime);  /* Glow effect */
}

.sync-indicator.unsynced {
    background: var(--pink);
}

.sync-indicator.loading {
    background: var(--orange);
    animation: pulse 1s infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   
   SECTION 18: RESPONSIVE DESIGN
   
   Adjustments for different screen sizes.
   
═══════════════════════════════════════════════════════════════════════════════ */

/* Tablets and smaller laptops */
@media (max-width: 768px) {
    .header-overlay {
        padding: 1rem;
    }
    
    .header-titles h1 {
        font-size: 1.4rem;
    }
    
    .view-section h2 {
        font-size: 1.8rem;
    }
    
    .admin-panel {
        padding: 1.25rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Hide marquee on mobile (optional - remove if you want it visible) */
    .marquee-container {
        display: none;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .config-grid {
        grid-template-columns: 1fr;  /* Single column */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;  /* 2 columns */
        gap: 0.75rem;
    }
    
    .reaction-widget {
        flex-wrap: wrap;
    }
    
    /* Move progress bar below buttons on mobile */
    .reaction-bar {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
}
