/* NEXUS THEME - Header & Base Styling (Derived from Fresh) */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Main content should grow to push footer down */
.main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
.site-footer {
    flex-shrink: 0;
    height: 55px;
    border-top: 1px solid #eaeaea;
    background: #fff;
    font-size: 12px;
    color: #555;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .site-footer {
    background: #1e1e1e;
    border-top-color: #333;
    color: #999;
}



a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .header {
    background: #1e1e1e;
    border-bottom-color: #333;
}

/* Mobile: Hide header on scroll down, show on scroll up */
@media (max-width: 768px) {
    .header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
    }

    .header.header-hidden {
        transform: translateY(-100%);
    }

    /* Add padding to body to prevent content jump */
    body {
        padding-top: 60px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin-right: auto;
}

.logo a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

[data-theme="dark"] .logo a {
    color: white;
}

.logo span {
    color: #2196F3;
}






/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav Menu in Header */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
    position: relative;
}

[data-theme="dark"] .nav a {
    color: #aaa;
}

.nav a:hover {
    color: #2196F3;
}

.nav a.active {
    color: #2196F3;
}

/* HERO SECTION REMOVED */

/* HERO/SEARCH SECTION - Wallpapersden Style */
.hero-search {
    background: #f5f5f5;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
}

.hero-content {
    max-width: 100%;
    margin: 0;
}

.hero-title {
    display: none;
    /* Hidden on mobile, shown on desktop */
}

.search-box {
    position: relative;
    width: 100%;
    background: #26292b;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.search-box::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5c1b9' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    pointer-events: none;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px 12px 42px;
    font-size: 16px;
    outline: none;
    background: #26292b;
    color: #c5c1b9;
    border-radius: 0;
}

.search-input::placeholder {
    color: #c5c1b9;
    opacity: 0.6;
}

.search-btn {
    display: none;
    /* Hidden, search on Enter */
}

