/* CSS Variables - Dark Theme (Default) */
:root {
    --primary-color: #a855f7;
    --primary-dark: #7c3aed;
    --secondary-color: #c084fc;
    --accent-purple: #a855f7;
    --accent-magenta: #d946ef;
    --navy-blue: #1e293b;
    --navy-dark: #0f172a;
    --bg-dark: #1e293b;
    --bg-darker: #0f172a;
    --bg-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #475569;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #1e293b, #a855f7);
    --gradient-accent: linear-gradient(135deg, #a855f7, #d946ef);
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #9333ea;
    --primary-dark: #7c3aed;
    --secondary-color: #a855f7;
    --accent-purple: #9333ea;
    --accent-magenta: #c026d3;
    --navy-blue: #ffffff;
    --navy-dark: #f1f5f9;
    --bg-dark: #e2e8f0;
    --bg-darker: #f8fafc;
    --bg-light: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #94a3b8;
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;
    --gradient-primary: linear-gradient(135deg, #ffffff, #f3e8ff);
    --gradient-accent: linear-gradient(135deg, #9333ea, #c026d3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth theme transitions */
:root {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Prevent body scroll when modal is open */
body:has(.modal.show) {
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow-x: hidden;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s;
    position: relative;
    flex-shrink: 0;
    min-width: fit-content;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 200px;
}

.beta-badge {
    position: absolute;
    top: -8px;
    right: -45px;
    font-size: 9px;
    font-weight: 700;
    background: var(--gradient-accent);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(168, 85, 247, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(
        0% 0%,
        calc(100% - 6px) 0%,
        100% 50%,
        calc(100% - 6px) 100%,
        0% 100%
    );
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

.beta-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(168, 85, 247, 0.5),
                    0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.7),
                    0 0 0 2px rgba(255, 255, 255, 0.3);
    }
}

.nav-search {
    flex: 1 1 600px;
    min-width: 300px;
    max-width: 600px;
    position: relative;
}

.nav-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.nav-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15),
                0 8px 16px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.nav-search input::placeholder {
    color: rgba(203, 213, 225, 0.6);
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link i {
    margin-right: 5px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
    background: rgba(226, 232, 240, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.4);
}

.theme-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.theme-toggle-btn.active {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(20deg);
}

.theme-toggle-btn.active:hover i {
    transform: rotate(0deg);
}

/* Light Theme Specific Overrides for Better Contrast */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-search input {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .nav-search input:focus {
    background: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

[data-theme="light"] .nav-search input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .nav-link {
    color: #475569;
}

[data-theme="light"] .nav-link:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #0f172a;
}

[data-theme="light"] .image-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .image-card:hover {
    border-color: #9333ea;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .image-card-content {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
}

[data-theme="light"] .forum-post-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .forum-post-card:hover {
    background: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .form-input {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .form-input:focus {
    background: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

[data-theme="light"] .form-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #cbd5e1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .category-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .category-card:hover {
    background: #f8fafc;
    border-color: #9333ea;
}

[data-theme="light"] .auth-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dashboard-stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .dashboard-stat-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .action-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #cbd5e1;
}

[data-theme="light"] .action-card:hover {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-color: #9333ea;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15);
}

[data-theme="light"] .dashboard-section {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .activity-item {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .activity-item:hover {
    background: #ffffff;
    border-color: #9333ea;
}

[data-theme="light"] .forum-category-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .forum-category-card:hover,
[data-theme="light"] .forum-category-card.active {
    background: #f8fafc;
    border-color: #9333ea;
}

[data-theme="light"] .filter-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .filter-select:focus {
    border-color: #9333ea;
}

[data-theme="light"] .page-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .page-btn:hover {
    border-color: #9333ea;
    color: #9333ea;
}

[data-theme="light"] .page-btn.active {
    background: #9333ea;
    border-color: #9333ea;
    color: white;
}

/* Light Mode Hero Text Fixes */
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

[data-theme="light"] .hero-title-main {
    background: linear-gradient(135deg, #0f172a 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
    opacity: 1;
}

[data-theme="light"] .hero-subtitle-main {
    color: #475569;
}

/* Light Mode Section Titles */
[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #0f172a, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light Mode Additional Contrast Improvements */
[data-theme="light"] .section.bg-dark {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .btn-primary {
    background: #9333ea;
    color: white;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

[data-theme="light"] .btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
    background: #ffffff;
    border-color: #9333ea;
    color: #9333ea;
}

[data-theme="light"] .footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .section-description {
    color: #64748b;
}

[data-theme="light"] .page-title {
    color: #0f172a;
}

/* Light Mode Stats Cards */
[data-theme="light"] .stat-value {
    color: #0f172a;
    text-shadow: none;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    overflow: visible;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.15), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(217, 70, 239, 0.15), transparent 40%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(168, 85, 247, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.image-of-day-container {
    max-width: 900px;
    width: 100%;
    z-index: 2;
}

.image-of-day-card {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(168, 85, 247, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.image-of-day-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 80px rgba(168, 85, 247, 0.4),
                0 0 0 1px rgba(168, 85, 247, 0.5);
}

.image-of-day-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-of-day-info {
    padding: 25px;
}

.image-of-day-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.image-of-day-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
}

.image-of-day-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Landing Hero Section */
.hero-landing {
    min-height: 650px;
    background: var(--gradient-primary);
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 70, 239, 0.15) 0%, transparent 50%);
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

.hero-content-landing {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title-main {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-main {
    font-size: 20px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-large:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 600;
}

.hero-feature-item i {
    font-size: 24px;
    color: #dc2626;
}

/* Features Section */
.features-section {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #dc2626;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.2);
}

.feature-icon {
    font-size: 48px;
    color: #dc2626;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Section Headers */
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 12px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    margin-bottom: 50px;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-3px) scale(1.05);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
}

.cta-stat i {
    font-size: 32px;
    opacity: 0.9;
}

.cta-stat strong {
    font-size: 32px;
    font-weight: 900;
    display: block;
}

.cta-stat span {
    font-size: 14px;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 40px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.bg-dark {
    background: var(--bg-dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--bg-dark);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.image-card {
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 0;
}

.image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3),
                0 0 0 1px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
}

.image-card:hover::before {
    opacity: 0.05;
}

.placeholder-card {
    opacity: 0.7;
    position: relative;
}

.placeholder-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.placeholder-card:hover {
    opacity: 1;
}

.image-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover .image-card-img {
    transform: scale(1.05);
}

.image-card-content {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.95));
}

.image-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

.image-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.image-card-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.image-card-stats {
    display: flex;
    gap: 15px;
}

.image-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Select option styling for proper contrast */
select option {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 8px;
}

[data-theme="light"] select option {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="dark"] select option {
    background: #1e293b;
    color: #f1f5f9;
}

/* Forum Layout */
.forum-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.forum-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    /* Removed max-height and overflow-y to allow full content display */
}

.forum-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 10px;
    color: var(--text-primary);
}

.forum-main {
    min-width: 0;
}

/* Forum Categories */
.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-category-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forum-category-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-dark);
    transform: translateX(3px);
}

.forum-category-card.active {
    border-color: var(--primary-color);
    background: var(--bg-dark);
}

.forum-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.forum-category-stats {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    gap: 10px;
}

.forum-posts {
    display: grid;
    gap: 15px;
}

.forum-post-card {
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.forum-post-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
    background: var(--bg-light);
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.forum-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.forum-post-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    align-items: center;
}

.forum-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-post-stats {
    display: flex;
    gap: 15px;
}

/* Auth Container */
.auth-container {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 25px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-darker);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15),
                0 4px 12px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4),
                0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9333ea, #e879f9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5),
                0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Messages */
.error-message {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    padding: 20px;
    overflow: hidden;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(168, 85, 247, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-large {
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Image Preview */
.image-preview {
    margin-top: 15px;
    max-width: 100%;
}

.image-preview img {
    max-width: 100%;
    border-radius: 8px;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Founder Badge */
.founder-badge {
    display: inline-block;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* User Karma Display */
.user-karma {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
    transition: all 0.2s ease;
}

.user-karma i {
    font-size: 0.7rem;
    margin-right: 3px;
}

.user-karma.karma-high {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
    color: #fbbf24;
}

.user-karma.karma-medium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.25));
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.user-karma.karma-low {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.2));
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

/* User Badges Inline Display */
.user-badges-inline {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.user-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    cursor: help;
}

.user-badge-mini i {
    font-size: 0.65rem;
}

/* Badge rarity colors */
.user-badge-mini.common {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    border: 1px solid #616161;
    color: #fff;
}

.user-badge-mini.rare {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: 1px solid #1565c0;
    color: #fff;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.4);
}

.user-badge-mini.epic {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    border: 1px solid #6a1b9a;
    color: #fff;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

.user-badge-mini.legendary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: 1px solid #ff6f00;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
    }
}

.user-badge-mini:hover {
    transform: scale(1.15);
}

/* Dashboard Styles */
.dashboard-hero {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.dashboard-welcome {
    position: relative;
    z-index: 2;
}

.dashboard-welcome-text {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dashboard-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-stat-card i {
    font-size: 40px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-dark));
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.action-card:hover {
    transform: translateY(-8px);
    border-color: #dc2626;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-light));
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
}

.action-card i {
    font-size: 48px;
    color: #dc2626;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.dashboard-section {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.images-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: start;
    transition: all 0.3s;
}

.activity-item:hover {
    border-color: #dc2626;
    transform: translateX(5px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 4px;
}

.activity-text strong {
    color: #dc2626;
    font-weight: 600;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 13px;
}

.activity-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.activity-image:hover {
    transform: scale(1.1);
}

/* Touch-friendly elements */
/* Medium screens - compact navigation before mobile breakpoint */
@media (max-width: 1200px) and (min-width: 769px) {
    .nav-content {
        gap: 8px;
    }

    .nav-links {
        gap: 1px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .nav-link i {
        margin-right: 3px;
    }

    .nav-search {
        flex: 1 1 250px;
        min-width: 150px;
        max-width: 250px;
    }

    .logo-image {
        height: 50px;
        max-width: 180px;
    }

    .theme-toggle {
        gap: 1px;
        padding: 2px;
    }

    .theme-toggle-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

@media (pointer: coarse) {
    /* Increase touch targets for mobile devices */
    .btn,
    .nav-link,
    .page-btn,
    .filter-select,
    .form-input {
        min-height: 44px;
    }

    .image-card,
    .forum-post-card,
    .category-card,
    .forum-category-card {
        min-height: 44px;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 32px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 2px solid rgba(168, 85, 247, 0.2);
    padding: 3rem 0 1rem;
    color: var(--text-secondary);
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, #d946ef, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social-link:hover {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    border-color: #a855f7;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #a855f7;
    transform: translateX(5px);
}

/* Online Users Widget */
.footer-online-users {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.online-users-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 800px;
    width: 100%;
}

.online-users-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.online-indicator {
    color: #22c55e;
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

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

.online-users-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.online-users-count {
    background: linear-gradient(135deg, #a855f7, #d946ef);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
}

.online-users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.online-user-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.online-user-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.online-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
}

.online-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-user-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.online-user-info {
    flex: 1;
    min-width: 0;
}

.online-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom i.fa-heart {
    color: #ef4444;
    margin: 0 0.25rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .online-users-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar {
        position: relative;
        width: 100%;
    }

    .nav-content {
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 0;
        position: relative;
    }

    /* Hide all page content when mobile menu is open - Mobile App Style */
    body.mobile-menu-open .page,
    body.mobile-menu-open .hero,
    body.mobile-menu-open .hero-landing,
    body.mobile-menu-open main,
    body.mobile-menu-open section:not(.navbar) {
        display: none !important;
    }

    /* Hide search bar and theme toggle when menu is open */
    body.mobile-menu-open .nav-search,
    body.mobile-menu-open .theme-toggle {
        display: none !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important; /* Prevent any body scrolling */
        width: 100% !important;
        background: var(--bg-darker);
    }

    .nav-links {
        /* Hidden by default */
        display: none;
        visibility: hidden;
        opacity: 0;
        /* Positioning - fill entire viewport below navbar */
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: calc(100vh - 88px); /* Ensure it fills the viewport */
        background: var(--bg-darker);
        padding: 15px 15px 100px 15px;
        box-sizing: border-box;
        z-index: -1; /* Behind everything when closed */
        /* Scrolling */
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Grid layout - defined but not active until display: grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        align-content: start;
    }

    /* Show menu when active - make it very explicit */
    .nav-links.active {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: var(--bg-darker) !important;
        z-index: 9999 !important; /* Bring to front when open */
    }

    /* Alternative: show menu when body has mobile-menu-open class */
    body.mobile-menu-open .nav-links {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: var(--bg-darker) !important;
        z-index: 9999 !important; /* Bring to front when open */
    }

    /* Force all nav links to be visible when menu is open - app-style cards */
    /* Respect inline display:none for auth-conditional links */
    body.mobile-menu-open .nav-link:not([style*="display: none"]):not([style*="display:none"]),
    .nav-links.active .nav-link:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 70px !important; /* Reduced from 100px to show more cards */
        padding: 10px 8px !important;
        background: var(--bg-light) !important;
        color: var(--text-primary) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        text-align: center !important;
        font-size: 11px !important; /* Smaller text */
        font-weight: 600 !important;
        gap: 6px !important;
        transition: all 0.2s ease !important;
        margin: 0 !important;
    }

    /* Explicitly hide elements with display:none - overrides everything */
    body.mobile-menu-open .nav-link[style*="display: none"],
    body.mobile-menu-open .nav-link[style*="display:none"],
    .nav-links.active .nav-link[style*="display: none"],
    .nav-links.active .nav-link[style*="display:none"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Hide mention dropdown link on mobile - dropdown doesn't work well in fullscreen menu */
    body.mobile-menu-open #mentionLink,
    .nav-links.active #mentionLink {
        display: none !important;
    }

    /* Icon styling for card layout */
    body.mobile-menu-open .nav-link:not([style*="display: none"]):not([style*="display:none"]) i,
    .nav-links.active .nav-link:not([style*="display: none"]):not([style*="display:none"]) i {
        font-size: 20px !important; /* Reduced from 24px */
        margin: 0 !important;
    }

    /* Hover/active state for cards */
    body.mobile-menu-open .nav-link:not([style*="display: none"]):not([style*="display:none"]):active,
    .nav-links.active .nav-link:not([style*="display: none"]):not([style*="display:none"]):active {
        transform: scale(0.95) !important;
        background: var(--primary-color) !important;
        color: white !important;
    }

    /* Make sure navbar itself is always visible */
    body.mobile-menu-open .navbar {
        display: block !important;
        visibility: visible !important;
        z-index: 10000 !important;
        overflow: visible !important; /* Allow menu to extend beyond navbar */
    }

    /* Also ensure nav-content doesn't clip */
    body.mobile-menu-open .nav-content {
        overflow: visible !important;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #cbd5e1;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 18px 20px;
        text-align: left;
        background: var(--bg-light);
        border-radius: 12px;
        color: var(--text-primary) !important;
        font-size: 18px;
        font-weight: 500;
        display: flex !important;
        align-items: center;
        gap: 15px;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }

    .nav-link i {
        font-size: 20px;
        width: 24px;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background: var(--primary-color);
        color: white !important;
        transform: translateX(5px);
        border-color: var(--primary-dark);
    }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 24px;
        padding: 10px;
        color: var(--text-primary);
        transition: all 0.3s ease;
        cursor: pointer;
        background: transparent;
        border: none;
        z-index: 10001;
        position: relative;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
        touch-action: manipulation;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active {
        color: var(--primary-color);
        background: rgba(168, 85, 247, 0.1);
        border-radius: 8px;
    }

    .logo {
        flex: 1;
    }

    .logo-image {
        height: 45px;
        max-width: 180px;
    }

    .beta-badge {
        right: -30px;
        font-size: 8px;
        padding: 3px 6px;
    }

    .theme-toggle {
        margin-right: 10px;
    }

    .mobile-menu-toggle {
        /* Hamburger stays on the right */
    }

    .nav-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    /* Hero Section */
    .hero {
        min-height: 400px;
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    /* Landing Hero */
    .hero-landing {
        min-height: 500px;
    }

    .hero-content-landing {
        padding: 60px 20px 40px;
    }

    .hero-title-main {
        font-size: 38px;
    }

    .hero-subtitle-main {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-stats {
        gap: 30px;
    }

    .image-of-day-card img {
        height: 250px;
    }

    .image-of-day-info {
        padding: 20px;
    }

    .image-of-day-title {
        font-size: 22px;
    }

    .image-of-day-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        font-size: 36px;
    }

    .category-name {
        font-size: 18px;
    }

    /* Images Grid */
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .image-card-img {
        height: 150px;
    }

    .image-card-content {
        padding: 12px;
    }

    .image-card-title {
        font-size: 14px;
    }

    .image-card-meta {
        font-size: 12px;
    }

    .image-card-stats {
        gap: 10px;
    }

    /* Forum */
    .forum-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forum-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        order: -1;
    }

    .forum-sidebar-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .forum-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .forum-category-card {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        padding: 10px 12px;
    }

    .forum-category-card:hover {
        transform: translateX(0) translateY(-2px);
    }

    .forum-category-name {
        font-size: 14px;
    }

    .forum-category-stats {
        font-size: 11px;
        gap: 8px;
    }

    .forum-post-card {
        padding: 15px;
    }

    .forum-post-title {
        font-size: 16px;
    }

    .forum-post-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    .forum-post-stats {
        gap: 10px;
    }

    /* Auth */
    .auth-container {
        padding: 25px;
        margin: 20px 15px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 10px;
        font-size: 14px;
    }

    /* Forms */
    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    textarea.form-input {
        min-height: 80px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Modal */
    .modal {
        padding: 15px;
        align-items: flex-start;
    }

    .modal-content {
        padding: 20px;
        max-height: 85vh;
        width: 100%;
        margin-top: 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }

    /* Pagination */
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 20px 0;
        font-size: 14px;
    }

    /* Dashboard Responsive */
    .dashboard-title {
        font-size: 32px;
    }

    .dashboard-subtitle {
        font-size: 16px;
    }

    .dashboard-stats-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-stat-card {
        padding: 20px;
    }

    .dashboard-stat-card i {
        font-size: 28px;
    }

    .stat-value {
        font-size: 28px;
    }

    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .action-card {
        padding: 24px 16px;
    }

    .action-card i {
        font-size: 36px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* User Profile */
    .profile-header {
        flex-direction: column !important;
        text-align: center;
    }

    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .profile-stats {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    /* Image Modal Content */
    #imageModalContent img {
        max-width: 100%;
        height: auto !important;
    }

    #imageModalContent {
        font-size: 14px;
    }

    #imageModalContent h2 {
        font-size: 20px !important;
    }

    #imageModalContent h3 {
        font-size: 18px !important;
    }

    /* Admin Controls */
    #imageModalContent .btn {
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Navigation */
    .nav-content {
        gap: 8px;
        padding: 12px 0;
    }

    .nav-search {
        width: 100%;
        max-width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .nav-search input {
        font-size: 14px;
        padding: 10px 15px 10px 40px;
    }

    .nav-search i {
        left: 12px;
        font-size: 14px;
    }

    .logo {
        flex: 1;
        gap: 8px;
    }

    .logo-image {
        height: 40px;
        max-width: 150px;
    }

    .beta-badge {
        right: -25px;
        font-size: 7px;
        padding: 2px 5px;
        top: -6px;
    }

    .theme-toggle {
        padding: 3px;
        gap: 2px;
    }

    .theme-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .nav-link {
        padding: 10px 12px;
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero {
        min-height: 350px;
        padding: 20px 10px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.4;
    }

    /* Landing Hero */
    .hero-landing {
        min-height: 450px;
    }

    .hero-content-landing {
        padding: 50px 15px 30px;
    }

    .hero-title-main {
        font-size: 28px;
    }

    .hero-subtitle-main {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-cta {
        margin-bottom: 35px;
    }

    .hero-features {
        gap: 15px;
    }

    .hero-feature-item {
        font-size: 13px;
    }

    .hero-feature-item i {
        font-size: 20px;
    }

    /* Features */
    .features-grid {
        gap: 15px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-icon {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 14px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 26px;
    }

    .cta-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .cta-buttons {
        margin-bottom: 35px;
    }

    .cta-stats {
        gap: 25px;
        flex-direction: column;
    }

    .cta-stat strong {
        font-size: 28px;
    }

    .cta-stat i {
        font-size: 28px;
    }

    .image-of-day-card img {
        height: 200px;
    }

    .image-of-day-info {
        padding: 15px;
    }

    .image-of-day-title {
        font-size: 18px;
    }

    .image-of-day-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* Sections */
    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    /* Grids */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .images-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .image-card-img {
        height: 200px;
    }

    /* Forum */
    .forum-layout {
        gap: 15px;
    }

    .forum-sidebar-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .forum-categories {
        gap: 8px;
    }

    .forum-category-card {
        flex: 1 1 100%;
        padding: 10px 12px;
    }

    .forum-category-name {
        font-size: 13px;
    }

    .forum-category-stats {
        font-size: 10px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .forum-post-card {
        padding: 12px;
    }

    .forum-post-header {
        flex-direction: column;
        gap: 10px;
    }

    .forum-post-title {
        font-size: 15px;
    }

    .forum-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 12px;
    }

    /* Auth */
    .auth-container {
        padding: 20px;
        margin: 15px 10px;
        border-radius: 12px;
    }

    .auth-tab {
        font-size: 13px;
    }

    /* Forms */
    .form-group {
        margin-bottom: 18px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 10px;
    }

    textarea.form-input {
        min-height: 120px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }

    .btn i {
        margin-right: 6px;
    }

    /* Modal */
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 20px;
        border-radius: 16px;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }

    .modal-large {
        max-width: 100%;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
        margin-top: 30px;
    }

    .page-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }

    /* Loading */
    .loading {
        padding: 40px 10px;
        font-size: 24px;
    }

    /* Footer */
    .footer {
        padding: 15px 0;
        font-size: 13px;
        margin-top: 40px;
    }

    /* User Profile */
    .profile-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 15px !important;
    }

    .profile-stats {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
    }

    .profile-stat {
        width: 100% !important;
        padding: 12px !important;
        text-align: center !important;
    }

    /* Image Modal Content - Better mobile view */
    #imageModalContent {
        font-size: 13px;
        padding: 0 !important;
    }

    #imageModalContent img {
        max-width: 100%;
        height: auto !important;
        border-radius: 0 !important;
    }

    #imageModalContent > div {
        padding: 10px !important;
    }

    #imageModalContent h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    #imageModalContent h3 {
        font-size: 16px !important;
    }

    /* Forum post modal content */
    #imageModalContent .forum-comment {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    /* Admin Controls in modal */
    #imageModalContent .btn {
        width: 100% !important;
        margin-bottom: 8px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    #imageModalContent div[style*="flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #imageModalContent div[style*="gap: 10px"] {
        gap: 8px !important;
    }

    /* Image/Forum stats in modal */
    #imageModalContent div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Tags in modal */
    #imageModalContent .tag {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

/* Messaging Styles */
.unread-badge {
    background: var(--error);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
}

/* Steam-Style Popup Messenger */
.steam-messenger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 700px;
    height: 550px;
    background: linear-gradient(to bottom, #1b2838 0%, #2a475e 100%);
    border: 1px solid #16202d;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    z-index: 9999;
    font-family: "Motiva Sans", Arial, sans-serif;
}

[data-theme="light"] .steam-messenger {
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.steam-messenger.active {
    display: flex;
}

.steam-messenger.minimized {
    height: 40px;
    overflow: hidden;
}

/* Steam Header */
.steam-messenger-header {
    background: linear-gradient(to bottom, #3d5a74 0%, #2a475e 100%);
    border-bottom: 1px solid #16202d;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

[data-theme="light"] .steam-messenger-header {
    background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);
    border-bottom: 1px solid #94a3b8;
}

.steam-messenger-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c7d5e0;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .steam-messenger-title {
    color: #0f172a;
    text-shadow: none;
}

.steam-messenger-controls {
    display: flex;
    gap: 4px;
}

.steam-control-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(to bottom, #67c1f5 0%, #417a9b 100%);
    border: 1px solid #1e3a52;
    border-radius: 2px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.steam-control-btn:hover {
    background: linear-gradient(to bottom, #7dd3ff 0%, #4f92b8 100%);
    box-shadow: 0 0 8px rgba(103, 193, 245, 0.5);
}

.steam-control-btn:active {
    background: linear-gradient(to bottom, #417a9b 0%, #67c1f5 100%);
}

/* Steam Tabs */
.steam-messenger-tabs {
    display: flex;
    background: #1b2838;
    border-bottom: 1px solid #16202d;
}

.steam-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #8f98a0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.steam-tab:hover {
    background: rgba(103, 193, 245, 0.1);
    color: #c7d5e0;
}

.steam-tab.active {
    color: #67c1f5;
    border-bottom-color: #67c1f5;
    background: rgba(103, 193, 245, 0.05);
}

.steam-tab i {
    font-size: 12px;
}

/* Steam Body */
.steam-messenger-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Friends List */
.steam-friends-list {
    width: 220px;
    background: #1b2838;
    border-right: 1px solid #16202d;
    display: flex;
    flex-direction: column;
}

.steam-friends-header {
    padding: 8px;
    border-bottom: 1px solid #16202d;
    display: flex;
    gap: 6px;
    align-items: center;
}

.steam-new-group-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #67c1f5 0%, #417a9b 100%);
    border: 1px solid #1e3a52;
    border-radius: 2px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.steam-new-group-btn:hover {
    background: linear-gradient(to bottom, #7dd3ff 0%, #4f92b8 100%);
    box-shadow: 0 0 8px rgba(103, 193, 245, 0.5);
}

.steam-search-input {
    flex: 1;
    padding: 6px 10px;
    background: #2a475e;
    border: 1px solid #16202d;
    border-radius: 2px;
    color: #c7d5e0;
    font-size: 16px; /* 16px minimum to prevent mobile zoom */
}

.steam-search-input:focus {
    outline: none;
    border-color: #67c1f5;
    background: #32587a;
}

.steam-search-input::placeholder {
    color: #8b98a5;
}

.steam-conversations {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.steam-conversation {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 10px;
    border-bottom: 1px solid #16202d;
    position: relative;
}

.steam-conversation:hover {
    background: #2a475e;
}

.steam-conversation.active {
    background: #3d5a74;
}

.steam-conversation.unread {
    background: rgba(103, 193, 245, 0.1);
}

.steam-avatar {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #16202d;
}

.steam-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 2px;
    background: linear-gradient(135deg, #417a9b, #2a475e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #67c1f5;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid #16202d;
}

.steam-conversation-info {
    flex: 1;
    min-width: 0;
}

.steam-conversation-name {
    font-size: 12px;
    font-weight: 600;
    color: #c7d5e0;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-conversation.unread .steam-conversation-name {
    color: #fff;
}

.steam-conversation-preview {
    font-size: 11px;
    color: #8b98a5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.steam-unread-badge {
    background: #67c1f5;
    color: #1b2838;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 2px;
    min-width: 16px;
    text-align: center;
}

.steam-no-chats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 12px;
    color: #8b98a5;
    text-align: center;
}

.steam-no-chats i {
    font-size: 40px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.steam-no-chats p {
    font-size: 12px;
}

/* Chat Area */
.steam-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e3140;
}

.steam-no-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b98a5;
    text-align: center;
}

.steam-no-chat i {
    font-size: 60px;
    opacity: 0.2;
    margin-bottom: 16px;
}

.steam-no-chat p {
    font-size: 13px;
}

.steam-chat-header {
    padding: 8px 12px;
    background: #2a475e;
    border-bottom: 1px solid #16202d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steam-chat-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #c7d5e0;
}

/* Messages */
.steam-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steam-date-divider {
    text-align: center;
    color: #8b98a5;
    font-size: 10px;
    font-weight: 600;
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steam-message {
    display: flex;
    margin-bottom: 4px;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.steam-message-sent {
    justify-content: flex-end;
}

.steam-message-received {
    justify-content: flex-start;
}

.steam-bubble {
    max-width: 70%;
    padding: 6px 10px;
    border-radius: 2px;
    position: relative;
}

.steam-message-sent .steam-bubble {
    background: linear-gradient(to bottom, #3d5a74, #2a475e);
    color: #c7d5e0;
    border: 1px solid #16202d;
}

.steam-message-received .steam-bubble {
    background: linear-gradient(to bottom, #32587a, #2a475e);
    color: #c7d5e0;
    border: 1px solid #16202d;
}

.steam-text {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.message-sender-name {
    font-size: 11px;
    font-weight: 600;
    color: #66c0f4;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.message-sender-name:hover {
    color: #ffffff;
    text-decoration: underline;
}

.steam-time {
    font-size: 10px;
    margin-top: 3px;
    color: #8b98a5;
    text-align: right;
}

.steam-message-received .steam-time {
    text-align: left;
}

/* Input */
.steam-input-container {
    padding: 8px 12px;
    background: #2a475e;
    border-top: 1px solid #16202d;
    flex-shrink: 0; /* Prevent input from being compressed */
    position: relative;
    z-index: 20; /* Ensure it's above messages */
}

.steam-input-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.steam-input {
    flex: 1;
    padding: 6px 10px;
    background: #1b2838;
    border: 1px solid #16202d;
    border-radius: 2px;
    color: #c7d5e0;
    font-size: 16px; /* 16px minimum to prevent mobile zoom */
    transition: all 0.2s;
    /* Mobile tap/click fixes */
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
}

.steam-input:focus {
    outline: none;
    border-color: #67c1f5;
    background: #253545;
}

.steam-send-btn {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #67c1f5 0%, #417a9b 100%);
    border: 1px solid #1e3a52;
    border-radius: 2px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.steam-send-btn:hover {
    background: linear-gradient(to bottom, #7dd3ff 0%, #4f92b8 100%);
    box-shadow: 0 0 8px rgba(103, 193, 245, 0.5);
}

.steam-send-btn:active {
    background: linear-gradient(to bottom, #417a9b 0%, #67c1f5 100%);
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #67c1f5 0%, #417a9b 100%);
    border: 2px solid #1e3a52;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    transition: all 0.3s;
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.floating-chat-btn:hover {
    background: linear-gradient(to bottom, #7dd3ff 0%, #4f92b8 100%);
    box-shadow: 0 6px 24px rgba(103, 193, 245, 0.6);
    transform: scale(1.1);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.floating-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    border: 2px solid #1b2838;
}

/* Scrollbar Steam Style */
.steam-conversations::-webkit-scrollbar,
.steam-messages::-webkit-scrollbar {
    width: 8px;
}

.steam-conversations::-webkit-scrollbar-track,
.steam-messages::-webkit-scrollbar-track {
    background: #1b2838;
}

.steam-conversations::-webkit-scrollbar-thumb,
.steam-messages::-webkit-scrollbar-thumb {
    background: #3d5a74;
    border-radius: 4px;
}

.steam-conversations::-webkit-scrollbar-thumb:hover,
.steam-messages::-webkit-scrollbar-thumb:hover {
    background: #4a6a88;
}

/* Online Status Indicator for Steam Messenger */
.steam-conversation {
    position: relative;
}

.steam-online-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #171d25;
    position: absolute;
    left: 30px;
    top: 28px;
    z-index: 1;
}

.steam-online-status.offline {
    background: #6b7280;
}

.steam-chat-user-avatar {
    position: relative;
    display: inline-block;
}

/* Light Theme Overrides for Steam Messenger */
[data-theme="light"] .steam-control-btn {
    background: linear-gradient(to bottom, #9333ea 0%, #7c3aed 100%);
    border: 1px solid #6d28d9;
}

[data-theme="light"] .steam-control-btn:hover {
    background: linear-gradient(to bottom, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

[data-theme="light"] .steam-messenger-tabs {
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-tab {
    color: #64748b;
}

[data-theme="light"] .steam-tab:hover {
    background: rgba(147, 51, 234, 0.1);
    color: #0f172a;
}

[data-theme="light"] .steam-tab.active {
    color: #9333ea;
    border-bottom-color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
}

[data-theme="light"] .steam-friends-list {
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-friends-header {
    border-bottom: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-new-group-btn {
    background: linear-gradient(to bottom, #9333ea 0%, #7c3aed 100%);
    border: 1px solid #6d28d9;
}

[data-theme="light"] .steam-new-group-btn:hover {
    background: linear-gradient(to bottom, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

[data-theme="light"] .steam-search-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .steam-search-input:focus {
    border-color: #9333ea;
    background: #ffffff;
}

[data-theme="light"] .steam-search-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .steam-conversation {
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .steam-conversation:hover {
    background: #f1f5f9;
}

[data-theme="light"] .steam-conversation.active {
    background: #e2e8f0;
}

[data-theme="light"] .steam-conversation.unread {
    background: rgba(147, 51, 234, 0.05);
}

[data-theme="light"] .steam-avatar,
[data-theme="light"] .steam-avatar-placeholder {
    border: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-avatar-placeholder {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: #ffffff;
}

[data-theme="light"] .steam-conversation-name {
    color: #0f172a;
}

[data-theme="light"] .steam-conversation.unread .steam-conversation-name {
    color: #0f172a;
    font-weight: 700;
}

[data-theme="light"] .steam-conversation-preview {
    color: #64748b;
}

[data-theme="light"] .steam-unread-badge {
    background: #9333ea;
    color: #ffffff;
}

[data-theme="light"] .steam-no-chats {
    color: #64748b;
}

[data-theme="light"] .steam-chat-area {
    background: #ffffff;
}

[data-theme="light"] .steam-no-chat {
    color: #64748b;
}

[data-theme="light"] .steam-chat-header {
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-chat-user-name {
    color: #0f172a;
}

[data-theme="light"] .steam-messages {
    background: #f8fafc;
}

[data-theme="light"] .steam-date-divider {
    color: #64748b;
}

[data-theme="light"] .steam-message-sent .steam-bubble {
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
    color: #0f172a;
    border: 1px solid #94a3b8;
}

[data-theme="light"] .steam-message-received .steam-bubble {
    background: linear-gradient(to bottom, #f3e8ff, #e9d5ff);
    color: #0f172a;
    border: 1px solid #c084fc;
}

[data-theme="light"] .message-sender-name {
    color: #9333ea;
}

[data-theme="light"] .message-sender-name:hover {
    color: #7c3aed;
}

[data-theme="light"] .steam-time {
    color: #64748b;
}

[data-theme="light"] .steam-input-container {
    background: #e2e8f0;
    border-top: 1px solid #cbd5e1;
}

[data-theme="light"] .steam-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .steam-input:focus {
    border-color: #9333ea;
    background: #ffffff;
}

[data-theme="light"] .steam-send-btn {
    background: linear-gradient(to bottom, #9333ea 0%, #7c3aed 100%);
    border: 1px solid #6d28d9;
}

[data-theme="light"] .steam-send-btn:hover {
    background: linear-gradient(to bottom, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

[data-theme="light"] .floating-chat-btn {
    background: linear-gradient(to bottom, #9333ea 0%, #7c3aed 100%);
    border: 2px solid #6d28d9;
}

[data-theme="light"] .floating-chat-btn:hover {
    background: linear-gradient(to bottom, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 6px 24px rgba(147, 51, 234, 0.4);
}

[data-theme="light"] .floating-chat-badge {
    background: #dc2626;
    border: 2px solid #ffffff;
}

[data-theme="light"] .steam-conversations::-webkit-scrollbar-track,
[data-theme="light"] .steam-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="light"] .steam-conversations::-webkit-scrollbar-thumb,
[data-theme="light"] .steam-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="light"] .steam-conversations::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .steam-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .steam-messenger {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        border-radius: 0;
        border: none;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .steam-messenger-body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .steam-chat-area,
    .steam-friends-list {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .steam-friends-list {
        width: 120px;
    }

    .steam-conversation {
        padding: 6px 8px;
        gap: 8px;
    }

    .steam-avatar,
    .steam-avatar-placeholder {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .steam-conversation-name {
        font-size: 11px;
    }

    .steam-conversation-preview {
        font-size: 10px;
    }

    .steam-bubble {
        max-width: 85%;
    }

    .steam-messages {
        padding: 8px;
    }

    .steam-input-container {
        padding: 8px;
        position: sticky;
        bottom: 0;
        z-index: 50;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .steam-search-input {
        font-size: 16px !important; /* Prevent mobile zoom */
        padding: 8px;
    }

    .steam-input {
        font-size: 16px !important; /* Prevent mobile zoom */
        padding: 8px 10px;
        min-height: 44px; /* Better mobile touch target */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 3px;
        width: 100%;
        display: block;
    }

    /* Mobile app-like transitions */
    .steam-messenger.active {
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Smooth scrolling for mobile */
    .steam-messages,
    .steam-conversations {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Better touch targets */
    .steam-conversation,
    .steam-control-btn,
    .steam-send-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .floating-chat-btn {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .steam-friends-list {
        width: 100px;
    }

    .steam-conversation-info {
        display: flex;
        flex-direction: column;
    }

    .steam-conversation-preview {
        display: none;
    }

    .steam-messenger-title span {
        display: none;
    }

    .steam-messenger-title i {
        font-size: 16px;
    }
}

/* Mobile Login Fix */
@media (max-width: 768px) {
    .form-input {
        font-size: 16px; /* Prevent iOS zoom on focus */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .auth-container {
        padding: 25px 20px;
    }
    
    .btn-primary {
        min-height: 48px; /* Better touch target */
        font-size: 16px;
    }
}

/* Prevent double-tap zoom on buttons */
button, .btn, input[type="submit"] {
    touch-action: manipulation;
}

/* Admin Statistics Page Styles */
.admin-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.admin-stat-content {
    flex: 1;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.admin-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-recent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.admin-recent-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.admin-recent-stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.admin-recent-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-recent-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-list-item:hover {
    background: var(--hover-bg);
}

.admin-list-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 2rem;
}

.admin-list-content {
    flex: 1;
}

.admin-list-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.admin-list-stat {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.admin-category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.admin-category-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-category-stat-item:hover {
    background: var(--hover-bg);
}

.admin-category-name {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-category-count {
    font-weight: 700;
    color: var(--primary-color);
}

.admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-timeline-item:hover {
    background: var(--hover-bg);
}

.admin-timeline-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-timeline-content {
    flex: 1;
}

.admin-timeline-type {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.admin-timeline-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.admin-timeline-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.admin-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive adjustments for admin page */
@media (max-width: 768px) {
    .admin-stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .admin-stat-value {
        font-size: 1.5rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .admin-category-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-stats-overview {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SOCIAL FEATURES STYLES
   Hashtags, Mentions, Karma, Reports
   ========================================== */

/* Hashtag and Mention Links */
.hashtag {
    color: #1da1f2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.hashtag:hover {
    text-decoration: underline;
    color: #0d8bd9;
}

.mention {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mention:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* Karma Badges */
.karma-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.karma-badge i {
    font-size: 0.75rem;
}

.karma-badge.karma-bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.karma-badge.karma-silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: white;
}

.karma-badge.karma-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
}

/* Trending Hashtags Widget */
#trendingHashtagsWidget {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#trendingHashtagsWidget h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#trendingHashtagsWidget h3 i {
    color: #ff6b35;
}

.trending-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trending-tag-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-tag-rank {
    font-weight: bold;
    color: #888;
    min-width: 25px;
}

.trending-tag-name {
    color: #1da1f2;
    font-weight: 500;
}

.trending-tag-count {
    font-size: 0.875rem;
    color: #888;
}

/* Mention Notifications */
#mentionNotificationBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

#mentionsDropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 10px;
}

#mentionsDropdown.show {
    display: block;
}

.mentions-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mark-read-btn {
    background: none;
    border: none;
    color: #1da1f2;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 8px;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

.mentions-list {
    max-height: 400px;
    overflow-y: auto;
}

.mention-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.mention-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mention-item.unread {
    background: rgba(29, 161, 242, 0.1);
}

.mention-user {
    margin-bottom: 5px;
}

.mention-preview {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 5px;
}

.mention-time {
    font-size: 0.75rem;
    color: #666;
}

.mentions-dropdown-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mentions-dropdown-footer a {
    color: #1da1f2;
    text-decoration: none;
    font-size: 0.875rem;
}

.mentions-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Karma Leaderboard */
.karma-timeframe-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.karma-timeframe-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.karma-timeframe-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.karma-timeframe-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.karma-leaderboard {
    display: grid;
    gap: 15px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.leaderboard-entry:hover {
    transform: translateY(-2px);
}

.leaderboard-rank {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.leaderboard-rank.silver {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.leaderboard-rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.leaderboard-username {
    font-weight: 600;
}

.leaderboard-karma {
    margin-left: auto;
}

/* Community Guidelines */
.guidelines-content {
    max-width: 800px;
    margin: 0 auto;
}

.guideline-section {
    background: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guideline-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.guideline-section h2 i {
    font-size: 1.5rem;
}

.guideline-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.guideline-section ul {
    margin-left: 20px;
    line-height: 1.8;
}

.guideline-section.karma-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.guideline-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.guideline-footer p {
    margin-bottom: 10px;
}

/* Hashtag Content Page */
.hashtag-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.hashtag-content-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.hashtag-content-card:hover {
    transform: translateY(-2px);
}

.hashtag-content-type {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hashtag-content-type i {
    margin-right: 5px;
}

.hashtag-content-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.hashtag-content-card p {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hashtag-content-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #666;
}

.hashtag-content-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Report Modal */
#reportModal .modal-content {
    max-width: 500px;
}

.report-content-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#reportForm .form-group {
    margin-bottom: 20px;
}

#reportForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#reportForm select,
#reportForm textarea {
    width: 100%;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-color);
    font-family: inherit;
}

#reportForm select:focus,
#reportForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Report Button */
.report-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.report-btn:hover {
    opacity: 0.7;
}

.report-btn i {
    margin-right: 5px;
}

/* Empty States */
.empty-state-small {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .hashtag-content-grid {
        grid-template-columns: 1fr;
    }
    
    .karma-timeframe-selector {
        flex-direction: column;
    }
    
    #mentionsDropdown {
        min-width: 300px;
        right: -10px;
    }
    
    .leaderboard-entry {
        flex-wrap: wrap;
    }
    
    .leaderboard-rank {
        font-size: 18px;
        min-width: 30px;
    }
}

/* Hashtag and Mention Styling */
.hashtag {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hashtag:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.mention {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mention:hover {
    color: #60a5fa;
    text-decoration: underline;
}


/* Unified Gallery - Video Styles */
.feed-item-media.video-media {
    position: relative;
    cursor: pointer;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transition: all 0.3s ease;
    pointer-events: none;
}

.feed-item-media.video-media:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.feed-content-type-badge.video-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feed-item.video-item {
    border-left: 3px solid #ef4444;
}

.feed-item.image-item {
    border-left: 3px solid #a855f7;
}
