/*
Theme Name: PiManga
Description: Özel PiManga Teması
Author: Antigravity
Version: 2.7.8
*/

/* ==========================================================================
   PiManga - Koyu Tema (Dark Theme) Temel Ayarları
   ========================================================================== */

:root {
    --bg-color-main: #000000;
    --bg-color-secondary: #121214;
    --bg-color-tertiary: #1e1e22;

    --text-color-main: #ffffff;
    --text-color-muted: #8e8e93;

    --accent-color: #bb86fc;
    /* Koyu temaya uygun modern bir mor accent */
    --accent-color-hover: #9965f4;

    --border-color: rgba(255, 255, 255, 0.08);
}

/* Scrollbar'ı site genelinde gizle */
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    background-color: var(--bg-color-main);
    color: var(--text-color-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color-main);
    margin-top: 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.site-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1 0 auto;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-color-main);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-identity .custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    margin: 0;
}

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}

.mobile-search-wrapper {
    display: none;
    /* Gizli varsayılan olarak (Masaüstü) */
    padding: 10px 20px;
    background-color: var(--bg-color-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-wrapper .header-search {
    max-width: 100%;
    margin: 0;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

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

.ajax-search-item:hover {
    background-color: var(--bg-color-tertiary);
}

.ajax-search-thumb {
    width: 40px;
    height: 55px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.ajax-search-info {
    display: flex;
    flex-direction: column;
}

.ajax-search-title {
    font-weight: bold;
    font-size: 14px;
}

.ajax-search-meta {
    font-size: 11px;
    color: #aaa;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.series-card {
    background: var(--bg-color-secondary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s;
    min-width: 0;
}

.series-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.series-card-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: block;
    aspect-ratio: 2 / 3;
}

.series-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-card-info {
    padding: 15px;
}

.series-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.search-field:not(.global-search-input-field) {
    width: 100%;
    padding: 12px 20px;
    padding-right: 80px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color-tertiary);
    color: var(--text-color-main);
    border-radius: 24px;
    outline: none;
    transition: all 0.3s ease;
}

.search-field:not(.global-search-input-field):focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.search-submit:not(.global-search-submit-btn) {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 18px;
    background-color: var(--accent-color);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 18px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.search-submit:not(.global-search-submit-btn):hover {
    background-color: var(--accent-color-hover);
}

.header-right-area {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color-main);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-search-toggle:hover {
    color: var(--accent-color);
}

.mobile-search-dropdown-menu {
    display: none;
}

.header-user-profile {
    position: relative;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color-main);
    transition: color 0.2s ease;
}

.user-profile-toggle:hover {
    color: var(--accent-color);
}

.user-profile-toggle .avatar {
    border-radius: 50%;
}

.user-dropdown-menu {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: #141522;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    width: 290px;
    z-index: 99999;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(139, 92, 246, 0.15);
    margin-top: 0;
    color: #fff;
    padding: 0;
    overflow: hidden;
    animation: pimangaSearchFadeIn 0.2s ease-out;
}

.dropdown-header {
    position: relative;
    padding: 16px 18px 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.close-dropdown {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.close-dropdown:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.05);
}

.dropdown-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-profile-info .avatar,
.dropdown-profile-info .guest-avatar.large {
    border-radius: 50%;
    background-color: #191a27;
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(139, 92, 246, 0.2);
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    object-fit: cover;
}

.dropdown-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-name {
    font-weight: 700;
    font-size: 15px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.dropdown-email {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dropdown-stats-section {
    display: flex;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dropdown-stats-section .stat-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #191a27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dropdown-stats-section .stat-box:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: #1c1e2d;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
}

.dropdown-stats-section .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    color: #8b5cf6;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.35));
}

.dropdown-links {
    padding: 10px 10px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-links a:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: #ffffff;
    transform: translateX(3px);
}

/* Front Page Series Section */
.front-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.front-section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Updated Series Card to Match Screenshot */
.series-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.series-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.series-card-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: block;
    aspect-ratio: 2 / 3;
}

.series-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.series-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 3;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.series-card:hover .badge {
    transform: translateY(-1px);
}

/* Fallback badges */
.badge-red {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.45);
}

.badge-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45);
}

.badge-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.45);
}

