/* Twilight Style - CardWorldTGC */

:root {
    /* Dark Mode Colors - WCAG AA contrast (4.5:1+) */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b2d;
    --bg-surface: #1e293b;
    --card-bg: var(--bg-secondary);
    --text-primary: #e2e8f0;
    --text-secondary: #b8c5d8;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.2s ease;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* =========================
   HEADER - BASE
   ========================= */

.header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(20, 27, 45, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Dark theme header */

[data-theme="dark"] .header,
:not([data-theme]) .header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(20, 27, 45, 0.95) 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Light theme header */

[data-theme="light"] .header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 244, 255, 0.9) 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Layout blocks */

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left {
    flex: 0 0 auto;
    padding-left: 0.5rem;
    gap: 1.25rem;
}

.header-center {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.75rem;
}

.header-right {
    flex: 0 0 auto;
    gap: 0.75rem;
    padding-right: 1rem;
}

/* Header nav */

.header-container>nav {
    justify-self: end;
    display: flex;
    align-items: center;
}

/* Brand & logo */

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image {
    height: 88px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Pills (buttons) */

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid transparent;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text-primary);
}

.header-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    color: inherit;
}

/* Pills color variants (kısaltılmadı – senin değerlerin) */

.header-pill.badge-1 {
    background: linear-gradient(135deg, #fff3c4, #ffe59a);
    border-color: #f4c74b;
    color: #9a6a02;
}

/* Kartlar: açık kırmızı */
.header-pill.header-pill--cards {
    background: linear-gradient(135deg, #ffe4e4, #ffcfcf);
    border: 1px solid #f4a0a0;
    color: #b91c1c;
}

.header-pill.header-pill--cards:hover {
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.2);
}

/* Setler: açık yeşil */
.header-pill.header-pill--sets {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    color: #15803d;
}

.header-pill.header-pill--sets:hover {
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.2);
}

.header-pill.badge-2 {
    background: linear-gradient(135deg, #d6dcff, #c2ccff);
    border-color: #9db1ff;
    color: #3c55c7;
}

.header-pill.badge-3 {
    background: linear-gradient(135deg, #d9f6e9, #c2f0dc);
    border-color: #8fd8b1;
    color: #1b9f6d;
}

.header-pill.badge-4 {
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border-color: #94caff;
    color: #1f7ecb;
}

.header-pill.badge-5 {
    background: linear-gradient(135deg, #ffe3f3, #ffd3eb);
    border-color: #f1a6cf;
    color: #c01f6f;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.menu-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.menu-toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu */

/* Icon links in nav */

/* Theme toggle */

.theme-toggle {
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.theme-toggle--brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle.header-pill.badge-3 {
    background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
    border-color: #a78bfa;
    color: #6d28d9;
}

/* Header actions (desktop) */

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

/* Logout button */

/* Home button standalone */

.home-button-standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

/* Search */

.header-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 10000;
}

.header-search {
    flex: 1 1 420px;
    min-width: 280px;
    max-width: 620px;
    width: 100%;
    position: relative;
    z-index: 10000;
}

.header-search .search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
    position: relative;
}

.search-input-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.7rem 4.5rem 0.7rem 1rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.45);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main links (Kartlar + Haberler) */

/* Desktop'ta nav-menu içindeki mobil linkleri gizle */

/* Desktop'ta header-main-links görünür */

/* Cards button on header */

/* Category buttons (Pokemon and Spider-Man) */

/* Active category indicator */

/* Pokemon category specific styling */

/* Spider-Man category specific styling */

/* News button - hidden from navbar */

/* Language selector (sağ) */

/* Compact language button */

/* Language dropdown */

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.35rem;
    min-width: 180px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10001;
    backdrop-filter: blur(20px);
}

/* Mobilde dil dropdown'ının hero'nun üstünde görünmesi için */

@media (max-width: 768px) {
    .header {
        overflow: visible !important;
        top: 0;
    }

    .header-container {
        overflow: visible !important;
        overflow-x: hidden;
        overflow-y: visible !important;
    }

    .header-center {
        overflow: visible !important;
        position: relative;
    }

    .header-search-wrapper {
        overflow: visible !important;
        position: relative;
    }

    /* =========================
       MOBİL DİL SEÇİCİ DAVRANIŞI
       ========================= */
    /* 1) Header içindeki tüm dil seçicileri gizle */


    /* 2) Footer dil seçicisi mobilde görünsün */


    /* 3) Genel dropdown davranışı (header + footer ortak) */

    .lang-dropdown {
        z-index: 10002 !important;
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        /* Varsayılan: kapalı */
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(-10px) !important;
    }

    .lang-dropdown.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User account dropdown */
.header-user-menu-wrapper {
    position: relative;
}

.header-user-menu-trigger {
    cursor: pointer;
}

.header-user-menu-chevron {
    transition: transform 0.2s ease;
}

.header-user-menu-chevron.open {
    transform: rotate(180deg);
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.header-user-dropdown-item:hover {
    background: var(--bg-surface);
}

/* Dropdown: Kartlarım — açık kırmızı */
.header-user-dropdown-item--my-cards {
    color: #b91c1c;
}
.header-user-dropdown-item--my-cards:hover {
    background: rgba(254, 226, 226, 0.6);
}

/* Dropdown: Çıkış — normal kırmızı buton */
button.header-user-dropdown-item--logout,
.header-user-dropdown-item.header-user-dropdown-item--logout {
    color: #fff !important;
    background: #dc2626 !important;
    border: 1px solid #b91c1c !important;
    font-weight: 600;
}
button.header-user-dropdown-item--logout:hover,
.header-user-dropdown-item.header-user-dropdown-item--logout:hover {
    background: #b91c1c !important;
    border-color: #991b1b !important;
}

.header-user-dropdown-divider {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--border-color);
}

/* Menu toggle (hamburger) */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.1);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.menu-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* =========================
   HEADER - DESKTOP TUNING
   ========================= */

@media (max-width: 1280px) {
    .header-container {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        padding: 0.25rem 1.25rem;
    }

    .header-center {
        order: 3;
        width: 100%;
    }

    .header-search {
        max-width: 100%;
    }

    .header-right {
        order: 2;
        margin-left: auto;
    }

    .logo-image {
        height: 82px;
    }

    .header-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.88rem;
    }

    .pill-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 1024px) {
    .header-search {
        flex-basis: 480px;
        min-width: 340px;
        max-width: 640px;
    }
}

