/* --- CUSTOM FONTS --- */
@font-face {
    font-family: 'Vividly';
    src: url('/Vividly-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Color Palette */
    --bg-main: #000000; 
    --bg-card: #0a0a0a; 
    --text-main: #e2e2e9;
    --text-muted: #8b8b9f;
    --accent: #5d000f; 
    --accent-hover: #7a0014; 
    --border: #222222;
    
    /* Spacing & Borders */
    --radius: 8px;
    --spacing: 20px;
}

/* --- IDIOT-PROOF ALL IMAGES --- */
img {
    -webkit-user-select: none; /* Chrome/Safari */
    user-select: none;         /* Standard */
    -webkit-user-drag: none;   /* Stops dragging */
}

/* --- GLOBAL LAYOUT FIXES & ANIMATIONS --- */
html {
    scrollbar-gutter: stable; /* Fixes layout shift perfectly without breaking sticky! */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation universally to our main layout wrappers */
.page-wrapper, .home-hero, .home-content {
    animation: fadeInUp 0.35s ease-out forwards;
}

/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.1rem; /* Increased global base font size */
}

/* Announcement Banner */
.announcement-banner {
    background-color: var(--accent); /* Reverted to red */
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 1rem; /* Increased text size */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.announcement-banner a {
    color: white;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.announcement-banner a:hover {
    color: #ffdada;
}

/* Navigation Bar */
nav {
    background-color: transparent; 
    border-bottom: 1px solid transparent; 
    padding: 1rem 2rem;
    position: sticky; /* Reverted back to sticky! */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

/* Main App Shell */
#app {
    width: 100%;
}

/* --- GLOBAL LAYOUT & DESKTOP SCALING --- */
.container, .page-wrapper {
    width: 92%; 
    max-width: 1800px;
    margin: 0 auto;
    position: relative; /* Keeps content layered correctly */
    z-index: 10;        /* Sits above the background canvas, below the foreground */
}

/* Force the Community Hub to follow the new wide rules */
div[style*="max-width: 1200px"] {
    max-width: 1800px !important;
    width: 92%;
}

/* The Homepage Banner */
.home-hero {
    width: 100%;
    aspect-ratio: 3 / 1; 
    background-image: url('ok_banner_1.png'); 
    background-size: cover; 
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: -82px; /* Pulls image securely under the transparent nav bar */
    position: relative;
    z-index: 1;
}

/* Normal flow content (No longer overlaps) */
.home-content {
    position: relative; 
    z-index: 2; 
    padding-top: 3rem; /* Adds breathing room between the image and the cards */
    padding-bottom: 4rem;
}

/* Nav Left: Logo & Brand */
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-icon {
    height: 38px; 
    width: auto;  
    object-fit: contain; 
}
.nav-brand {
    font-size: 1.6rem; /* Increased size */
    font-weight: bold;
    color: white;
}

/* Nav Right: Links, Divider, User */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links {
    display: flex;
    gap: 1.8rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.15rem; /* Increased size */
    font-weight: 600;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* The Vertical Divider */
.nav-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border);
}

/* User Menu & Dropdown */
.user-menu-container {
    position: relative;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.user-profile:hover {
    background-color: #111;
}
.user-pfp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
}
.username {
    font-size: 1.1rem;
    font-weight: bold;
}

/* The Dropdown Box */
.dropdown-menu {
    display: none; 
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 160px;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.dropdown-menu.show {
    display: flex; 
}
.dropdown-menu a {
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.dropdown-menu a:hover {
    background-color: #1a1a1a;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}
.logout-btn {
    color: var(--accent) !important;
    font-weight: bold;
}

/* Reusable UI Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing);
    margin-bottom: var(--spacing);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { border-color: var(--accent); }

.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem; /* Increased button font */
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); }

.tag {
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Typography Enhancements */
h1 { font-size: 2.5rem; color: white; margin-bottom: 1rem; }
h2 { font-size: 2rem; color: white; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; color: white; margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- PROFILE PAGE STYLING --- */

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-pfp-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    background-color: #222;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-display-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.profile-handle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.badge {
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Steam Progress Bars */
.progress-container {
    margin-top: 0.5rem;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background-color: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* --- MODAL (POPUP) STYLING --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Changed from 100vw to prevent horizontal scrollbars */
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

/* Forms inside the modal */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid var(--border);
    color: white;
    border-radius: 4px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* PFP & Frame Picker Grid */
.pfp-picker-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.pfp-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    background: #222;
}
.pfp-option:hover {
    border-color: var(--accent);
}

/* --- AUTH MODAL STYLING --- */
.discord-btn {
    background-color: #5865F2; /* Official Discord Blurple */
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.discord-btn:hover {
    background-color: #4752C4;
}

/* The 'OR' Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.auth-divider::before { margin-right: 1em; }
.auth-divider::after { margin-left: 1em; }

/* Password Strength Meter */
.strength-track {
    width: 100%;
    height: 6px;
    background-color: #1a1a1a;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4d4d; /* Starts red */
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Password Requirements List */
.password-reqs {
    list-style: none;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.password-reqs li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}
.password-reqs li::before {
    content: '✖';
    color: #ff4d4d;
    font-weight: bold;
}
/* When Javascript adds the .valid class, it turns green */
.password-reqs li.valid {
    color: #4ade80; 
}
.password-reqs li.valid::before {
    content: '✔';
    color: #4ade80;
}

/* --- COMMUNITY HUB: MASONRY & TOOLBAR --- */

/* The Sticky Top Bar */
.community-toolbar {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    position: sticky;
    top: 85px; /* Sits just below your scrolled nav bar */
    z-index: 90;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toolbar-input, .toolbar-select {
    background: #111;
    border: 1px solid var(--border);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}
.toolbar-input:focus, .toolbar-select:focus {
    outline: none;
    border-color: var(--accent);
}
.toolbar-input { flex: 1; min-width: 200px; }

/* The Masonry Grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}
/* Tablets */
@media (min-width: 768px) { .masonry-grid { column-count: 2; } }
/* Desktop */
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

/* The individual post boxes */
.masonry-item {
    display: inline-block; /* Required to prevent column breaking */
    width: 100%;
    break-inside: avoid; /* Stops a card from splitting in half across columns */
    margin-bottom: 1.5rem;
    position: relative; /* Required for the spoiler overlay */
}

/* Post Flairs */
.flair-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.flair-game { background: #1f1122; color: #d494e8; border-color: #3b2141; }
.flair-type { background: #111c2a; color: #7cb8f9; border-color: #1e334d; }

/* Spoiler System */
.spoiler-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}
.spoiler-overlay svg { margin-bottom: 10px; fill: currentColor; }
.spoiler-overlay:hover { background: rgba(0, 0, 0, 0.65); }
.spoiler-overlay.revealed {
    opacity: 0;
    pointer-events: none; /* Allows clicking the content underneath after revealing */
}

/* --- MOBILE RESPONSIVENESS (Screens under 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Stack the Navigation Bar */
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .nav-divider {
        display: none; /* Hides the vertical line on phones */
    }

    /* 2. Stack the Games Catalog & About Page Cards */
    .card[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem !important;
    }
    .card[style*="display: flex"] img {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }

    /* 3. Center the Profile Header */
    .profile-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        margin-top: -50px !important;
    }
    .profile-name-row {
        flex-direction: column;
        gap: 10px !important;
    }
    /* Moves the edit button back to the center on mobile */
    .profile-name-row button {
        margin-left: 0 !important; 
    }

    /* 4. Stack the Edit Profile Modal */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        padding: 2rem 1.5rem 0 1.5rem !important;
        gap: 1rem !important;
    }
    .modal-content {
        max-width: 95% !important;
    }

    /* 5. Stack the Community Toolbar */
    .community-toolbar {
        flex-direction: column;
    }
    .community-toolbar .toolbar-input {
        width: 100%;
    }
    
    /* 6. Stack the Translation Progress Grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- MUSIC PLAYER STYLING --- */
@keyframes spin-disc {
    100% { transform: rotate(360deg); }
}

.cd-player-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1; /* Keeps it a perfect circle at any size */
    border-radius: 50%;
    border: 8px solid #1a1a1a;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
}

.cd-disc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* 8 seconds for a slow, viewable, cinematic spin */
    animation: spin-disc 8s linear infinite; 
    animation-play-state: paused; /* Frozen by default */
}

/* JavaScript will add this class when play is pressed */
.cd-disc-image.playing {
    animation-play-state: running; 
}

/* Simulates the physical hole in the middle of a CD */
.cd-center-hole {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--bg-main);
    border-radius: 50%;
    border: 2px solid #222;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Tracklist Hover & Active States */
.track-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, border-left 0.2s;
    border-left: 3px solid transparent;
}
.track-item:last-child {
    border-bottom: none;
}
.track-item:hover {
    background: #1a1a1a;
}
.track-item.playing {
    background: rgba(255, 77, 77, 0.1);
    border-left: 3px solid var(--accent);
}
.track-item.playing .track-title {
    color: var(--accent);
}

/* Customizing the Range Sliders (Main & Mini) */
#trackProgress, #miniTrackProgress {
    -webkit-appearance: none;
    appearance: none;
    background: #222;
}
#trackProgress::-webkit-slider-thumb, #miniTrackProgress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* --- GLOBAL MINI PLAYER --- */
.global-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    transform: translateY(100%); /* Hidden below the screen initially */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.global-mini-player.active {
    transform: translateY(0); /* Slides up when active */
}

.mini-player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}

.mini-thumb {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222;
    animation: spin-disc 8s linear infinite;
    animation-play-state: paused;
}

.global-mini-player.playing .mini-thumb {
    animation-play-state: running;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}
.btn-ghost:hover {
    color: white;
}

/* Adjust footer padding globally so the mini-player doesn't overlap text */
footer {
    padding-bottom: 90px !important; 
} 

/* --- GAMES CATALOGUE STYLES --- */

/* Wrapper for the cards to trap the particles inside */
.game-card-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 !important; 
    background: transparent; /* Removed the gray card background */
    border: 1px solid var(--border); /* Border stays intact! */
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    transition: border-color 0.2s ease;
}
.game-card-wrapper:hover {
    border-color: var(--accent);
}

/* The local background canvas */
.local-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1; /* Bumped from 0.6 to 1.0 for maximum visibility */
}