.badge-dark {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Dinamik Etiket (Badge) Modern Gradient ve Glow Efektleri */
.badge-guncel {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-final {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-birakildi {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.badge-devam-ediyor {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-sezon-finali {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 3px 11px rgba(249, 115, 22, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-yeni-sezon {
    background: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%);
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 3px 11px rgba(168, 85, 247, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-yakinda {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 3px 10px rgba(234, 179, 8, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-yan-hikaye {
    background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%);
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 0 3px 11px rgba(236, 72, 153, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.badge-sansursuz {
    background: linear-gradient(135deg, #e11d48 0%, #881337 100%);
    border: 1px solid rgba(254, 205, 211, 0.5);
    box-shadow: 0 3px 12px rgba(225, 29, 72, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    font-weight: 900;
    letter-spacing: 0.8px;
}

.badge-novel {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    border: 1px solid rgba(186, 230, 253, 0.5);
    box-shadow: 0 3px 12px rgba(14, 165, 233, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    font-weight: 900;
    letter-spacing: 0.8px;
}

.badge-custom {
    background: linear-gradient(135deg, #0284c7 0%, #075985 100%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.series-card-info {
    padding: 0;
}

.series-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-chapters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.chapter-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chapter-name {
    font-weight: 600;
    color: #fff;
}

.chapter-time {
    color: #888;
    font-size: 11px;
}

/* Mobile Adjustments - Temanın Her Yeri İçin Kenar Boşluklarını Minimize Et */
@media (max-width: 768px) {

    /* Ana Taşıyıcılar ve Sayfa Kenar Boşlukları (Neredeyse çok az boşluk: 6px - 8px) */
    .site-header {
        padding: 10px 8px !important;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 4px !important;
    }

    .mobile-search-wrapper {
        display: none !important;
    }

    .mobile-search-toggle {
        display: flex !important;
    }

    .header-right-area {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .site-main {
        padding: 15px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-identity,
    .header-user-profile {
        margin-bottom: 0;
    }

    .desktop-search {
        display: none;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .series-card-info {
        padding: 10px 4px !important;
    }

    .front-section-header {
        padding: 0 4px !important;
        margin-bottom: 15px !important;
    }

    .library-grid,
    .library-elegant-grid {
        gap: 8px !important;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 40px 16px 25px 16px !important;
    }

    .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Fullscreen Dropdown on Mobile */
    .user-dropdown-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 999999 !important;
        background-color: #0d0e15 !important;
        animation: pimangaMobileSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .mobile-search-dropdown-menu {
        z-index: 100000;
        background-color: var(--bg-color-secondary, #12141f);
    }

    .mobile-search-dropdown-menu .mobile-search-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(139, 92, 246, 0.15);
        border: 1px solid rgba(139, 92, 246, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-color, #8b5cf6);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }

    .mobile-search-content-area {
        padding: 20px 16px;
    }

    .mobile-search-inner {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .mobile-search-inner .search-field {
        font-size: 15px;
        padding: 14px 20px;
        padding-right: 85px;
        border-radius: 14px;
        background-color: var(--bg-color-tertiary, #1a1d2e);
        border: 1px solid var(--border-color, #23273a);
        color: #fff;
    }

    .mobile-search-inner .search-submit {
        right: 8px;
        border-radius: 10px;
        padding: 9px 18px;
    }

    .mobile-search-dropdown-menu .ajax-search-results {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 15px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .mobile-search-dropdown-menu .ajax-search-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        margin-bottom: 8px;
        padding: 10px 14px;
        transition: all 0.2s ease;
    }

    .mobile-search-dropdown-menu .ajax-search-item:hover,
    .mobile-search-dropdown-menu .ajax-search-item:active {
        background: rgba(139, 92, 246, 0.12);
        border-color: rgba(139, 92, 246, 0.3);
    }

    .mobile-search-dropdown-menu .ajax-search-thumb {
        width: 48px;
        height: 64px;
        border-radius: 8px;
    }

    .close-dropdown {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 8px 4px !important;
    }

    .site-main {
        padding: 10px 4px !important;
    }

    .container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .mobile-search-wrapper {
        display: none !important;
    }

    .series-grid {
        gap: 6px !important;
    }
}

/* ==========================================================================
   PiManga - Modern Footer Styles & Mobile Responsiveness
   ========================================================================== */

.site-footer {
    position: relative;
    background: linear-gradient(180deg, #0b0c13 0%, #06070a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px 0;
    margin-top: 60px;
    overflow: hidden;
    color: #94a3b8;
    box-sizing: border-box;
}

.footer-ambient-glow {
    position: absolute;
    top: 0;
    left: 20%;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(187, 134, 252, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-top-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(187, 134, 252, 0.6) 35%, rgba(236, 72, 153, 0.6) 65%, transparent 100%);
    box-shadow: 0 0 12px rgba(187, 134, 252, 0.35);
    z-index: 1;
}

.footer-container {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 2;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 45px;
}

/* Left Col: Brand */
.footer-brand-section {
    display: flex;
    flex-direction: column;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand-title:hover {
    opacity: 0.9;
}

.footer-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #d8b4fe;
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.22);
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.footer-brand-tag i {
    font-size: 10px;
    color: #ec4899;
}

.footer-description {
    font-size: 14.5px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 20px 0;
    max-width: 580px;
}

/* Volunteer Card */
.footer-volunteer-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #ec4899;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 580px;
    box-sizing: border-box;
}

.footer-volunteer-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(236, 72, 153, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    font-size: 14px;
    flex-shrink: 0;
}

.footer-volunteer-message {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.5;
    font-weight: 400;
}

/* Social Buttons */
.footer-socials-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-socials-heading {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}

.footer-socials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-btn:hover {
    color: #ffffff;
    background: var(--brand-glow, rgba(187, 134, 252, 0.2));
    border-color: var(--brand-color, #bb86fc);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 20px -4px var(--brand-glow, rgba(187, 134, 252, 0.3));
}

/* Right Col: Kurumsal */
.footer-nav-section {
    display: flex;
    flex-direction: column;
}

.footer-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-heading-indicator {
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #bb86fc 0%, #ec4899 100%);
}

.footer-heading-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.footer-nav-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-nav-card:hover {
    background: rgba(187, 134, 252, 0.06);
    border-color: rgba(187, 134, 252, 0.35);
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.footer-nav-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(187, 134, 252, 0.08);
    border: 1px solid rgba(187, 134, 252, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bb86fc;
    font-size: 16px;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav-card:hover .footer-nav-card-icon {
    background: rgba(187, 134, 252, 0.18);
    color: #d8b4fe;
}

.footer-nav-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-nav-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #f1f5f9;
    transition: color 0.2s ease;
}

.footer-nav-card:hover .footer-nav-card-title {
    color: #bb86fc;
}

.footer-nav-card-desc {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-nav-card-arrow {
    color: #475569;
    font-size: 12px;
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.footer-nav-card:hover .footer-nav-card-arrow {
    transform: translateX(4px);
    color: #bb86fc;
}

/* Bottom Row */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright-text {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.footer-copyright-brand {
    color: #cbd5e1;
    font-weight: 600;
}

/* Live Users Widget */
.pimanga-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #94a3b8;
    font-size: 13px;
    user-select: none;
}

.pimanga-pulse-dot-wrap {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pimanga-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    animation: pimangaRingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.pimanga-pulse-core {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

@keyframes pimangaRingPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.pimanga-live-status-details {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pimanga-live-count {
    color: #ffffff;
    font-weight: 700;
}

.pimanga-live-breakdown {
    color: #64748b;
    font-size: 11.5px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 35px;
    }
    .footer-brand-section,
    .footer-description,
    .footer-volunteer-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 25px 0 !important;
        margin-top: 35px;
    }
    .footer-container {
        padding: 0 16px !important;
    }
    .footer-main-grid {
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .pimanga-live-status-pill {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 20px 0 !important;
        margin-top: 25px;
    }
    .footer-container {
        padding: 0 12px !important;
    }
    .footer-brand-title {
        font-size: 22px;
    }
    .footer-brand-tag {
        font-size: 10.5px;
        padding: 3px 9px;
    }
    .footer-description {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    .footer-volunteer-box {
        padding: 10px 12px;
        gap: 10px;
        margin-bottom: 20px;
    }
    .footer-volunteer-icon-wrap {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .footer-volunteer-message {
        font-size: 12.5px;
        line-height: 1.45;
    }
    .footer-social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }
    .footer-nav-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .footer-nav-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .footer-nav-card-title {
        font-size: 13.5px;
    }
    .footer-nav-card-desc {
        font-size: 11px;
    }
    .footer-bottom-row {
        gap: 14px;
        padding-top: 20px;
    }
    .footer-copyright-text {
        font-size: 12.5px;
    }
    .pimanga-live-status-pill {
        padding: 8px 12px;
        font-size: 12px;
    }
    .pimanga-live-status-details {
        font-size: 12px;
        justify-content: center;
    }
    .pimanga-live-breakdown {
        font-size: 11px;
    }
}

/* ==========================================================================
   Library Page (Kitaplığım) - Elegant Design
   ========================================================================== */

.library-page-main {
    padding: 60px 20px;
}

.library-header-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.library-page-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.library-icon {
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.4));
}

.library-subtitle {
    font-size: 16px;
    color: var(--text-color-muted);
    font-weight: 300;
}

.library-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(20, 20, 20, 0.3));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color-muted);
}

.library-empty-state svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.library-empty-msg {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: var(--text-color-muted);
    background: rgba(30, 30, 30, 0.4);
    border-radius: 20px;
}

/* ==========================================================================
   Library Elegant Grid & Card (Exact Match to Screenshot - Zero Hover Effect)
   ========================================================================== */
.library-elegant-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

.library-elegant-card {
    position: relative !important;
    background: #13151b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    display: flex !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.library-elegant-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: #13151b !important;
}

.library-card-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: none !important;
}

.library-card-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.library-card-thumb {
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px !important;
    height: 160px !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
    background: #1e2029 !important;
}

.library-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
    transition: none !important;
    transform: none !important;
}

.library-card-thumb img:hover,
.library-elegant-card:hover .library-card-thumb img {
    transform: none !important;
}

.card-thumb-badge {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #fff !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.library-card-body {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 2px 0 !important;
}

.library-card-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
}

.library-card-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: none !important;
}

.library-card-desc {
    margin: 0 !important;
    font-size: 13px !important;
    color: #949ba4 !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
}

.library-card-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    margin: auto 0 8px 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.library-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.library-card-footer .card-thumb-badge {
    position: static !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    pointer-events: none !important;
    margin-left: auto !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    flex-shrink: 0 !important;
}

.library-card-footer .card-thumb-badge svg {
    color: #a78bfa !important;
    flex-shrink: 0 !important;
}

.library-card-genre {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #8b94a5 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    max-width: 60% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.library-card-progress {
    display: none !important;
}

.library-card-overlay,
.read-now-btn {
    display: none !important;
}

.no-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .library-elegant-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .library-elegant-card {
        padding: 12px !important;
    }

    .library-card-thumb {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 145px !important;
    }

    .library-card-title {
        font-size: 15px !important;
    }

    .library-card-desc {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }

    .library-page-title {
        font-size: 28px;
    }
}

/* Front Page Section Headers */
.front-section-header h2 {
    font-size: 24px;
}

@media (max-width: 768px) {
    .front-section-header h2 {
        font-size: 18px;
    }
}

/* Continue Reading Component (Desktop & Mobile Optimized) */
.pimanga-continue-reading-section {
    margin-bottom: 35px;
}
.cr-section-header {
    margin-bottom: 15px;
}
.cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.cr-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color-secondary, #181926);
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.cr-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.15);
}
.cr-thumb-wrap {
    flex-shrink: 0;
    line-height: 0;
}
.cr-thumb {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cr-info {
    flex: 1;
    min-width: 0;
}
.cr-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color-main, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.cr-chapter {
    font-size: 12px;
    color: var(--text-color-muted, #94a3b8);
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cr-progress-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.cr-progress-bar {
    height: 100%;
    background: var(--accent-color, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.cr-progress-bar.finished {
    background: #10b981;
}

/* Mobile: Compact & Scaled Down (Ufaltılmış & Uyumlu) */
@media (max-width: 768px) {
    .pimanga-continue-reading-section {
        margin-bottom: 22px !important;
    }
    .cr-section-header {
        margin-bottom: 10px !important;
    }
    .cr-section-header h2 {
        font-size: 15px !important;
        gap: 6px !important;
    }
    .cr-section-header h2 svg {
        width: 18px !important;
        height: 18px !important;
    }
    .cr-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .cr-card {
        padding: 6px 8px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }
    .cr-thumb {
        width: 36px !important;
        height: 50px !important;
        border-radius: 5px !important;
    }
    .cr-title {
        font-size: 11.5px !important;
        margin: 0 0 2px 0 !important;
    }
    .cr-chapter {
        font-size: 10.5px !important;
        margin-bottom: 4px !important;
    }
    .cr-progress-wrap {
        height: 3px !important;
    }
}

@media (max-width: 340px) {
    .cr-grid {
        grid-template-columns: 1fr !important;
    }
}