/* DESKTOP HERO */
@media (min-width: 769px) {
    .hero-search {
        background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-title {
        display: none;
        /* Hidden on desktop too */
    }

    .search-box {
        background: white;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .search-box::before {
        display: none;
    }

    .search-input {
        background: white;
        color: #333;
        padding: 15px 25px;
        border-radius: 50px 0 0 50px;
    }

    .search-input::placeholder {
        color: #999;
    }

    .search-btn {
        display: block;
        background: #2196F3;
        border: none;
        padding: 15px 25px;
        cursor: pointer;
        color: white;
        transition: background 0.3s;
        border-radius: 0 50px 50px 0;
    }

    .search-btn:hover {
        background: #1976D2;
    }
}

/* QUICK CATEGORY FILTERS */
.quick-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* IMAGE SKELETON LOADER */
.poster-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .hero-search {
        padding: 40px 15px;
        margin-bottom: 20px;
        border-radius: 0;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .search-input {
        padding: 12px 20px;
        font-size: 15px;
    }

    .search-btn {
        padding: 12px 20px;
    }

    .quick-filters {
        background: #f5f5f5;
        padding: 10px 0;
        margin: 0 -20px 15px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-chip {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* POSTER GRID SYSTEM */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.poster-card {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    /* Vertical poster format */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #222;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.poster-card:hover img {
    transform: scale(1.1);
}

.poster-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 30px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.poster-card:hover .poster-card-overlay {
    opacity: 1;
}

.poster-card-title {
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    /* Mobile grid is now controlled by admin settings in index.php dynamic CSS */

    .poster-card-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* LOGO */
.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Ortala */
    line-height: 1.2;
    text-align: center;
}

.logo a:first-child {
    font-size: 24px;
    /* Tık büyüt */
    font-weight: 800;
    /* Daha kalın */
    color: #2196F3;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #1976D2;
}

.logo-res-tag {
    font-size: 13px !important;
    /* Bir tık büyüt */
    color: #334155 !important;
    /* Darker slate for contrast */
    font-weight: 600 !important;
    margin-top: 2px;
    background: #f0f7ff;
    /* Hafif arka plan */
    padding: 8px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s;
}

.logo-res-tag:hover {
    background: #e3f2fd;
    color: #1565c0 !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .logo-res-tag {
        display: none !important;
    }
}

/* NAVIGATION */
.nav {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav a {
    color: #666;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav a:hover {
    color: #2196F3;
}

/* HEADER RIGHT & USER AREA */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 10px 24px;
    background: #1565C0;
    /* Darker Blue for AA Contrast */
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #1976D2;
}

.user-link {
    padding: 10px 20px;
    color: #666;
    font-weight: 500;
}

.user-link:hover {
    color: #2196F3;
}

/* HEADER RESOLUTION BADGE */
.header-res-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border: 1px solid #bbdefb;
}

.header-res-badge:hover {
    background: #bbdefb;
    color: #0d47a1;
    transform: translateY(-1px);
}

[data-theme="dark"] .header-res-badge {
    background: #333;
    color: #90caf9;
    border-color: #555;
}

[data-theme="dark"] .header-res-badge:hover {
    background: #444;
    color: #64b5f6;
}

/* THEME TOGGLE & NOTIFICATIONS */
.theme-toggle,
.notif-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.notif-btn {
    position: relative;
}

.notif-badge,
.avatar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    line-height: 1;
}

/* MOBILE MENU BUTTON & RESPONSIVE HEADERS */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav,
    .btn-login,
    .user-link {
        display: none;
    }
}

/* MOBILE SIDEBAR */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.active {
    right: 0;
}

.close-menu-btn {
    align-self: flex-end;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0 10px;
    line-height: 1;
    margin-bottom: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 15px 10px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.mobile-nav-links a:hover {
    background: #f9f9f9;
    color: #2196F3;
}

.mobile-nav-divider {
    border-top: 1px solid #f0f0f0;
    margin: 15px 10px;
}

.mobile-nav-primary {
    color: #1565C0 !important;
    font-weight: bold;
}

.mobile-nav-danger {
    color: #e74c3c !important;
}

/* DARK THEME SUPPORT */
[data-theme="dark"] body {
    background: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] .header {
    background: #1e1e1e;
    border-bottom-color: #333;
}

[data-theme="dark"] .nav a {
    color: #999;
}

[data-theme="dark"] .logo a {
    color: #64b5f6;
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .notif-btn {
    background: #333;
    border-color: #444;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

/* DARK MODE MOBILE MENU */
[data-theme="dark"] .mobile-menu-sidebar {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mobile-nav-links a {
    color: #ccc;
    border-bottom-color: #333;
}

[data-theme="dark"] .mobile-nav-links a:hover {
    background: #252525;
    color: #64b5f6;
}

[data-theme="dark"] .close-menu-btn {
    color: #aaa;
}

[data-theme="dark"] .mobile-menu-btn span {
    background: #e0e0e0;
}

[data-theme="dark"] .mobile-nav-divider {
    border-top-color: #333;
}

/* FOOTER UTILS */
.footer-copy {
    display: inline-block;
}

.footer-sep {
    margin: 0 8px;
    color: #ddd;
}

.footer-res {
    display: inline-block;
}

[data-theme="dark"] .footer-sep {
    color: #444;
}

/* TOPIC PILLS (CATEGORY DISCOVERY) */
.cat-topics-wrapper {
    margin: 20px 0 30px 0;
}

.topics-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 2px 15px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.topics-scroller::-webkit-scrollbar {
    display: none;
}

.topic-pill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-pill .pill-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    background: #f0f0f0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topic-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.15);
    border-color: #2196F3;
    color: #2196F3;
}

/* Dark Mode Topic Pill */
[data-theme="dark"] .topic-pill {
    background: #252525;
    border-color: #333;
    color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .topic-pill .pill-img {
    border-color: #444;
}

[data-theme="dark"] .topic-pill:hover {
    background: #2d2d2d;
    border-color: #64b5f6;
    color: #64b5f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* UTILS */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* CATEGORY GRID & CARDS */
.categories-grid {
    display: grid;
    /* Grid template columns are handled by {dynamic_css} for homepage, or default here */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.resimli-cat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    will-change: transform;
}

.resimli-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.resimli-cat-card:active {
    transform: scale(0.98);
}

.resimli-cat-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.resimli-cat-content {
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.resimli-cat-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: white !important;
}

.resimli-cat-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .resimli-cat-card {
        height: 130px;
    }

    .resimli-cat-title {
        font-size: 15px;
    }
}

/* Kategori Stil: Kart (Modern Card) */
.cat-card-modern {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.cat-card-modern .cat-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.cat-card-modern .cat-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.cat-card-modern .cat-count {
    color: #64748b;
    font-size: 13px;
}

/* Kategori Stil: Minimal (Text Links) */
.cat-card-minimal {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.cat-card-minimal:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.cat-card-minimal .cat-title {
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

.cat-card-minimal .cat-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

[data-theme="dark"] .cat-card-modern {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .cat-card-modern .cat-title {
    color: #f1f5f9;
}

[data-theme="dark"] .cat-card-minimal {
    background: #272c35;
    border-color: #334155;
}

[data-theme="dark"] .cat-card-minimal .cat-title {
    color: #f1f5f9;
}

[data-theme="dark"] .cat-card-minimal .cat-count {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .resimli-cat-card {
    background-color: #2a2a2a;
}

/* IMAGES GRID & CARDS (FRESH STYLE) */
.images-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

.wallpaper-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    display: block;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.wallpaper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.wallpaper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.wallpaper-card:hover img {
    transform: scale(1.1);
}

/* OVERLAY - Stronger Hover */
.wallpaper-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 5;
}

.wallpaper-card:hover .wallpaper-card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallpaper-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.wallpaper-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-cat {
    background: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.image-hits {
    font-size: 11px;
    opacity: 0.9;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.image-placeholder span {
    font-size: 48px;
    font-weight: 800;
    color: white;
}

[data-theme="dark"] .wallpaper-card {
    background: #1e1e1e;
}

/* NETFLIX STYLE SLIDER */
.netflix-row-container {
    position: relative;
    display: flex;
    align-items: center;
}

.netflix-row {
    position: relative;
    margin: 0 -10px;
    padding: 0 10px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.netflix-row::-webkit-scrollbar {
    display: none;
}

.netflix-slider {
    display: flex;
    gap: 12px;
    padding: 20px 0 40px;
}

.netflix-slider .wallpaper-card {
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 16/9;
}

/* Netflix Hover Pop-out Effect */
.netflix-slider .wallpaper-card:hover {
    transform: scale(1.15) translateY(-5px);
    z-index: 50;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border-radius: 4px;
    opacity: 0;
}

.netflix-row-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    width: 60px;
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

@media (max-width: 768px) {
    .netflix-slider .wallpaper-card {
        width: 220px;
    }

    .netflix-slider .wallpaper-card:hover {
        transform: scale(1.05);
    }

    .slider-arrow {
        display: none;
    }

    /* Mobile uses native scroll */
}

/* PAGINATION */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #2196F3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-current {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    cursor: default;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.pagination-current:hover {
    background: #2196F3;
    color: white;
    transform: none;
}

.pagination-ellipsis span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    color: #999;
}


/* COLORS GRID - Sleek Thin Style */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.color-card {
    border-radius: 6px;
    /* Rectangular with slight rounding */
    min-height: 40px;
    /* Thinner */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border for very light colors */
}

.color-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

@media (max-width: 480px) {
    .colors-grid {
        grid-template-columns: repeat(4, 1fr);
        /* More columns on mobile for small pills */
        gap: 8px;
    }

    .color-card {
        min-height: 35px;
    }

    .color-card {
        min-height: 35px;
    }
}


/* RESOLUTIONS GRID - Clean Icon Style */
.resolutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.resolution-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    user-select: none;
    text-decoration: none;
}

.resolution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    border-color: #2196F3;
}

.res-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.res-icon.apple {
    color: #333;
}

.res-icon.android {
    color: #3DDC84;
}

.res-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.res-size {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.resolution-card:hover .res-size {
    color: #2196F3;
}

.res-label {
    font-size: 12px;
    color: #888;
}

/* Specific styles for card types */
.resolution-card.apple:hover {
    border-color: #333;
    color: #333;
}

.resolution-card.apple:hover .res-size {
    color: #333;
}

.resolution-card.android:hover {
    border-color: #3DDC84;
    color: #3DDC84;
}

.resolution-card.android:hover .res-size {
    color: #3DDC84;
}

.res-icon.desktop,
.res-icon.laptop,
.res-icon.mobile {
    color: #999;
}

.resolution-card.desktop:hover .res-icon.desktop,
.resolution-card.laptop:hover .res-icon.laptop,
.resolution-card.mobile:hover .res-icon.mobile {
    color: #2196F3;
}

[data-theme="dark"] .resolution-card {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .res-size {
    color: #e0e0e0;
}

/* User Resolution Highlight */
.resolution-card.user-resolution {
    border-color: #2196F3;
    background: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.resolution-card.user-resolution .res-label {
    color: #2196F3;
    font-weight: 600;
    background: rgba(33, 150, 243, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

[data-theme="dark"] .resolution-card.user-resolution {
    background: #1a2733;
    border-color: #64b5f6;
}

[data-theme="dark"] .resolution-card.user-resolution .res-label {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.15);
}



[data-theme="dark"] .res-icon.apple {
    color: #fff;
}

.resolution-card:hover .res-ratio {
    background: #e3f2fd;
    color: #1976D2;
}

[data-theme="dark"] .resolution-card {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .res-ratio {
    background: #333;
    color: #aaa;
}


/* POPULAR USERS GRID */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #2196F3;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

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

.user-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #2196F3;
    background: #e3f2fd;
}


/* POPULAR TAGS GRID - Colorful Pills */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-card {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    /* Full pill shape */
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

/* Color Cycles (Light Mode) */
.tag-card:nth-child(6n+1) {
    background-color: #e3f2fd;
    color: #0D47A1;
}

/* Blue */
.tag-card:nth-child(6n+2) {
    background-color: #f3e5f5;
    color: #4A148C;
}

/* Purple */
.tag-card:nth-child(6n+3) {
    background-color: #e0f2f1;
    color: #00695C;
}

/* Teal */
.tag-card:nth-child(6n+4) {
    background-color: #fff3e0;
    color: #E65100;
}

/* Orange */
.tag-card:nth-child(6n+5) {
    background-color: #ffebee;
    color: #C62828;
}

/* Red */
.tag-card:nth-child(6n+6) {
    background-color: #e8eaf6;
    color: #283593;
}

/* Indigo */

.tag-card:hover {
    transform: translateY(-2px);
    filter: brightness(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tag-name {
    color: inherit;
}

.tag-count {
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    opacity: 0.9;
}

/* Dark Theme - Neon/Glow Style */
[data-theme="dark"] .tag-card:nth-child(6n+1) {
    background-color: rgba(33, 150, 243, 0.15);
    color: #90CAF9;
    border-color: rgba(33, 150, 243, 0.3);
}

[data-theme="dark"] .tag-card:nth-child(6n+2) {
    background-color: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
    border-color: rgba(156, 39, 176, 0.3);
}


[data-theme="dark"] .tag-card:nth-child(6n+3) {
    background-color: rgba(0, 150, 136, 0.15);
    color: #80CBC4;
    border-color: rgba(0, 150, 136, 0.3);
}




[data-theme="dark"] .tag-card:nth-child(6n+4) {
    background-color: rgba(255, 152, 0, 0.15);
    color: #FFCC80;
    border-color: rgba(255, 152, 0, 0.3);
}

[data-theme="dark"] .tag-card:nth-child(6n+5) {
    background-color: rgba(244, 67, 54, 0.15);
    color: #EF9A9A;
    border-color: rgba(244, 67, 54, 0.3);
}

[data-theme="dark"] .tag-card:nth-child(6n+6) {
    background-color: rgba(63, 81, 181, 0.15);
    color: #9FA8DA;
    border-color: rgba(63, 81, 181, 0.3);
}

[data-theme="dark"] .tag-card:hover {
    filter: brightness(1.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tag-count {
    background: rgba(0, 0, 0, 0.3);
}

.user-info h4 {
    font-size: 15px;
    margin: 0 0 2px;
    color: #333;
    font-weight: 600;
}

.user-info span {
    font-size: 12px;
    color: #888;
}

.user-card:hover h4 {
    color: #2196F3;
}

[data-theme="dark"] .user-card {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .user-info h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .user-initial {
    background: #1565C0;
    color: white;
}


/* RESPONSIVE IMAGES */
@media (max-width: 1024px) {
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

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



/* FOOTER */
.site-footer {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 60px 0 40px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 0;
        padding: 20px 0 15px;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 8px;
}

.footer-info p {
    color: #666;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2196F3;
}

.footer-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* DARK THEME FOOTER */
[data-theme="dark"] .site-footer {
    background: #1e1e1e;
    border-top-color: #333;
}

[data-theme="dark"] .footer-info p,
[data-theme="dark"] .footer-links a {
    color: #999;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #333;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-info h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .footer-info p {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        font-size: 13px;
        display: block;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }

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

    /* Hide screen resolution on mobile */
    .screen-resolution {
        display: none;
    }

    /* Hide footer branding and links on mobile */
    .footer-info,
    .footer-links {
        display: none;
    }
}

/* SCROLL TO TOP BUTTON */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.scroll-top-btn:active {
    transform: scale(0.9);
}

/* CATEGORY & TOPIC PAGE STYLES */
.cat-search-container {
    position: relative;
    margin-bottom: 0;
    max-width: 300px;
    width: 100%;
    transition: all 0.3s;
}

.cat-search-container input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s;
    color: #333;
    outline: none;
}

.cat-search-container input:focus {
    border-color: #2196F3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.cat-search-container svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

[data-theme="dark"] .cat-search-container input {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}

[data-theme="dark"] .cat-search-container svg {
    color: #666;
}

.alpha-nav-container {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.alpha-link {
    padding: 6px 12px;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.alpha-link.active {
    color: #2196F3;
    background: #E3F2FD;
}

.alpha-link:hover:not(.disabled) {
    background: #f0f0f0;
    color: #333;
}

.alpha-link.disabled {
    opacity: 0.3;
    cursor: default;
}

[data-theme="dark"] .alpha-nav-container {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid #333;
}

[data-theme="dark"] .alpha-link {
    color: #aaa;
}

[data-theme="dark"] .alpha-link.active {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.15);
}

[data-theme="dark"] .alpha-link:hover:not(.disabled) {
    background: #333;
    color: #fff;
}

/* Filter Bar */
.cat-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.sort-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.sort-tabs::-webkit-scrollbar {
    display: none;
}

.clean-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.clean-tab:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.clean-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

[data-theme="dark"] .cat-filters-bar {
    border-bottom-color: #333;
}

[data-theme="dark"] .clean-tab {
    background: #2a2a2a;
    border-color: #444;
    color: #aaa;
}

[data-theme="dark"] .clean-tab:hover {
    background: #333;
    color: #eee;
}

[data-theme="dark"] .clean-tab.active {
    background: #eee;
    color: #111;
    border-color: #eee;
}

/* Hero Section */
.cat-hero {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #333;
}

.cat-hero.gradient-default {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

[data-theme="dark"] .cat-hero.gradient-default {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

.cat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    width: 100%;
}

.cat-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    color: white;
    letter-spacing: -1px;
}

.cat-hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
}

.hero-search-form button {
    background: #2196F3;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Topics Page Listing */
.topics-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.topic-full-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height: 100%;
}

.topic-full-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #2196F3;
}

.topic-full-img {
    height: 160px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
}

.topic-full-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-full-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.topic-full-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.topic-full-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: #2196F3;
    font-weight: 600;
    font-size: 14px;
    gap: 5px;
}

[data-theme="dark"] .topic-full-card {
    background: #2a2a2a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .topic-full-title {
    color: #eee;
}

[data-theme="dark"] .topic-full-desc {
    color: #aaa;
}

[data-theme="dark"] .topic-full-img {
    background-color: #222;
}

.hero-search-form button:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* Topics / Pills */
.cat-topics-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
}

.topics-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.topics-scroller::-webkit-scrollbar {
    display: none;
}

.topic-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 15px 6px 6px;
    border-radius: 50px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #eee;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.topic-pill:hover {
    border-color: #2196F3;
    color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.1);
}

.topic-pill .pill-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

[data-theme="dark"] .topic-pill {
    background: #2a2a2a;
    border-color: #444;
    color: #eee;
}

[data-theme="dark"] .topic-pill:hover {
    border-color: #2196F3;
    color: #2196F3;
}

/* Topic Mini Cards (Discovery) */
.topics-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.topic-mini-card {
    display: block;
    height: 100px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.topic-mini-card.gradient-default {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}

[data-theme="dark"] .topic-mini-card.gradient-default {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
}

.topic-mini-card:hover {
    transform: translateY(-5px);
}

.topic-mini-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: background 0.3s;
}

.topic-mini-card:hover .topic-mini-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.topic-mini-title {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
}

/* Pagination Classic */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-link:hover {
    border-color: #2196F3;
    color: #2196F3;
    background: #f0f8ff;
}

.pagination-link.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}

.pagination-dots {
    color: #999;
    font-weight: bold;
    padding: 0 5px;
}

[data-theme="dark"] .pagination-link {
    background: #2a2a2a;
    border-color: #444;
    color: #aaa;
}

[data-theme="dark"] .pagination-link:hover {
    background: #333;
    color: #eee;
}

[data-theme="dark"] .pagination-link.active {
    background: #2196F3;
    color: #fff;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.4);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .cat-hero {
        height: 260px;
        border-radius: 0 0 15px 15px;
    }

    .cat-hero h1 {
        font-size: 2.2rem;
    }

    .cat-hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cat-filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-text {
        order: -1;
        margin-bottom: 5px;
        font-size: 12px;
        color: #888;
    }

    .sort-tabs {
        width: 100%;
    }

    .cat-search-container {
        max-width: 100%;
        margin-top: 5px;
    }

    .alpha-nav-container {
        padding: 10px 0;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        top: 60px;
        border-bottom: 1px solid #eee;
    }

    .alpha-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .alpha-nav::-webkit-scrollbar {
        display: none;
    }

    .alpha-link {
        flex: 0 0 auto;
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 20px;
        font-size: 15px;
        margin-right: 5px;
    }

    .alpha-link.active {
        background: #2196F3;
        color: white;
        box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
    }

    [data-theme="dark"] .alpha-link {
        background: #2a2a2a;
    }

    [data-theme="dark"] .alpha-link.active {
        background: #2196F3;
    }
}

/* Spinner for Loading */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scroll-sentinel {
    height: 20px;
    margin: 20px 0;
}

.loading-indicator {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.fade-in-item {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kategori Popüler Etiketler */
.cat-tags-container {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.cat-tags-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.cat-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-tag-link {
    display: inline-block;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.cat-tag-link span {
    opacity: 0.6;
    font-size: 12px;
    margin-left: 5px;
}

.cat-tag-link:hover {
    background: #e3f2fd;
    color: #1976D2;
    transform: translateY(-2px);
}

[data-theme="dark"] .cat-tags-container {
    border-top-color: #333;
}

[data-theme="dark"] .cat-tags-title {
    color: #eee;
}

[data-theme="dark"] .cat-tag-link {
    background: #2a2a2a;
    color: #aaa;
}

[data-theme="dark"] .cat-tag-link:hover {
    background: #333;
    color: #fff;
}


.scroll-top-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

[data-theme="dark"] .scroll-top-btn {
    background: #2196F3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

[data-theme="dark"] .scroll-top-btn:hover {
    background: #1976D2;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* Mobile Simplification: Hide non-image modules */
    .hide-on-mobile {
        display: none !important;
    }
}

/* MEMBER PROFILE - Modern Style */
.profile-page-modern {
    margin-top: -20px;
    /* Optional: Pull up closer to header if needed */
}

.profile-header-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.profile-cover {
    height: 250px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-info-section {
    padding: 0 30px 30px;
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-top: -60px;
    /* Overlap cover */
    flex-wrap: wrap;
    gap: 20px;
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    background: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-text-content {
    flex: 1;
    padding-bottom: 10px;
    min-width: 200px;
}

.profile-username {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #333;
}

.profile-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-actions {
    padding-bottom: 15px;
    display: flex;
    gap: 10px;
}

.btn-view-gallery {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-view-gallery:hover {
    background: #e0e0e0;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: #eee;
    /* for gap border effect */
    border-top: 1px solid #eee;
}

.stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-badges-section {
    padding: 30px;
    border-top: 1px solid #eee;
}

.profile-badges-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Edit Profile Styles */
.edit-profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.edit-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.edit-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.edit-card-header {
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
}

.edit-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.edit-card-body {
    padding: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #2196F3;
    outline: none;
}

.avatar-edit-preview,
.cover-edit-preview {
    margin-bottom: 10px;
    position: relative;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.current-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 15px;
    display: inline-block;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

@media (max-width: 900px) {
    .edit-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }

    .profile-text-content {
        width: 100%;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
        width: 100%;
    }

    .profile-cover {
        height: 180px;
    }

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

/* Dark Theme Support for Profile */
[data-theme="dark"] .profile-header-card,
[data-theme="dark"] .edit-card,
[data-theme="dark"] .stat-card {
    background: #1e1e1e;
    color: #e0e0e0;
}

[data-theme="dark"] .profile-username,
[data-theme="dark"] .profile-badges-section h3,
[data-theme="dark"] .edit-card-header h3 {
    color: white;
}

[data-theme="dark"] .profile-avatar-large {
    border-color: #1e1e1e;
}

[data-theme="dark"] .stat-card {
    border-color: #333;
}

[data-theme="dark"] .profile-stats-grid {
    background: #333;
    border-color: #333;
}

[data-theme="dark"] .profile-badges-section,
[data-theme="dark"] .edit-card-header {
    border-color: #333;
}

[data-theme="dark"] .edit-card-header {
    background: #252525;
}

[data-theme="dark"] .form-control {
    background: #2c2c2c;
    border-color: #444;
    color: white;
}



.notification-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}



/* UTILITY CLASSES */
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.text-muted {
    color: #888;
}

[data-theme="dark"] .text-muted {
    color: #aaa;
}

/* DETAILS PAGE */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.details-main {
    min-width: 0;
    /* Prevent grid overflow */
}

.details-card,
.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.image-card {
    padding: 20px;
}

.image-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.image-display-container {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

.image-display-container img {
    max-width: 100%;
    max-height: 80vh;
    /* Prevent huge images from overflowing */
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.image-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.description-card {
    padding: 25px;
}

.desc-text {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.sidebar-card {
    padding: 20px;
}

.btn-download-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2196F3;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-download-primary:hover {
    background: #1976D2;
    color: white;
}

/* Resolutions (from details.php HTML) */
.resolutions-container h3.res-title {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.res-group h4 {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    margin: 10px 0 5px;
}

.res-link {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f5f5f5;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.res-link:hover {
    background: #e0e0e0;
}

.res-desc,
.res-size {
    color: #888;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Theme */
[data-theme="dark"] .details-card,
[data-theme="dark"] .sidebar-card {
    background: #1e1e1e;
    color: #e0e0e0;
}

[data-theme="dark"] .image-header h1 {
    color: white;
}

[data-theme="dark"] .image-display-container {
    background: #252525;
}

[data-theme="dark"] .image-toolbar {
    border-color: #333;
}

[data-theme="dark"] .res-link {
    background: #2c2c2c;
    color: #e0e0e0;
}

[data-theme="dark"] .res-link:hover {
    background: #333;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {

    /* Full width container for details page */
    .details-page-wrapper.container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }

    /* General container adjustment if needed, but be careful with header */
    /* .container { padding-left: 10px; padding-right: 10px; } */

    .details-page-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .details-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        /* Remove gap between cards */
    }

    /* Make cards full width, square corners */
    .details-main .details-card,
    .details-sidebar .sidebar-card {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Image display container specific fix */
    .image-display-container {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .image-card {
        padding-bottom: 5px;
    }

    /* Image header font size */
    .image-header h1 {
        font-size: 20px;
        line-height: 1.3;
        padding: 0 10px;
        /* Add internal padding back to text */
    }

    /* Sidebar order */
    .details-sidebar {
        order: 2;
    }
}

/* Admin Edit/Delete Buttons */
.btn-admin-edit:hover {
    background: #1976D2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-admin-delete:hover {
    background: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* TAGS SYSTEM */
.tags-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.tag-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-chip:hover {
    background: #e2e8f0;
    color: #2196F3;
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

[data-theme="dark"] .tags-section {
    background: #1e1e1e;
}

[data-theme="dark"] .tag-chip {
    background: #333;
    color: #ccc;
}

[data-theme="dark"] .tag-chip:hover {
    background: #444;
    color: #64b5f6;
}

/* LISTS PAGE STYLES */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(var(--lists-cols, 3), 1fr);
    gap: 30px;
    margin-top: 20px;
}

.list-item-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: block;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.list-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.list-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.list-item-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.list-item-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

[data-theme="dark"] .list-item-card {
    border: 1px solid #333;
}

@media (max-width: 1100px) {
    .lists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lists-grid {
        grid-template-columns: 1fr;
    }

    .list-item-title {
        font-size: 1.2rem;
    }
}

/* SINGLE COLLECTION PAGE */
.coll-hero-section {
    position: relative;
    padding: 60px 24px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
    justify-content: center;
}

.coll-admin-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    color: #2196F3;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.coll-admin-edit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


.coll-hero-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    transform: scale(1.1);
    z-index: 1;
}

.coll-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.coll-breadcrumb {
    color: white;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.95;
}

.coll-breadcrumb a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}

.coll-breadcrumb a:hover {
    opacity: 1;
}

.coll-breadcrumb .separator {
    opacity: 0.5;
    margin: 0 8px;
}

.coll-breadcrumb .current {
    font-weight: 600;
}

.coll-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.coll-hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.coll-wp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.coll-wp-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: block;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coll-wp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.coll-wp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.coll-wp-card:hover .coll-wp-img {
    transform: scale(1.1);
}

.coll-wp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.coll-wp-card:hover .coll-wp-overlay {
    opacity: 1;
}

.coll-wp-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.coll-wp-user {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

[data-theme="dark"] .coll-hero-section {
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .coll-hero-section {
        padding: 50px 20px;
    }

    .coll-hero-content h1 {
        font-size: 2rem;
    }

    .coll-wp-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .coll-wp-overlay {
        padding: 12px;
    }
}


/* COLLECTIONS PAGE STYLES */
.featured-collections-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
    height: 440px;
    margin-top: 20px;
}

.featured-coll-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
}

.featured-coll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.featured-side-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.coll-overlay-glass {
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
}

.coll-title-large {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.coll-title-sub {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.coll-desc-text {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.coll-meta-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collections-others-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.coll-card-std {
    height: 220px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.coll-card-std:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1000px) {
    .featured-collections-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured-coll-card.main-feat {
        height: 350px;
    }

    .featured-side-subgrid {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .featured-side-subgrid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured-coll-card {
        height: 200px !important;
    }

    .coll-title-large {
        font-size: 1.5rem;
    }
}

/* GLOBAL WALLPAPER CARD & GRID (Used in Top, Search, Collections etc) */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.wallpaper-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
    aspect-ratio: 16/9;
    text-decoration: none !important;
}

.wallpaper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.wallpaper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.wallpaper-card:hover img {
    transform: scale(1.08);
}

.wallpaper-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wallpaper-card:hover .wallpaper-card-overlay {
    opacity: 1;
}

.wallpaper-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wallpaper-stat {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .wallpaper-card {
        border-radius: 8px;
    }

    .wallpaper-card-title {
        font-size: 0.95rem;
    }

    .wallpaper-card-overlay {
        padding: 12px;
        opacity: 1;
        /* Always visible on mobile for better UX */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 80%);
    }
}

/* DETAILS PAGE ENHANCEMENTS */
.color-palette-bar {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: default;
    margin-bottom: 20px;
}

[data-theme="dark"] .color-palette-bar {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-slice {
    flex: 1;
    display: block;
    height: 100%;
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s, transform 0.2s;
}

.color-slice:hover {
    opacity: 0.85;
    transform: scaleX(1.1);
    z-index: 2;
}

.image-topics {
    margin-top: 30px;
}

.image-topics h3,
.tags-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

.tags-section {
    margin-top: 25px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Modal System (Report) */
.report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.report-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.3s ease-out;
}

[data-theme="dark"] .report-modal-content {
    background: #1e1e1e;
    color: #eee;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.report-modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

[data-theme="dark"] .report-modal-content p {
    color: #aaa;
}

.report-select,
.report-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-family: inherit;
}

[data-theme="dark"] .report-select,
[data-theme="dark"] .report-textarea {
    background: #2d2d2d;
    border-color: #444;
    color: #eee;
}

.report-textarea {
    height: 100px;
    resize: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-report {
    border: none;
    background: #f1f5f9;
    color: #475569;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 15px;
}

[data-theme="dark"] .btn-report {
    background: #334155;
    color: #f1f5f9;
}

.btn-report:hover {
    background: #e2e8f0;
    color: #ef4444;
}

[data-theme="dark"] .btn-report:hover {
    background: #475569;
}

/* General Buttons */
.btn-primary {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="dark"] .btn-secondary {
    background: #334155;
    color: #f1f5f9;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #475569;
}

/* Resolutions Styling */
.resolutions-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    margin-top: 40px;
}

[data-theme="dark"] .resolutions-container {
    background: #1e1e1e;
    border-color: #333;
}

.res-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.res-group {
    margin-bottom: 20px;
}

.res-group:last-child {
    margin-bottom: 0;
}

.res-group h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.res-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.res-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

[data-theme="dark"] .res-link {
    background: #2d2d2d;
    border-color: #444;
    color: #ccc;
}

.res-link:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
    transform: translateY(-2px);
}

.res-desc {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

/* Admin Buttons (Details) */
.btn-admin-edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #2196F3;
    color: white !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-admin-edit:hover {
    background: #1976D2;
}

.btn-admin-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #dc3545;
    color: white !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-admin-delete:hover {
    background: #c82333;
}

.btn-danger {
    background: #dc3545;
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.report-modal-overlay.active {
    display: flex;
}

/* Details Page Wrapper */
.details-page-wrapper {
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Flash Messages */
.flash-msg {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.flash-msg-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

[data-theme="dark"] .flash-msg-success {
    background: rgba(4, 120, 87, 0.2);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}

/* Interactive Meta Buttons */
.meta-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.meta-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .meta-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.heart-icon,
.lightbox-icon {
    font-size: 18px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Share Buttons */
.share-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

.share-link {
    text-decoration: none;
    display: flex;
    transition: transform 0.2s, filter 0.2s;
}

.share-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Mobile Download Card */
.mobile-download-card {
    display: none;
}

@media (max-width: 768px) {
    .mobile-download-card {
        display: flex !important;
        margin-top: 15px;
        margin-bottom: 25px;
        text-decoration: none;
        background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
        border: none;
        border-radius: 16px;
        padding: 16px 20px;
        align-items: center;
        gap: 16px;
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .mobile-download-card:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px -3px rgba(37, 99, 235, 0.5);
    }

    .mobile-download-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
        pointer-events: none;
    }

    .res-icon {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .res-infos {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        z-index: 1;
    }

    .res-title-text {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 3px;
        letter-spacing: -0.3px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .res-desc-text {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

/* Sidebar Specific Cards */
.colors-card {
    margin-top: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

[data-theme="dark"] .colors-card {
    background: #1e1e1e;
    border-color: #333;
}

.colors-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .colors-card h3 {
    color: #eee;
}

.vote-btns {
    display: flex;
    gap: 8px;
}

.btn-vote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-vote:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-vote:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-vote-up {
    color: #10b981;
}

.btn-vote-down {
    color: #ef4444;
}

.btn-reply {
    background: none;
    border: none;
    color: #2196F3;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-reply:hover {
    opacity: 0.8;
}

/* Search & Grid System */
.search-page-wrapper {
    padding-top: 30px;
    padding-bottom: 60px;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .page-header h1 {
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

.wallpaper-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #111;
    aspect-ratio: 16/9;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.wallpaper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.wallpaper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.wallpaper-card:hover img {
    transform: scale(1.1);
}

.wallpaper-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wallpaper-card:hover .wallpaper-card-overlay {
    opacity: 1;
}

.wallpaper-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.pagination a,
.pagination b {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
}

[data-theme="dark"] .pagination a {
    background: #1e1e1e;
    border-color: #333;
    color: #aaa;
}

.pagination a:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

[data-theme="dark"] .pagination a:hover {
    background: #252525;
}

.pagination b {
    background: #2196F3;
    color: #fff;
    border: 1px solid #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Search Hero Section */
.search-page-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top right, rgba(33, 150, 243, 0.05), transparent 400px),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent 400px);
}

.search-hero-content {
    max-width: 700px;
    width: 100%;
}

.search-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.search-hero-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Main Search Input Styling */
.search-main-row {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .search-main-row {
    background: #0f172a;
    border-color: #334155;
}

.search-main-row:focus-within {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 12px;
    gap: 12px;
}

.input-wrapper input {
    border: none !important;
    background: none !important;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: inherit;
    outline: none !important;
    box-shadow: none !important;
}

.search-icon {
    color: #9ca3af;
}

.btn-search-submit {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-submit:hover {
    background: #1976D2;
    transform: scale(1.02);
}

.search-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-tags span {
    font-weight: 600;
    font-size: 14px;
    color: #9ca3af;
}

.search-tags a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 50px;
    transition: all 0.2s;
}

[data-theme="dark"] .search-tags a {
    background: #2d2d2d;
    color: #ccc;
}

.search-tags a:hover {
    background: #2196F3;
    color: #fff;
    transform: translateY(-2px);
}

/* Search Discovery Grid */
.search-discovery-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.search-tags-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
}

[data-theme="dark"] .search-tags-section {
    background: rgba(255, 255, 255, 0.03);
}

.search-tags-section span {
    font-weight: 700;
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
    min-width: 150px;
}

[data-theme="dark"] .search-tags-section span {
    color: #9ca3af;
}

.search-tags-section a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    transition: all 0.2s;
}

[data-theme="dark"] .search-tags-section a {
    background: #2d2d2d;
    border-color: #444;
    color: #ccc;
}

.search-tags-section a:hover {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

/* Color Dots */
.search-tags-section.colors {
    gap: 8px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .color-dot {
    border-color: #333;
}

.color-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


/* Empty Profile/Gallery State */
.empty-state-wrapper {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Modern Search Form */
/* Modern Search Form Container */
.modern-search-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-filters-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .search-filters-row {
    border-color: #334155;
}

.filter-item {
    text-align: left;
}

.filter-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

[data-theme="dark"] .filter-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.filter-select:focus {
    border-color: #2196F3;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

[data-theme="dark"] .filter-select:focus {
    background-color: #1e293b;
}

@media (max-width: 640px) {
    .search-filters-row {
        grid-template-columns: 1fr;
    }

    .search-main-row {
        flex-direction: column;
    }

    .btn-search-submit {
        width: 100%;
        padding: 14px;
    }
}

/* Results Compact Filter Bar */
.results-filter-bar {
    max-width: 600px;
    margin: 25px auto 0;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

[data-theme="dark"] .results-filter-bar {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.compact-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.compact-input-group input {
    flex-grow: 1;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f8fafc;
    outline: none;
    font-size: 14px;
    font-weight: 500;
}

[data-theme="dark"] .compact-input-group input {
    background: #0f172a;
    border-color: #334155;
    color: #fff;
}

.compact-select {
    width: 150px;
    padding: 10px 30px 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

[data-theme="dark"] .compact-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.btn-compact-submit {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-compact-submit:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

/* Notifications Page */
/* Member Content Wrapper */
.member-content-wrapper {
    margin-top: 15px !important;
    /* Reduced for better look */
    margin-bottom: 60px;
}

/* Notifications & Member Pages */
.notifications-page,
.edit-profile-page,
.top-page-wrapper,
.new-images-page,
.login-page-wrapper {
    width: 100%;
}

.edit-profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.notif-info-bar {
    background: #f0f7ff;
    border: 1px solid #d0e4ff;
    padding: 12px 20px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .notif-info-bar {
    background: rgba(33, 150, 243, 0.05);
    border-color: rgba(33, 150, 243, 0.2);
}

.info-icon {
    font-size: 18px;
}

.info-text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

[data-theme="dark"] .info-text {
    color: #cbd5e1;
}

.unread-badge {
    background: #FF5252;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 12px;
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
    vertical-align: middle;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="dark"] .btn-secondary {
    background: #334155;
    color: #f1f5f9;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.notifications-list-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

[data-theme="dark"] .notifications-list-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .notification-item {
    border-color: #334155;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: linear-gradient(to right, #f8fbff, #fff);
    border-left: 4px solid #2196F3;
    padding-left: 20px;
}

[data-theme="dark"] .notification-item.unread {
    background: linear-gradient(to right, rgba(33, 150, 243, 0.05), transparent);
}

.notification-item:hover {
    background: #fcfdfe;
    padding-left: 28px;
}

.notification-item.unread:hover {
    padding-left: 24px;
}

[data-theme="dark"] .notification-item:hover {
    background: #1a2235;
}

.notif-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notif-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.notification-item:hover .notif-icon {
    transform: scale(1.1);
}

.notification-item.like .notif-icon {
    background: #fff1f2;
}

.notification-item.follow .notif-icon {
    background: #f0f9ff;
}

.notification-item.rank .notif-icon {
    background: #fffbeb;
}

.notification-item.default .notif-icon {
    background: #f8fafc;
}

[data-theme="dark"] .notif-icon {
    background: #0f172a !important;
}

.notif-content {
    flex-grow: 1;
}

.notif-text {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.5;
}

[data-theme="dark"] .notif-text {
    color: #f1f5f9;
}

.notif-date {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.notif-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s;
}

.notification-item:hover .notif-actions {
    opacity: 1;
    transform: translateX(0);
}

.notif-btn-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .notif-btn-action {
    background: #0f172a;
    border-color: #334155;
}

.notif-btn-action.mark-read:hover {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.notif-btn-action.delete-notif:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.no-notifications {
    padding: 80px 20px;
    text-align: center;
    color: #94a3b8;
}

.no-notif-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .notif-header-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
    }

    .header-actions {
        width: 100%;
        margin-top: 5px;
    }

    .header-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .notif-actions {
        opacity: 1;
        transform: none;
    }

    .notification-item {
        padding: 20px;
    }

    .notification-item:hover {
        padding-left: 20px;
    }


    /* Content Filters (Tabs) */
    .filter-tabs {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 10px 22px;
        background: #fff;
        color: #334155;
        font-size: 14px;
        font-weight: 700;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .filter-tab {
        background: #1e293b;
        border-color: #334155;
        color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .filter-tab:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(33, 150, 243, 0.15);
        border-color: #2196F3;
        color: #2196F3;
    }

    .filter-tab.active {
        background: #1565C0;
        color: #fff;
        border-color: #1565C0;
        box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
    }

    /* Card Badge (New/Rank/etc) */
    .card-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #ef4444;
        color: #fff;
        padding: 6px 12px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 768px) {
        .filter-tabs {
            gap: 8px;
            margin-bottom: 30px;
        }

        .filter-tab {
            padding: 8px 16px;
            font-size: 13px;
        }
    }
}

/* ========================================
   CAPTCHA FORM STYLES
   ======================================== */

.captcha-group {
    margin-top: 20px;
}

.captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-wrapper img {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 70px;
    display: block;
}

.btn-refresh-captcha {
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-refresh-captcha:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.captcha-group input.form-control {
    margin-top: 10px;
    max-width: 200px;
}

.captcha-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

[data-theme="dark"] .captcha-wrapper img {
    border-color: #444;
    background: #2a2a2a;
}

[data-theme="dark"] .captcha-group small {
    color: #999;
}


/* 
   ========================================
   GENERIC SECTION HEADERS & 'VIEW ALL' LINKS 
   Fixes alignment issues for "Tümünü Gör" links
   ======================================== 
*/

.section-main-header,
.section-header,
.module-header,
.home-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    flex-wrap: wrap;
    /* Mobil uyumluluk için */
    gap: 10px;
}

[data-theme="dark"] .section-main-header,
[data-theme="dark"] .section-header,
[data-theme="dark"] .module-header,
[data-theme="dark"] .home-module-header {
    border-bottom-color: #333;
}

/* Sol Taraftaki Başlık (H2 vb.) */
.section-main-header h2,
.section-header h2,
.module-header h2,
.home-module-header h2,
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .section-main-header h2,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .module-header h2,
[data-theme="dark"] .home-module-header h2,
[data-theme="dark"] .section-title {
    color: #fff;
}

/* Sağ Taraftaki 'Tümünü Gör' Linkleri */
.section-main-header a,
.section-header a,
.module-header a,
.home-module-header a,
.view-all-link,
.view-all {
    font-size: 14px;
    font-weight: 600;
    color: #1565C0;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* Ok ikonu ile metin arası boşluk */
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(33, 150, 243, 0.05);
    /* Hafif mavi arka plan */
}

/* Hover Efekti */
.section-main-header a:hover,
.section-header a:hover,
.module-header a:hover,
.home-module-header a:hover,
.view-all-link:hover {
    color: #1976D2;
    background: rgba(33, 150, 243, 0.15);
    transform: translateX(3px);
    /* Sağa doğru hafif kayma efekti */
}

/* NAVBAR DROPDOWN & FEATURES */
.nav-item-dropdown {
    position: relative;
    padding: 20px 0;
    /* Hover alanı genişliği için */
    display: inline-block;
    margin-left: 20px;
}

.nav-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #555;
    /* Default nav color matches existing */
    font-size: 15px;
    transition: color 0.2s;
}

.nav-dropdown-trigger:hover {
    color: #2196F3;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: none;
    /* Varsayılan gizli */
    opacity: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eaeaea;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ok işareti efekti */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #eaeaea;
    border-top: 1px solid #eaeaea;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    /* Override default nav link style */
    transition: background 0.2s;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.dropdown-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.dropdown-text p {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
}

/* Renk Varyasyonları */
.dropdown-item:hover .dropdown-icon {
    transform: scale(1.1);
}

.icon-random {
    background: #fef3c7;
    color: #d97706;
}

.icon-wotd {
    background: #dcfce7;
    color: #16a34a;
}

.icon-calendar {
    background: #fce7f3;
    color: #db2777;
}

.icon-colors {
    background: #f3e8ff;
    color: #9333ea;
}

/* Dark Mode Support */
[data-theme="dark"] .nav-dropdown-menu {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .nav-dropdown-menu::before {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #2a2a2a;
}

[data-theme="dark"] .dropdown-text h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-text p {
    color: #aaa;
}

[data-theme="dark"] .nav-item-dropdown .nav-dropdown-trigger {
    color: #aaa;
}

[data-theme="dark"] .nav-item-dropdown:hover .nav-dropdown-trigger {
    color: #64b5f6;
}

/* USER DROPDOWN */
.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
    width: 260px;
}

.nav-item-dropdown:hover .nav-user-menu {
    transform: translateX(0) translateY(0);
}

.nav-user-menu::before {
    left: auto;
    right: 15px;
    /* Ok işaretini sağa al */
    transform: translateX(0) rotate(45deg);
}

.dropdown-user-header {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.user-header-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    object-fit: cover;
}

.user-header-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

[data-theme="dark"] .dropdown-user-header {
    background: #252525;
}

[data-theme="dark"] .dropdown-divider {
    background: #333;
}

.avatar-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* Discovery Icons Header */
.discovery-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid #e2e8f0;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 18px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

[data-theme="dark"] .discovery-icons {
    border-color: #333;
}

[data-theme="dark"] .header-icon-btn {
    background: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .header-icon-btn:hover {
    background: #333;
}

/* WOTD PAGE */
.wotd-page {
    position: relative;
    padding-bottom: 50px;
    margin-top: -20px;
    /* Header boşluğunu dengelemek için */
    overflow: hidden;
}

.wotd-bg-blur {
    position: absolute;
    top: -50px;
    left: -50px;
    height: 600px;
    width: calc(100% + 100px);
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.9);
    z-index: 0;
    opacity: 0.3;
}

.wotd-container {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.wotd-header {
    margin-bottom: 40px;
}

.wotd-badge {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.wotd-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: -webkit-linear-gradient(45deg, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wotd-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 10px;
}

.wotd-featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 60px;
}

/* Desktop Grid */
@media (min-width: 900px) {
    .wotd-featured-card {
        grid-template-columns: 1.6fr 1fr;
    }
}

.wotd-card-image {
    position: relative;
    min-height: 400px;
    background: #f1f5f9;
}

.wotd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

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

.wotd-card-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wotd-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.wotd-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.wotd-title a:hover {
    color: #3b82f6;
}

.wotd-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.wotd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: #f8fafc;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.stat-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* History Section */
.wotd-history h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #334155;
}

.wotd-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Dark Mode */
[data-theme="dark"] .wotd-featured-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .wotd-header h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: white;
}

[data-theme="dark"] .wotd-title a {
    color: #f1f5f9;
}

[data-theme="dark"] .stat-item {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .stat-val {
    color: white;
}

[data-theme="dark"] .wotd-description {
    color: #aaa;
}

/* COLOR MOODS PAGE */

/* Hero */
.mood-page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    margin-bottom: 50px;
}

.mood-page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: -webkit-linear-gradient(45deg, #333, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mood-page-header .subtitle {
    font-size: 1.2rem;
    color: #64748b;
}

/* Gallery Grid */
.moods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.mood-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none !important;
    display: block;
    position: relative;
    border: 1px solid #f1f5f9;
}

.mood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.mood-colors-preview {
    height: 140px;
    display: flex;
}

.color-bar {
    flex: 1;
    height: 100%;
}

.mood-info {
    padding: 20px;
}

.mood-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.mood-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

/* Detail Page Header */
.mood-detail-header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.mood-detail-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1e293b;
}

.mood-big-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.big-swatch {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.big-swatch:hover {
    transform: scale(1.1) rotate(5deg);
}

.mood-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.mood-back-link:hover {
    color: #3b82f6;
}

[data-theme="dark"] .mood-page-header {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

[data-theme="dark"] .mood-page-header h1 {
    -webkit-text-fill-color: initial;
    color: white;
}

[data-theme="dark"] .mood-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .mood-info h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .mood-info p {
    color: #aaa;
}

[data-theme="dark"] .mood-detail-title {
    color: white;
}

/* --- Refactored Header Dropdown Styles --- */
.dropdown-icon-bg-admin {
    background: #fef2f2;
    color: #ef4444;
}

.dropdown-icon-bg-notifications {
    background: #ffedd5;
    color: #ea580c;
}

.dropdown-icon-bg-messages {
    background: #d1fae5;
    color: #10b981;
}

.dropdown-icon-bg-profile {
    background: #e0e7ff;
    color: #4338ca;
}

.dropdown-icon-bg-blog {
    background: #e0f2fe;
    color: #0369a1;
}

.dropdown-icon-bg-upload {
    background: #dcfce7;
    color: #15803d;
}

.dropdown-icon-bg-logout {
    background: #fee2e2;
    color: #b91c1c;
}

/* --- Breadcrumbs Styles --- */
.breadcrumbs {
    padding: 10px 0;
    background: transparent;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    color: #1d4ed8;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4b5563;
}

/* --- Blog Write Form Styles --- */
.blog-write-card {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-write-title {
    margin-bottom: 20px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-text {
    color: #94a3b8;
    display: block;
    margin-top: 5px;
}

.blog-textarea {
    width: 100%;
    height: 300px;
    font-family: inherit;
}

.security-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-input {
    width: 150px;
}

.btn-block {
    width: 100%;
}

[data-theme="dark"] .blog-write-card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .security-box {
    background: #2a2a2a;
    border-color: #333;
}

[data-theme="dark"] .form-text {
    color: #cbd5e1;
}

/* --- Mobile Menu Styles Refactored --- */
.mobile-nav-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin: 15px 0 5px 15px;
    text-transform: uppercase;
}

.mobile-nav-item {
    display: block;
    padding: 10px 15px;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
}

.mobile-nav-item-bold {
    display: block;
    padding: 12px 15px;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-danger {
    color: #ef4444 !important;
}

.mobile-user-profile {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0 15px 10px 15px;
}

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

.mobile-user-name {
    font-weight: 700;
    color: #333;
}

.mobile-status-badge {
    font-size: 10px;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.notification-badge-mobile {
    background: #ef4444;
    color: white;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.message-badge-mobile {
    background: #10b981;
    color: white;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* --- Home Search Refactored --- */
.home-search-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.home-search-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search-input-wrapper {
    flex: 1;
    position: relative;
}

.home-search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s;
}

.home-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: #64748b;
}

.home-search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.home-display-tag {
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.res-text-highlight {
    margin-left: 5px;
    color: #f59e0b;
}

[data-theme="dark"] .mobile-nav-item,
[data-theme="dark"] .mobile-nav-item-bold {
    color: #e2e8f0;
}

[data-theme="dark"] .mobile-user-profile {
    background: #2a2a2a;
}

[data-theme="dark"] .mobile-user-name {
    color: #fff;
}

[data-theme="dark"] .home-search-input {
    background: #1e1e1e;
    border-color: #333;
    color: white;
}

/* --- MIGRATED FROM INDEX.PHP & OTHERS --- */
:root {
    --homepage-cat-cols: 4;
    --latest-img-cols: 4;
    --mobile-cat-cols: 2;
    --mobile-img-cols: 3;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--homepage-cat-cols), 1fr);
    gap: 20px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(var(--latest-img-cols), 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {

    .categories-grid,
    .images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(var(--mobile-cat-cols), 1fr);
        gap: 12px;
    }

    .images-grid,
    .posters-grid {
        grid-template-columns: repeat(var(--mobile-img-cols), 1fr);
        gap: 10px;
    }
}

/* Featured Collections - Pill Style */
.collections-scroller {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 30px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.collections-scroller::-webkit-scrollbar {
    height: 6px;
}

.collections-scroller::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.collection-pill-card {
    flex: 0 0 220px;
    height: 340px;
    border-radius: 110px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.collection-pill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.collection-pill-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.collection-pill-card:hover .collection-pill-bg {
    transform: scale(1.1);
}

.collection-pill-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}

.collection-pill-title {
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.collection-pill-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

/* Random Wallpaper Grid */
.random-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.random-grid-item {
    height: 140px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.random-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.random-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.random-grid-item:hover .random-grid-img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .collection-pill-card {
        flex: 0 0 160px;
        height: 260px;
        border-radius: 80px;
    }

    .collection-pill-title {
        font-size: 18px;
    }

    .random-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .random-grid-item {
        height: 100px;
    }
}

/* --- MIGRATED FROM CATEGORIES.PHP --- */
.modern-search-form {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin: 20px auto 0;
}

.modern-search-form:hover,
.modern-search-form:focus-within {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #2196F3;
}

.search-main-row {
    display: flex;
    width: 100%;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.modern-search-form input {
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 20px 15px 50px;
    font-size: 16px;
    border-radius: 50px;
    color: #1e293b;
    background: transparent;
}

.btn-search-submit {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-submit:hover {
    background: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.category-header-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.category-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.header-left {
    flex: 1;
}

.header-left h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-desc {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    max-width: 800px;
}

.header-search-form {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.header-search-form input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    outline: none;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.header-search-form input:focus {
    background: #fff;
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.header-search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-search-form button:hover {
    color: #2196F3;
}

@media (max-width: 768px) {
    .category-header-wrapper {
        padding: 20px;
        border-radius: 0;
        margin: -20px -15px 20px -15px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .category-header-row {
        flex-direction: column;
        gap: 15px;
    }

    .header-search-form {
        width: 100%;
    }

    .header-left h1 {
        font-size: 24px;
    }
}

.tags-cloud-container {
    width: 100%;
    margin: 40px 0 20px 0;
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 12px;
    text-align: center;
}

.tags-cloud-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.tags-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-chip:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.25);
}

/* --- MIGRATED FROM MEMBER.PHP (Utility classes) --- */
.card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    border: 1px solid #e2e8f0;
}

.form-group-mb {
    margin-bottom: 25px;
}

.form-label-bold {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.form-control-modern {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

.btn-primary-gradient {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* --- MIGRATED FROM MESSAGES.PHP --- */
.messages-container-centered {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.messages-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.messages-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.messages-header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.messages-header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-back-link:hover {
    color: #1e293b;
}

.messages-body {
    padding: 30px;
}

.messages-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #64748b;
}

.message-content-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.6;
    color: #334155;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.messages-actions-row {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.message-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.message-list-item:hover {
    background: #f8fafc;
}

.message-list-item:last-child {
    border-bottom: none;
}

.message-list-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.message-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.message-status-dot.unread {
    background: #3b82f6;
}

.message-list-info {
    display: flex;
    flex-direction: column;
}

.message-list-sender {
    font-weight: 700;
    color: #0f172a;
}

.message-list-subject {
    font-size: 0.95rem;
    color: #475569;
    margin: 4px 0;
}

.message-list-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.messages-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.messages-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* --- MIGRATED FROM MEMBER.PHP (Blog & Forms) --- */
.blog-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
    border: 1px solid #e2e8f0;
}

.blog-form-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.75rem;
    color: #1e293b;
}

.input-helper-text {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 5px;
}

.control-group-box {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-wrapper {
    text-align: center;
    padding: 50px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.success-desc {
    font-size: 18px;
    color: #64748b;
    margin-top: 20px;
}

/* --- MIGRATED FROM SEARCH.PHP, NEW_IMAGES.PHP --- */
.empty-state-wrapper {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.empty-state-text {
    color: #64748b;
    margin-bottom: 30px;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    grid-column: 1 / -1;
}

.btn-load-more {
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    background: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
}

.btn-load-more:hover {
    background: #1976D2;
}

.loader {
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-main-row {
    position: relative;
}

/* --- MIGRATED FROM WOTD.PHP --- */
.wotd-error-wrapper {
    max-width: 800px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
}

.wotd-error-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    color: #856404;
}



.wotd-description {
    color: #aaa;
    font-style: italic;
}

/* --- MIGRATED FROM HEADER.PHP --- */
.header-icon-btn {
    position: relative;
    font-size: 20px;
}

.header-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid white;
}

.nav-user-wrapper {
    position: relative;
    display: inline-flex;
}

.nav-user-name {
    margin-left: 8px;
}

.dropdown-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-badge-red {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.dropdown-badge-green {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.dropdown-item-title {
    font-weight: 700;
    font-size: 14px;
}

/* Share Codes Card (Moved from details.php) */
.share-codes-card {
    padding: 20px;
    margin-bottom: 25px;
}

.share-codes-card h3 {
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid var(--ms-border);
    padding-bottom: 10px;
}

.share-field {
    margin-bottom: 12px;
}

.share-field label {
    display: block;
    font-size: 11px;
    color: var(--ms-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid var(--ms-border);
    background: var(--ms-bg);
    color: var(--ms-text-main);
    font-family: monospace;
    cursor: pointer;
}

.share-input:hover {
    border-color: var(--ms-primary);
}