/* =========================
   HEADER - MOBILE (<768px)
   ========================= */

@media (max-width: 768px) {
    :root {
        --app-header-height: 160px;
        /* JS ile override edilebilir */
    }

    body {
        padding-top: var(--app-header-height);
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding-top: env(safe-area-inset-top);
        transform: translateZ(0);
        will-change: transform;
        background: linear-gradient(180deg,
                rgba(10, 14, 39, 0.98) 0%,
                rgba(20, 27, 45, 0.95) 50%,
                rgba(30, 41, 59, 0.92) 100%);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.4);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
    }

    [data-theme="dark"] .header,
    :not([data-theme]) .header {
        background: linear-gradient(180deg,
                rgba(10, 14, 39, 0.98) 0%,
                rgba(20, 27, 45, 0.96) 50%,
                rgba(30, 41, 59, 0.94) 100%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.5);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    }

    [data-theme="light"] .header {
        background: linear-gradient(180deg,
                rgba(99, 102, 241, 0.12) 0%,
                rgba(139, 92, 246, 0.15) 50%,
                rgba(99, 102, 241, 0.1) 100%);
        border-bottom: 2px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.15rem 0.75rem;
        /* Padding azaltıldı */
        padding: 0.75rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        position: relative;
    }

    .header-left {
        width: 100%;
        order: 1;
        justify-content: space-between;
        align-items: center;
    }

    .header-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        gap: 0.75rem;
        flex-wrap: nowrap;
        flex: 1 1 auto;
    }

    .logo {
        flex-shrink: 0;
        min-width: 0;
        margin: 0;
    }

    .logo-image {
        height: 130px;
        /* 20px büyütüldü (110px → 130px) */
        max-width: 100%;
        object-fit: contain;
    }

    .header-left-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    /* Theme toggle ve dil seçici görünür */

    .theme-toggle--brand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.35rem;
        min-width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .header-actions {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0.5rem;
        margin: 0;
    }

    .header-center {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .header-right {
        order: 4;
        width: 100%;
        justify-content: center;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 0.75rem;
        position: relative;
        display: none !important;
    }

    .header-right.menu-open {
        display: flex !important;
    }

    .header-search {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .search-input {
        padding: 0.75rem 5rem 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        height: 44px;
    }

    /* === FIX: Mobile search button SVG icon visibility === */

    .search-button {
        /* Mobilde butonu küçült ve sadece ikon göster */
        width: 32px;
        /* Butonun genişliğini küçült */
        height: 32px;
        /* Butonun yüksekliğini küçült */
        padding: 0;
        /* İç dolguyu sıfırla, ikon ortalansın */
        border-radius: 8px;
        /* Daha yuvarlak bir görünüm */
        right: 0.75rem;
        /* Sağdan boşluk */
        font-size: 0;
        /* Metin gizle, sadece ikon göster */
        line-height: 0;
        /* Satır yüksekliğini sıfırla */
    }

    .search-button svg {
        /* SVG ikonunun mobilde de görünür ve uygun boyutta olmasını sağla */
        width: 18px;
        height: 18px;
        stroke-width: 2;
    }

    /* Image search butonu için de benzer düzenleme */

    .image-search-button {
        width: 32px;
        /* Butonun genişliğini küçült */
        height: 32px;
        /* Butonun yüksekliğini küçült */
        padding: 0;
        /* İç dolguyu sıfırla */
        border-radius: 8px;
        /* Daha yuvarlak bir görünüm */
        right: calc(0.75rem + 32px + 0.5rem + 5px);
        /* Search butonunun sağından 0.5rem + 5px boşluk bırak (5px sola) */
        display: block !important;
    }

    .image-search-button svg {
        width: 22px;
        height: 22px;
    }

    /* Arama input'unun sağ padding'ini ayarla, ikonlar için yer açılsın */

    .search-input {
        padding-right: calc(32px + 32px + 1.5rem);
        /* İki butonun genişliği + aralarındaki boşluk + sağ boşluk */
    }

    /* Mobilde header-main-links'i gizle */


    /* Nav menü içindeki mobil linkler */


    /* Mobilde giriş ve kayıt butonlarını yan yana göster */


    /* :has() desteklenmeyen tarayıcılar için fallback */


    /* Nav menüyü açılır menüye çevir */


    /* Language selector sağda, kompakt */
}

/* =========================
   HEADER - EXTRA SMALL (<480px)
   ========================= */

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .logo-image {
        height: 75px;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0.3rem;
    }

    .search-input {
        padding: 0.65rem 2.5rem 0.65rem 0.85rem;
        font-size: 0.9rem;
        min-height: 40px;
    }

    .home-button-standalone {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* Language Selector */

/* Dark theme - açık sarı renk */

[data-theme="dark"] .lang-button--compact,
:not([data-theme]) .lang-button--compact {
    background: rgba(255, 235, 59, 0.2);
    border-color: rgba(255, 235, 59, 0.4);
    color: #ffeb3b;
}

[data-theme="dark"] .lang-button--compact:hover,
:not([data-theme]) .lang-button--compact:hover {
    background: rgba(255, 235, 59, 0.3);
    border-color: rgba(255, 235, 59, 0.6);
    color: #fff176;
    box-shadow: 0 4px 12px rgba(255, 235, 59, 0.3);
}

/* Prominent language button - belirgin dil seçeneği */

[data-theme="light"] .lang-button--prominent {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lang-button--prominent:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Icon-only language selector */

/* Message button in header */
/* Header Actions Container */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-message-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border: 2px solid #94caff;
    color: #1f7ecb;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    font-weight: 700;
}

.header-message-button:hover {
    background: linear-gradient(135deg, #c6e4ff, #b3dcff);
    border-color: #7ab8ff;
    color: #1a6fb8;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.header-message-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-message-button svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Light theme adjustments */

[data-theme="light"] .header-message-button {
    background: linear-gradient(135deg, #e8f4ff, #d4ebff);
    border-color: #a8d4ff;
    color: #1a6fb8;
}

[data-theme="light"] .header-message-button:hover {
    background: linear-gradient(135deg, #d4ebff, #c0e2ff);
    border-color: #8cc8ff;
    color: #155a9e;
}

.lang-button--icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 235, 59, 0.2);
    border: 2px solid rgba(255, 235, 59, 0.4);
    color: #ffeb3b;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.2);
}

.lang-button--icon-only:hover {
    background: rgba(255, 235, 59, 0.3);
    border-color: rgba(255, 235, 59, 0.6);
    color: #fff176;
    box-shadow: 0 4px 16px rgba(255, 235, 59, 0.4);
    transform: translateY(-2px);
}

.lang-button--icon-only .lang-icon {
    width: 20px;
    height: 20px;
    color: inherit;
    pointer-events: none;
}

[data-theme="light"] .lang-button--icon-only {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .lang-button--icon-only:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #4f46e5;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .lang-button,
[data-theme="light"] .lang-button--compact {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: #6366f1;
}

[data-theme="light"] .lang-button:hover,
[data-theme="light"] .lang-button--compact:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #4f46e5;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 0.875rem;
    cursor: pointer;
    background: transparent;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
}

.lang-option.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
    font-weight: 600;
}

.theme-toggle .pill-icon {
    width: 32px;
    height: 32px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .pill-icon svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

[data-theme="light"] .search-input {
    background: rgba(226, 231, 255, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 6px 24px rgba(99, 102, 241, 0.28);
    background: rgba(30, 41, 59, 0.82);
}

[data-theme="light"] .search-input:focus {
    background: rgba(232, 236, 255, 0.95);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.image-search-button {
    position: absolute;
    right: calc(0.75rem + 36px + 5px);
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.search-loading {
    position: absolute;
    right: 2.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
    z-index: 11;
    display: none;
}

.search-loading.active {
    display: block;
}

@keyframes search-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.image-search-button:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.image-search-button:active {
    transform: translateY(-50%) scale(0.95);
}

.image-search-button svg {
    width: 22px;
    height: 22px;
}

/* Search Autocomplete */

[data-theme="dark"] .search-autocomplete {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .search-autocomplete {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hero Slider */

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 2.5rem auto 3.5rem;
    padding: 0;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #0a0e27;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.8s;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    z-index: 1;
    pointer-events: none;
    will-change: opacity, visibility;
}

.slide:not(.slide-with-image) {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.95) 0%,
            rgba(139, 92, 246, 0.95) 50%,
            rgba(99, 102, 241, 0.95) 100%);
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    pointer-events: auto;
}

.slide-with-image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll;
}

/* LCP: img element for first slide (allows fetchpriority=high) */

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.slide:not(.slide-with-image) .slide-content {
    z-index: 10;
}

.slide h2,
.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.slide.active h2,
.slide.active .slide-content h2 {
    animation: fadeInUp 0.8s ease;
}

.slide p,
.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.slide.active p,
.slide.active .slide-content p {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.slide-button {
    background: white;
    color: var(--accent-primary);
    padding: 1rem 2.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    margin: 0 auto;
    display: inline-block;
}

.slide.active .slide-button {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.slide-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #f0f0f0, white);
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Slider Navigation Arrows (Desktop) */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.hero-slider:hover .slider-nav {
    opacity: 1;
    pointer-events: auto;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Features Section */

.features-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 3rem 2rem;
}

.features-container {
    text-align: center;
}

.features-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.feature-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 320px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 14px;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

[data-theme="light"] .feature-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
}

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

@media (max-width: 768px) {
    .features-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .features-title {
        font-size: 1.5rem;
    }

    .features-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Content */

/* Breadcrumbs */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .card {
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(99, 102, 241, 0.1);
}

/* Animations */

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

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

/* Footer */

.footer {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6rem;
    padding: 4rem 0 2rem;
}

[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

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

@media (min-width: 1024px) {
    .header-search {
        flex-basis: 480px;
        min-width: 340px;
        max-width: 640px;
    }

    .footer-content {
        grid-template-columns: 20% 30% 1fr;
    }
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .footer-title-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section-types .footer-type-badges,
.footer-section-categories .footer-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0.25rem 0 0;
}

.footer-type-pill,
.footer-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.05rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-type-pill:hover,
.footer-category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.footer-type-pill.badge-1 {
    background: linear-gradient(135deg, #fff3c4, #ffe59a);
    border-color: #f4c74b;
    color: #9a6a02;
}

.footer-type-pill.badge-2 {
    background: linear-gradient(135deg, #e8ebff, #d7deff);
    border-color: #b9c6ff;
    color: #4a5cd1;
}

.footer-type-pill.badge-3 {
    background: linear-gradient(135deg, #d9f6e9, #c2f0dc);
    border-color: #8fd8b1;
    color: #1b9f6d;
}

.footer-type-pill.badge-4 {
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border-color: #94caff;
    color: #1f7ecb;
}

.footer-type-pill.badge-5 {
    background: linear-gradient(135deg, #ffe3f3, #ffd3eb);
    border-color: #f1a6cf;
    color: #c01f6f;
}

.footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-legal-inline a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-inline a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    margin-top: 1.25rem;
}

/* Footer Message Button Inline (between legal links) */

.footer-message-button-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #d9ecff, #c6e4ff);
    border: 2px solid #94caff;
    color: #1f7ecb;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footer-message-button-inline:hover {
    background: linear-gradient(135deg, #c6e4ff, #b3dcff);
    border-color: #7ab8ff;
    color: #1a6fb8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.footer-message-button-inline svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Light theme adjustments */

[data-theme="light"] .footer-message-button-inline {
    background: linear-gradient(135deg, #e8f4ff, #d4ebff);
    border-color: #a8d4ff;
    color: #1a6fb8;
}

[data-theme="light"] .footer-message-button-inline:hover {
    background: linear-gradient(135deg, #d4ebff, #c0e2ff);
    border-color: #8cc8ff;
    color: #155a9e;
}

/* Footer dil seçici - Mobilde görünür */
/* Footer Actions Container */

/* Footer Message Button */

[data-theme="light"] .lang-button--footer {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lang-button--footer:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    /* 4) Footer dropdown için de aynı mantık (zaten büyük oranda böyleydi) */
}

[data-theme="light"] .lang-dropdown--footer .lang-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lang-dropdown--footer .lang-option.active {
    background: rgba(99, 102, 241, 0.1);
}

/* Auth Pages */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-card {
    background: rgba(20, 27, 45, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}

[data-theme="dark"] .auth-card {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Auth form specific styles - isolated to prevent conflicts */

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Mobilde form-row alt alta */

.auth-form .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-form .form-input {
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

[data-theme="light"] .auth-form .form-input {
    background: rgba(241, 245, 249, 0.8);
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.7);
}

[data-theme="light"] .auth-form .form-input:focus {
    background: rgba(255, 255, 255, 0.95);
}

.auth-form .form-input::placeholder {
    color: var(--text-muted);
}

/* Form Error Styles */

[data-theme="light"] .auth-form .form-input-error {
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Password Input Wrapper */

[data-theme="light"] .password-toggle {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Desktop tightening for crowded widths */

@media (max-width: 1280px) {
    .header-container {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        padding: 0.25rem 1.25rem;
    }

    .header-center {
        order: 3;
        width: 100%;
    }

    .header-search-wrapper {
        width: 100%;
    }

    .header-search {
        max-width: 100%;
    }

    .header-right {
        order: 2;
        margin-left: auto;
    }

    .logo-image {
        height: 82px;
    }

    .header-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.88rem;
    }

    .pill-icon {
        width: 22px;
        height: 22px;
    }
}

/* Responsive */

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .header-center {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
    }

    .header-right {
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .header-container>nav {
        grid-column: 1 / -1;
        order: 4;
        justify-self: stretch;
    }

    .header-actions {
        order: 3;
    }

    /* Slider adjustments for tablets */

    .hero-slider {
        height: 350px;
        margin: 2rem auto 3rem;
    }

    .slide {
        padding: 2.5rem 1.5rem;
    }

    .slide h2,
    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide p,
    .slide-content p {
        font-size: 1.1rem;
    }
}

/* =========================
   LAYOUT / CONTENT - MOBILE (<768px)
   ========================= */

@media (max-width: 768px) {
    /* Make search autocomplete results smaller on mobile */


    /* RTL fixes for autocomplete on mobile */

    .footer-logo {
        height: 50px;
    }

    /* Prevent horizontal overflow on mobile */

    .hero-slider {
        padding: 0;
        margin: 1.5rem 0 2rem;
        height: 350px;
        border-radius: 16px;
    }

    .slide {
        padding: 2rem 1.25rem;
    }

    .slide-content {
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .slide h2,
    .slide-content h2 {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.85rem;
    }

    .slide p,
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .slide-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.4rem;
    }

    .dot {
        width: 10px;
        height: 10px;
        padding: 10px;
        background-clip: content-box;
    }

    .dot.active {
        width: 24px;
        padding: 10px;
        background-clip: content-box;
    }

    /* Hide navigation arrows on mobile */

    .slider-nav {
        display: none;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .auth-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.85rem 4.5rem 0.85rem 1rem;
        font-size: 1.1rem;
        min-height: 48px;
    }

    /* Extra small (<= 480px) için de aynı düzenlemeleri uygula */

    .search-button {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        right: 0.5rem;
        font-size: 0;
        line-height: 0;
    }

    .search-button svg {
        width: 16px;
        height: 16px;
        stroke-width: 2;
    }

    .image-search-button {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        right: calc(0.5rem + 36px + 0.4rem + 5px);
    }

    .image-search-button svg {
        width: 20px;
        height: 20px;
    }

    .search-input {
        padding-right: calc(30px + 30px + 1rem);
        /* İki butonun genişliği + aralarındaki boşluk + sağ boşluk */
    }

    .search-button {
        font-size: 0;
        /* Metin gizle, sadece ikon göster */
        line-height: 0;
        /* Satır yüksekliğini sıfırla */
    }

    .filters-section {
        padding: 1.25rem;
        margin: 0 -0.75rem 1.5rem;
        width: calc(100% + 1.5rem);
        border-radius: 20px;
    }

    .filter-label {
        font-size: 0.95rem;
    }

    .filter-select {
        font-size: 1.15rem;
        padding: 0.9rem 1.2rem;
        min-height: 48px;
    }

    .logo-image {
        height: 65px;
    }

    .hero-slider {
        height: 280px;
        border-radius: 12px;
        margin: 1rem 0 1.5rem;
    }

    .slide {
        padding: 1.5rem 1rem;
    }

    .slide-overlay {
        background: transparent;
    }

    .slide h2,
    .slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.65rem;
    }

    .slide p,
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .slide-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.8rem;
    }

    .cards-carousel {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }
}

/* Large screens optimization */

@media (min-width: 1441px) {
    .hero-slider {
        max-width: 1600px;
        height: 420px;
    }

    .slide h2,
    .slide-content h2 {
        font-size: 3.5rem;
    }

    .slide p,
    .slide-content p {
        font-size: 1.35rem;
    }

    .slide-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Category Sections */

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(180deg, rgba(244, 246, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .category-header {
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Category header specific section title */

.category-header .section-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    line-height: 1.3;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

[data-theme="dark"] .category-header .section-title {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all-text {
    display: inline;
}

.view-all-arrow {
    display: inline;
}

.view-all-link:hover {
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateX(5px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

/* Cards Carousel */

.cards-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
    align-items: stretch;
}

.cards-carousel .tcg-card {
    min-height: auto;
}

.tcg-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tcg-card-wrapper .tcg-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tcg-card-wrapper .tcg-card-link .tcg-card {
    width: 100%;
    flex: 1;
}

/* Set logo inside card - centered under set name */

.tcg-card-set-logo-inline {
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
}

.tcg-card-set-logo-inline .tcg-card-set-logo-img {
    width: auto;
    height: 28px;
    max-width: 100px;
    max-height: 28px;
    object-fit: contain;
}

/* Sets Grid Styles */

.sets-year-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin: 1.5rem auto 1rem auto;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    display: block;
    width: fit-content;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Different colors for different years - using nth-of-type for variety */

.sets-year-group:nth-of-type(1) .sets-year-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.sets-year-group:nth-of-type(2) .sets-year-title {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.sets-year-group:nth-of-type(3) .sets-year-title {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.sets-year-group:nth-of-type(4) .sets-year-title {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.sets-year-group:nth-of-type(5) .sets-year-title {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.sets-year-group:nth-of-type(6) .sets-year-title {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.sets-year-group:nth-of-type(7) .sets-year-title {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.sets-year-group:nth-of-type(8) .sets-year-title {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.sets-year-group:nth-of-type(9) .sets-year-title {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.sets-year-group:nth-of-type(10) .sets-year-title {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* For more than 10 years, cycle through colors */

.sets-year-group:nth-of-type(11) .sets-year-title {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.sets-year-group:nth-of-type(12) .sets-year-title {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.sets-year-group {
    margin-bottom: 3rem;
    text-align: center;
}

.recent-sets-section .category-header {
    text-align: center;
}

.recent-sets-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    padding: 1rem 1.5rem;
}

.recent-set-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.recent-set-logo-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.recent-set-logo {
    width: auto;
    height: 52px;
    max-width: 180px;
    object-fit: contain;
}

.recent-set-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sets page */
.sets-page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sets-page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.sets-page-item {
    flex-direction: column;
    gap: 0.4rem;
    min-width: 140px;
}

.recent-set-card-count {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
}

.sets-page-item:hover .recent-set-card-count {
    opacity: 1;
}

@media (max-width: 768px) {
    .recent-sets-grid {
        gap: 1.5rem 2rem;
        padding: 0.75rem 0.5rem;
    }

    .recent-set-logo {
        height: 40px;
        max-width: 140px;
    }

    .sets-page-item {
        min-width: 100px;
    }
}

/* Set item animation delays */

[data-theme="dark"] .set-item {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .set-item:hover {
    border: 2px solid rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3);
}

/* Sets Grid Responsive */

@media (max-width: 900px) {
    .sets-year-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
}

/* TCG Card Styles */
.tcg-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    animation: cardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card entrance animation */

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

/* Stagger animation for multiple cards */

/* Dark mode card borders */

[data-theme="dark"] .tcg-card {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.1);
}

.tcg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

/* Mobile touch animations */

@media (max-width: 768px) {
    .tcg-card {
        animation: cardFadeInMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes cardFadeInMobile {
        from {
            opacity: 0;
            transform: translateY(15px) scale(0.97);
        }

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

    /* Touch feedback animation */

    .tcg-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Card image animation on load */

    .tcg-card-image img {
        animation: imageFadeIn 0.6s ease forwards;
        opacity: 0;
    }

    @keyframes imageFadeIn {
        from {
            opacity: 0;
            transform: scale(1.1);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Card actions animation */

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

    /* Card info animation */

    .tcg-card-info {
        animation: infoFadeIn 0.5s ease 0.2s forwards;
        opacity: 0;
    }

    @keyframes infoFadeIn {
        to {
            opacity: 1;
        }
    }
}

[data-theme="dark"] .tcg-card:hover {
    border: 2px solid rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3);
}

.tcg-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 245 / 342;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
}

[data-theme="dark"] .tcg-card-set-logo-top {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tcg-card-image {
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.tcg-card-image img,
.tcg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tcg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

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

.tcg-card-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tcg-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.tcg-card-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-theme="dark"] .tcg-card-info {
    background: rgba(10, 14, 39, 0.5);
}

.tcg-card-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tcg-card-name-row .tcg-card-name {
    margin-bottom: 0;
}

.tcg-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-width: 0;
    max-height: 2.6em;
}

.tcg-card-name a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.tcg-card-name a:hover {
    text-decoration: none !important;
    color: var(--accent-primary);
}

.tcg-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tcg-card-rarity {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tcg-card-set-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    width: 100%;
}

[data-theme="dark"] .tcg-card-set-info {
    background: rgba(10, 14, 39, 0.6);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .tcg-card-set-link:hover {
    background: rgba(20, 27, 45, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .tcg-card-set-logo {
    background: rgba(20, 27, 45, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.tcg-card-set-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    text-align: center;
}

.tcg-card-set-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tcg-card-set-name {
    color: var(--text-primary);
    font-weight: 600;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em;
}

[data-theme="light"] .tcg-card-price {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .tcg-card-price .price-value {
    color: var(--accent-primary);
}

[data-theme="light"] .tcg-card-price .price-source {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.tcg-card-hp {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* CTA Section */

@keyframes shimmerCTA {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30%, 30%) rotate(180deg);
    }
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg,
            rgba(30, 20, 50, 0.95) 0%,
            rgba(25, 30, 60, 0.95) 25%,
            rgba(40, 25, 55, 0.95) 50%,
            rgba(35, 30, 65, 0.95) 75%,
            rgba(30, 35, 60, 0.95) 100%);
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .cta-section::before {
    background: radial-gradient(circle,
            rgba(139, 92, 246, 0.2) 0%,
            rgba(99, 102, 241, 0.1) 30%,
            transparent 70%);
}

/* Responsive */

@media (max-width: 1400px) {
    .cards-carousel {
        grid-template-columns: repeat(4, 1fr);
    }

    .cards-carousel .tcg-card {
        min-height: auto;
    }
}

@media (max-width: 1200px) {
    .cards-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .cards-carousel .tcg-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem;
        flex-wrap: nowrap;
        width: 100%;
    }

    .view-all-text {
        display: none !important;
    }

    .view-all-arrow {
        display: inline !important;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .view-all-link {
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
        gap: 0;
    }

    .section-title {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        padding: 0.4rem 0.75rem;
    }

    .view-all-link {
        flex-shrink: 0;
    }

    .cards-carousel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.25rem;
    }

    .cards-carousel .tcg-card {
        min-height: auto;
    }

    .tcg-card {
        max-width: 100%;
        margin: 0 auto;
        width: 99%;
    }

    .tcg-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Cards Page Styles */

.cards-page {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Cards Header Box - Colorful Box */

.cards-header-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 30px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cards-header-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmerHeader 3s ease-in-out infinite;
}

@keyframes shimmerHeader {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.cards-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cards-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.cards-header-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

/* Filters Section */

.filters-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

[data-theme="dark"] .filters-section {
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
}

.filters-form {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 0;
    min-width: 150px;
}

.filter-group:last-child {
    flex: 0 0 auto;
}

.filter-group.is-active .filter-label {
    color: var(--accent-primary);
}

.filter-group.is-active .filter-select {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.55rem 0.75rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Desktop: Price filters side by side */

/* Responsive filters */

@media (max-width: 768px) {
    .filters-section {
        padding: 1.5rem;
        margin: 0 -0.5rem 1.5rem;
        border-radius: 20px;
        width: calc(100% + 1rem);
        max-width: none;
    }

    .filters-form {
        flex-direction: column;
        gap: 1.25rem;
    }

    .filter-options {
        flex-direction: column;
        gap: 1.25rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .filter-select {
        padding: 0.85rem 1rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
}

/* Cards Grid */

.tcg-card-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    text-decoration: none;
    min-width: 50px;
}

.tcg-card-year:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.tcg-card-year:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.tcg-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* No Results */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

/* Pagination */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
}

.pagination-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.5rem;
}

[data-theme="dark"] .pagination-box {
    background: rgba(15, 20, 45, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(12px);
}

.pagination-btn.pagination-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.pagination-btn.pagination-icon:hover:not(.disabled) {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.pagination-btn.pagination-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.25rem;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.pagination-num:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.pagination-num.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
}

.pagination-summary {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .pagination-container {
        padding: 1.5rem 0.5rem;
    }

    .pagination-box {
        gap: 0.2rem;
        padding: 0.35rem;
        border-radius: 12px;
    }

    .pagination-btn.pagination-icon {
        width: 36px;
        height: 36px;
    }

    .pagination-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pagination-dots {
        min-width: 24px;
    }
}

/* Card Detail Page */

.card-detail-page {
    width: 100%;
    padding: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: var(--accent-primary);
    transform: translateX(-4px);
}

[data-theme="dark"] .card-detail-image {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 0 22px rgba(99, 102, 241, 0.12);
}

/* Animated glow effect */

[data-theme="light"] .card-detail-image::before {
    background: radial-gradient(circle 400px at var(--glow-x) var(--glow-y),
            rgba(167, 139, 250, calc(var(--glow-opacity) * 0.3)),
            rgba(196, 181, 253, calc(var(--glow-opacity) * 0.15)),
            transparent 70%);
}

/* Shine/reflection effect */

@keyframes shine {

    0%,
    100% {
        opacity: calc(var(--glow-opacity) * 0.1);
    }

    50% {
        opacity: calc(var(--glow-opacity) * 0.3);
    }
}

[data-theme="dark"] .card-detail-set-logo-top {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-detail-image.tilting {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.2),
        0 0 100px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Enhanced entrance animation */

@keyframes cardDetailEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.compact-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1.1rem;
    margin-bottom: 0;
    flex-shrink: 0;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-back:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.5);
    color: #8b5cf6;
    transform: translateY(-2px);
}

[data-theme="dark"] .card-name-box {
    background: #78350f;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.3);
}

/* Tooltip Styles */

[data-theme="dark"] .card-detail-meta {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .meta-item-set {
    background: rgba(10, 14, 39, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .meta-set-logo {
    background: rgba(20, 27, 45, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Card stats specific - isolated to prevent conflicts with statistics-grid */

[data-theme="dark"] .card-section {
    border-color: rgba(99, 102, 241, 0.2);
}

/* Statistics Section */

/* Statistics grid specific - isolated to prevent conflicts with card-stats */

/* Card detail page specific section title */

.card-detail-page .section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

/* Cards page uses same card styles as homepage (no overrides) */

/* Details/summary compact sections on card detail */

/* Related cards on detail page */

/* Price box on card detail */

[data-theme="light"] .secondary-button {
    color: #4f46e5;
    border-color: #4f46e5;
}

[data-theme="light"] .cookie-bar-link {
    color: #4f46e5;
}

/* Responsive */

@media (max-width: 768px) {

    .cards-page,
    .card-detail-page {
        padding: 1.5rem;
    }

    .cards-header-box {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .cards-header-title {
        font-size: 2rem;
    }

    .cards-header-subtitle {
        font-size: 1rem;
    }
}

/* News Page Styles */

.news-page {
    width: 100%;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-header-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 30px;
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.news-header-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmerNews 3s ease-in-out infinite;
}

@keyframes shimmerNews {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.news-header-content {
    position: relative;
    z-index: 1;
}

.news-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.news-header-count {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.news-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card-video-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 1rem;
}

.news-card-date {
    flex: 1;
}

.news-card-source {
    color: var(--accent-primary);
    font-weight: 600;
}

/* News Detail Page */

.news-detail-page {
    width: 100%;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-container {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
}

.news-article {
    width: 100%;
}

.news-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.news-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}



.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.news-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.news-article-meta a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-article-meta a:hover {
    color: var(--accent-secondary);
}

.news-article-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-image a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.news-article-image a:hover {
    opacity: 0.9;
}

/* Video thumbnails in article content */

.news-article-content {
    line-height: 1.8;
}

.news-article-body {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.news-article-body p {
    margin-bottom: 1.5rem;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .news-page {
        padding: 1.5rem;
    }

    .news-header-box {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .news-header-title {
        font-size: 2rem;
    }

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

    .news-detail-page {
        padding: 1.5rem;
    }

    .news-detail-container {
        padding: 1.5rem;
    }

    .news-article-title {
        font-size: 1.75rem;
    }

    .news-article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-options {
        flex-direction: column;
        gap: 0.9rem;
    }

    .compact-back {
        order: 1;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.3rem 0.5rem;
        /* Padding azaltıldı */
        gap: 0.5rem;
    }

    .logo-image {
        height: 95px;
        /* 20px büyütüldü (75px → 95px) */
    }

    .header-brand {
        gap: 0.3rem;
    }

    .theme-toggle--brand {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0.3rem;
        left: 0 !important;
        margin-left: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .theme-toggle--brand .pill-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0.3rem;
        right: 5px !important;
    }

    .menu-toggle-bar {
        height: 3.5px;
    }

    .home-button-standalone {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .search-input {
        padding: 0.65rem 2.5rem 0.65rem 0.85rem;
        font-size: 0.9rem;
        min-height: 40px;
    }

    /* Extra small (<= 480px) için de aynı düzenlemeleri uygula */

    .search-button {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        right: 0.5rem;
        font-size: 0;
        /* Metin gizle, sadece ikon göster */
        line-height: 0;
        /* Satır yüksekliğini sıfırla */
    }

    .search-button svg {
        width: 18px;
        height: 18px;
        stroke-width: 2.5;
    }

    .image-search-button {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        padding: 0;
        right: calc(0.5rem + 30px + 0.4rem + 5px);
        /* 5px sola */
        display: block !important;
    }

    .image-search-button svg {
        width: 20px;
        height: 20px;
    }

    .search-input {
        padding-right: calc(30px + 30px + 1rem);
        /* İki butonun genişliği + aralarındaki boşluk + sağ boşluk */
    }
}

/* Profile Page */

/* Cookie Bar */

[data-theme="dark"] .cookie-bar {
    background: rgba(30, 41, 59, 0.95);
    border-top-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .cookie-bar {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Cookie Modal */

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10002;
}

[data-theme="dark"] .cookie-modal-content {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cookie-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.cookie-category-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    justify-content: flex-end;
}

.cookie-modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-modal-save {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}

.cookie-modal-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cookie-modal-cancel {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.cookie-modal-cancel:hover {
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Cookie settings floating button (visible after consent decision) */

[data-theme="light"] .cookie-settings-fab {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    /* Hide cookie settings controls on mobile */

    .cookie-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-button {
        width: 100%;
    }
}

/* Cookie Banner */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    animation: cookieBannerSlideUp 0.4s ease-out;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner-message {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner-accept {
    background: linear-gradient(135deg, var(--accent-primary, #6c63ff), var(--accent-secondary, #a855f7));
    color: #fff;
}

.cookie-banner-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-banner-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cookie-banner-customize {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-customize:hover {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-banner-message {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .cookie-banner-decline {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cookie-banner-decline:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .cookie-banner-customize {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .cookie-banner-customize:hover {
    color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-message {
        text-align: center;
        font-size: 0.85rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-banner-btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1rem;
    }
}

/* Legal Pages */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Admin pages need more width for tables */

.page-container.admin-page {
    max-width: 1600px;
}

/* User edit page should be narrower */

/* Collections page needs more width for cards grid */

.page-content {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .page-content h1 {
        font-size: 1.5rem;
    }

    /* Admin pages responsive */

    .page-container.admin-page {
        max-width: 100%;
        padding: 1rem;
    }

    .admin-table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .admin-table {
        min-width: 1000px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* RTL Support for Arabic */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body,
[dir="rtl"] html {
    overflow-x: hidden;
}

[dir="rtl"] .header-container {
    direction: rtl;
}

[dir="rtl"] .header-left {
    padding-left: 0;
    padding-right: 0.75rem;
}

[dir="rtl"] .header-right {
    padding-right: 0;
    padding-left: 1.5rem;
}

[dir="rtl"] .header-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-box {
    direction: rtl;
}

/* Collections Page */

@keyframes shimmerCollections {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

[data-theme="dark"] .collections-page .page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 4px 16px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
}

/* Collection Selection Modal */

/* Create Collection Inline */

@keyframes slideDownForm {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Collections Statistics */

/* Collections-specific stat cards - more specific selectors to avoid conflicts */

/* Modal */

/* Cropper.js styles */

#avatarCropImage {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Admin Dashboard */

/* Admin-specific stat cards - more specific selectors to avoid conflicts */

/* Color Variations */

/* Admin Table */

.admin-table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    margin-top: 2rem;
    width: 100%;
}

.admin-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tbody tr {
    transition: background-color 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Admin Sliders */

/* Admin form styles - more specific selectors to avoid conflicts with auth forms */

/* Collections Page - Favorites & Likes */

/* Collection Card List Layout */

/* Collection Card Item Details - Accordion (List Layout) */

[dir="rtl"] .footer {
    direction: rtl;
    text-align: right;
}

/* Site Pages Styles */

.page-header {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .page-header {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.1);
}

.page-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* Messages Page Width - Container */

.page-container:has([class*="message"]),
.page-container:has([id*="message"]) {
    max-width: 1600px !important;
}

/* Admin messages page container */

.page-container:has(.page-content[style*="max-width: 1600px"]) {
    max-width: 1600px !important;
}

/* Admin Messages Page Width */

.page-content[style*="max-width: 1600px"],
.page-content[style*="max-width: 1800px"] {
    max-width: 1600px !important;
    width: 100% !important;
}

.page-content[style*="max-width: 1600px"] .admin-table,
.page-content[style*="max-width: 1800px"] .admin-table {
    width: 100% !important;
    table-layout: auto;
}

/* Colored Dropdowns for Messages */

/* Category Select Colors */

/* Status Select Colors */

/* Dynamic color based on selected value */

/* Filter Boxes */

/* Select2 Custom Styling */

/* Message Reply Cards */

/* Reply Form Container */

@media (max-width: 768px) {
    .page-content[style*="max-width: 1800px"] {
        padding: 1rem !important;
    }
}

/* =========================
   THEME SWITCHER BAR
   ========================= */
/* Topbar - Header'ın üstünde - Kaldırıldı */

[data-theme="light"] .topbar {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

/* Theme switcher bar - Header'ın altında (eski konum, artık kullanılmıyor) */

[data-theme="light"] .theme-switcher-bar {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

/* Logo yoksa sadece metin göster */

/* Pokemon logo container - logo yatay olduğu için genişlet */

/* Pokemon logo özel boyutlandırma (logo çok geniş olabilir) */

/* Spider-Man logo özel boyutlandırma (logo yatay olabilir) */

/* Pokemon Logo Special Styling */

.theme-option[data-theme="pokemon"].active .pokemon-logo {
    background: rgba(255, 107, 107, 0.3);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.theme-option[data-theme="pokemon"].active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

/* Marvel Logo Special Styling */

.theme-option[data-theme="marvel"].active .marvel-logo {
    background: rgba(211, 47, 47, 0.3);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.theme-option[data-theme="marvel"].active {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(25, 118, 210, 0.2));
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.2);
}

/* =========================
   SPIDER-MAN THEME
   ========================= */
/* Spider-Man theme colors */

body[data-card-theme="spider-man"] {
    --spider-primary: #D32F2F;
    --spider-secondary: #1976D2;
    --spider-accent: #FFC107;
    --spider-bg-dark: #0a0a0a;
    --spider-bg-surface: #1a1a1a;
    --spider-text: #ffffff;
    --spider-text-secondary: #e0e0e0;
}

/* Spider-Man card detail page styling */

body[data-card-theme="spider-man"] .card-detail-page {
    background: var(--spider-bg-dark);
    color: var(--spider-text);
}

body[data-card-theme="spider-man"] .section-title {
    color: var(--spider-text);
    border-bottom: 2px solid var(--spider-primary);
}

body[data-card-theme="spider-man"] .back-button {
    background: rgba(211, 47, 47, 0.2);
    border: 1px solid var(--spider-primary);
    color: var(--spider-text);
}

body[data-card-theme="spider-man"] .back-button:hover {
    background: var(--spider-primary);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Spider-Man theme switcher bar styling */

/* Responsive */

/* Related cards compact (card detail page) */

.related-cards-compact .cards-carousel .tcg-card {
    min-height: auto;
}

.related-cards-compact .cards-carousel {
    padding: 0;
}

/* Messages Page */
.messages-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.messages-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.messages-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.messages-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff !important;
}

.messages-new-icon {
    font-size: 1.1rem;
}

.messages-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.messages-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.messages-empty-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.messages-empty-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.messages-empty-cta {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    background: var(--accent-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.messages-empty-cta:hover {
    color: #fff !important;
    background: var(--accent-secondary);
    transform: scale(1.02);
}

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

.messages-card {
    display: block;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.messages-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.messages-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.messages-card-subject {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.messages-card-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.messages-card-status--open {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.messages-card-status--resolved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.messages-card-status--closed {
    background: var(--bg-surface);
    color: var(--text-muted);
}

.messages-card-status--in_progress {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.messages-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.messages-card-dot {
    opacity: 0.6;
}

.messages-card-category {
    color: var(--accent-primary);
    font-weight: 500;
}

.messages-card-preview {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.messages-create-page {
    max-width: 640px;
}

.messages-create-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.messages-create-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.messages-create-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.messages-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.messages-form-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.messages-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.messages-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.messages-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.messages-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.messages-form-submit {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}

.messages-form-submit:hover:not(:disabled) {
    transform: translateY(-1px);
}

.messages-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message Detail */
.messages-detail-page {
    max-width: 800px;
}

.messages-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.messages-back-link:hover {
    text-decoration: underline;
}

.messages-detail-header {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.messages-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.messages-detail-subject {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.messages-detail-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.messages-detail-body {
    margin: 1rem 0 0;
    line-height: 1.75;
    color: var(--text-secondary);
}

.messages-detail-replies {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.messages-detail-reply {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    max-width: 85%;
}

.messages-detail-reply--admin {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    align-self: flex-start;
}

.messages-detail-reply--user {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    align-self: flex-end;
}

.messages-detail-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.messages-detail-reply-author {
    font-weight: 600;
    font-size: 0.85rem;
}

.messages-detail-reply--admin .messages-detail-reply-author {
    color: var(--accent-primary);
}

.messages-detail-reply--user .messages-detail-reply-author {
    color: var(--text-secondary);
}

.messages-detail-reply-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.messages-detail-reply-text {
    line-height: 1.6;
    margin: 0;
}

.messages-detail-form {
    display: flex;
    gap: 0.75rem;
}

.messages-detail-input {
    flex: 1;
}

.messages-detail-submit {
    flex-shrink: 0;
}

/* Messages Split Layout (Sohbet) */
.messages-split {
    display: flex;
    min-height: calc(100vh - 180px);
    max-width: 1200px;
    margin: 0 auto;
}

.messages-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.messages-sidebar-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    margin: 1rem 1rem 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.messages-sidebar-new:hover {
    color: #fff !important;
    opacity: 0.95;
}

.messages-sidebar-new-icon {
    font-size: 1rem;
}

.messages-sidebar-filter {
    padding: 0.75rem 1rem;
}

.messages-sidebar-sort {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.messages-sidebar-sort:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.messages-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.messages-sidebar-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
    margin: 0;
}

.messages-sidebar-item {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s, border-color 0.2s;
}

.messages-sidebar-item:hover {
    background: var(--bg-secondary);
    border-color: rgba(99, 102, 241, 0.3);
}

.messages-sidebar-item--active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.5);
}

.messages-sidebar-user {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.messages-sidebar-subject {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.messages-sidebar-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.messages-sidebar-status {
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.messages-sidebar-status--open {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.messages-sidebar-status--resolved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.messages-sidebar-status--closed {
    background: var(--bg-surface);
    color: var(--text-muted);
}

.messages-split-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 1.5rem;
}

.messages-chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
}

.messages-chat-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.messages-chat-placeholder-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.messages-chat-placeholder-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    max-width: 320px;
}

.messages-chat-placeholder .messages-empty-cta {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .messages-split {
        flex-direction: column;
    }

    .messages-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 240px;
    }

    .messages-sidebar-list {
        flex: 0;
    }
}