/* The content layered on top of the particles */
.game-card-content {
    position: relative;
    z-index: 10;
    background: transparent; /* Removed the smoky gray overlay */
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

/* --- NEW AUTO-CAROUSEL STYLES --- */

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* Update the slide cursor to show it's clickable */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in; /* Tells the user they can click to enlarge */
}

/* Make sure the main carousel scales to fit the right column */
.carousel-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #000;
}

/* Styling for the new Indicator Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* --- COMMUNITY HUB: POST INTERACTIONS & MODALS --- */

.post-interactions {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.interaction-btn:hover {
    color: white;
}

.heart-icon-ui {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* Active Heart State */
.interaction-btn.hearted {
    color: #ff4d4d;
}
.interaction-btn.hearted .heart-icon-ui {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* Comments Section in Post View */
.comment-thread {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-box {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-content {
    background: #111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    flex: 1;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.required-asterisk {
    color: #ff4d4d;
    font-weight: bold;
}

/* --- MULTI-STAGE AUTH MODAL --- */

/* Make the auth modals wider for the new sliding content */
#authModal .modal-content,
#loginModal .modal-content,
#changePasswordModal .modal-content {
    max-width: 550px;
    padding-bottom: 2.5rem;
}

/* The overflow container to hide inactive stages */
.auth-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 10px;
}

/* The track that physically slides left and right */
.auth-slider-track {
    display: flex;
    width: 300%; /* 3 Stages = 300% width */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Each individual stage takes up 1/3 of the track */
.auth-stage {
    width: 33.333%;
    flex-shrink: 0;
    padding: 0 5px; /* Slight padding to prevent border clipping */
}

/* Specific styling for the 6-digit code input */
.verification-input {
    font-size: 2.5rem !important;
    letter-spacing: 12px;
    text-align: center;
    font-family: 'Courier Prime', Courier, monospace !important;
    font-weight: bold;
    padding: 15px !important;
}
.verification-input:focus {
    letter-spacing: 12px; /* Prevents text shifting on focus */
}

/* Styling for Auth PFP Picker */
.auth-pfp.active {
    border-color: var(--accent);
    transform: scale(1.1);
}