/* ----------------------------------------------------
    1. متغيرات CSS المحسنة
------------------------------------------------------- */
:root {
    /* Premium Minimalist Variables */
    --primary-bg: #08080C;
    --secondary-bg: #12141A;
    --tertiary-bg: #1A1D26;
    --primary-text: #E8E8EC;
    --secondary-text: #6B7280;
    --accent-color: #E53A5A;
    --accent-light: #FF6B81;
    --accent-dark: #C22B48;
    --hover-color: #FF6B81;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --info-color: #3498DB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --gradient-dark: linear-gradient(135deg, #08080C 0%, #12141A 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 4px 20px rgba(229, 58, 90, 0.2);

    /* Dimensions */
    --nav-height: 60px;
    --container-max: 1400px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Effects */
    --blur-bg: blur(20px);
}

/* ----------------------------------------------------
    2. Reset & Base Styles
------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* تحسين الأداء */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------
    3. شريط التنقل المحسن (Premium Minimalist)
------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: background 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
}

.logo-container {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    text-decoration: none;
}

.hunter-text {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.hunter-text .toon {
    color: var(--accent-color);
    font-weight: 800;
}

/* 
.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    color: var(--primary-text);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}
.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(30, 37, 56, 0.95);
    box-shadow: var(--shadow-accent);
}

.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    color: var(--accent-color);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-accent);
}

/* روابط التنقل */
.nav-links ul {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-text);
}

.nav-links .user-profile {
    color: var(--accent-light);
}

.nav-links .login-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
}
.nav-links .login-btn:hover {
    background: var(--hover-color);
    color: #fff;
}

/* زر القائمة للجوال */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.menu-toggle[aria-expanded="true"] .bar-1 {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle[aria-expanded="true"] .bar-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ----------------------------------------------------
    4. المحتوى الرئيسي
------------------------------------------------------- */
.content-area {
    margin-top: 0;
    padding: calc(var(--nav-height) + 20px) 5% 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

h2 .accent-color {
    color: var(--accent-color);
}

/* ----------------------------------------------------
    5. بطاقات المانهوا المحسنة (2:3 Aspect Ratio, Minimalist)
------------------------------------------------------- */










/* Gradient أبيض خفيف للنص إذا احتجنا */












/* --- Trending Strip --- */
.trending-section, .top-hunters-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text);
}
.trending-strip {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.trending-strip::before, .trending-strip::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.trending-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-bg), transparent);
}
.trending-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-bg), transparent);
}

.trending-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: scroll-trending 30s linear infinite;
}
.trending-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-trending {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); } /* RTL */
}

.trending-card {
    position: relative;
    width: 160px;
    height: 240px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}
.trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(8,8,12,0.95), transparent);
    pointer-events: none;
}
.trending-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
}
.trending-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Top Hunters Strip --- */
.hunters-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    direction: rtl;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}
.hunters-scroll::-webkit-scrollbar {
    display: none; /* Chrome */
}
.hunter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 10px 15px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    flex: 0 0 auto;
    width: 170px;
    min-width: 170px;
    cursor: pointer;
    text-align: right;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.hunter-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.hunter-card.expanded { width: 260px; min-width: 260px; }
.rank-1 { border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 215, 0, 0.05); }
.rank-2 { border-color: rgba(192, 192, 192, 0.4); }
.rank-3 { border-color: rgba(205, 127, 50, 0.4); }
.rank-1 { box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.1); }
.rank-2 { box-shadow: inset 0 0 0 1px rgba(192, 192, 192, 0.08); }
.rank-3 { box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.08); }
.rank-1 .hunter-avatar-wrap { filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.35)); }
.rank-2 .hunter-avatar-wrap { filter: drop-shadow(0 0 8px rgba(229, 231, 235, 0.22)); }
.rank-3 .hunter-avatar-wrap { filter: drop-shadow(0 0 8px rgba(216, 154, 91, 0.22)); }

.hunter-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.hunter-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.hunter-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    user-select: none;
}
.hunter-avatar-fallback.is-hidden,
.hunter-avatar-fallback[hidden] {
    display: none !important;
}
.crown-icon {
    position: absolute;
    top: -8px;
    right: -5px;
    font-size: 14px;
    color: #ffd166;
    transform: rotate(10deg);
}
.hunter-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.hunter-name {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.hunter-card.expanded .hunter-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
}
.hunter-count {
    font-size: 0.75rem;
    color: var(--secondary-text);
}


/* ----------------------------------------------------
    6. زر تحميل المزيد مع AJAX
------------------------------------------------------- */
.load-more-container {
    text-align: center;
    margin: 50px 0;
    padding: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* ----------------------------------------------------
    7. الفوتر المحسن (Minimalist)
------------------------------------------------------- */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 60px;
    padding: 30px 5%;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

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

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-text);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.85rem;
}

/* ----------------------------------------------------
    8. زر العودة للأعلى
------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 58, 90, 0.4);
}

/* ----------------------------------------------------
    9. Responsive Design
------------------------------------------------------- */
@media (max-width: 1200px) {
    .hunter-text {
        font-size: 1.8rem;
    }

    .content-area {
        padding: 30px 3%;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 3%;
    }

    .hunters-scroll {
        display: flex;
        overflow-x: auto;
    }

    .hunter-card.expanded {
        width: 250px;
        min-width: 250px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 300px;
        height: calc(100vh - var(--nav-height));
        background: rgba(10, 14, 24, 0.98);
        backdrop-filter: var(--blur-bg);
        -webkit-backdrop-filter: var(--blur-bg);
        padding: 30px;
        transition: var(--transition-normal);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 15px 0;
        position: absolute;
        top: 100%;
        right: 0;
        padding: 15px 3%;
        background: rgba(10, 14, 24, 0.98);
        backdrop-filter: blur(20px);
        display: none;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area { padding-top: calc(var(--nav-height) + 40px); }

    .top-hunters-section { margin-bottom: 28px; }

    .hunters-scroll {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .hunter-card {
        padding: 10px;
        border-radius: 18px;
        gap: 8px;
        width: 158px;
        min-width: 158px;
    }

    .hunter-card.expanded {
        width: 235px;
        min-width: 235px;
    }

    .hunter-avatar-wrap {
        width: 42px;
        height: 42px;
    }

    .hunter-name { font-size: 0.85rem; }
    .hunter-count { font-size: 0.7rem; }

    .hunter-text {
        font-size: 1.5rem;
    }

    .content-area h2 {
        font-size: 2rem;
    }

    

    

    

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 15px;
    }

    .hunters-scroll {
        display: flex;
        overflow-x: auto;
    }

    .hunter-card.expanded {
        width: 230px;
        min-width: 230px;
    }

    .hunter-text {
        font-size: 1.3rem;
    }

    

    

    

    .card-details {
        padding: 15px;
    }

    .card-details h3 {
        font-size: 1rem;
    }

    .load-more-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ----------------------------------------------------
    10. تأثيرات خاصة
------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: 0%;
    z-index: 1001;
}

/* ----------------------------------------------------
    11. فئات مساعدة
------------------------------------------------------- */
.no-content-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-text);
    font-size: 1.2rem;
}

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

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

/* تحسين عرض الفصول (كما طلبت) */
.webtoon-container {
    line-height: 0;
    font-size: 0;
}

.image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: default;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.webtoon-container img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* إزالة التضبيب من نص HunterToon */
/* ----------------------------------------------------
    12. تحسين عرض اللوائح للشاشات الكبيرة
------------------------------------------------------- */
@media (min-width: 1024px) {
    /* تحسين مودال اللوائح للكمبيوتر */
    .modal-content {
        max-width: 900px;
        max-height: 90vh;
        width: 95%;
        padding: 40px;
    }
    
    /* عرض اللائحة كاملة بدون سكرول */
    #trendingModal .modal-list,
    #huntersModal .modal-list {
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
    }
    
    /* تحسين عرض عناصر اللائحة */
    .modal-item {
        height: 100%;
        min-height: 120px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        transition: all 0.3s ease;
    }
    
    /* عرض صورة أكبر للمانهوا */
    #trendingModal .modal-item img {
        width: 80px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* تحسين عرض الرتبة */
    .modal-item .rank {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 10px;
        background: rgba(241, 196, 15, 0.15);
    }
    
    /* تحسين عرض العنوان */
    .modal-item span:not(.rank):not(.count) {
        font-size: 1.2rem;
        flex: 1;
        text-align: right;
        padding: 0 15px;
    }
    
    /* تحسين عرض العدد */
    .modal-item .count {
        font-size: 1.1rem;
        padding: 8px 16px;
        background: rgba(46, 204, 113, 0.25);
    }
    
    /* تأثير Hover محسن */
    .modal-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* تصميم خاص لقائمة الصيادين */
    #huntersModal .modal-item {
        background: linear-gradient(135deg, 
            rgba(26, 26, 27, 0.9), 
            rgba(40, 40, 45, 0.9));
        border: 1px solid rgba(241, 196, 15, 0.2);
    }
    
    /* تصميم خاص لقائمة المانهوا */
    #trendingModal .modal-item {
        background: linear-gradient(135deg, 
            rgba(30, 37, 56, 0.9), 
            rgba(42, 50, 69, 0.9));
        border: 1px solid rgba(52, 152, 219, 0.2);
    }
    
    /* إضافة مسافة بين العناصر */
    #trendingModal .modal-item:not(:last-child),
    #huntersModal .modal-item:not(:last-child) {
        margin-bottom: 0;
    }
    
    /* تحسين العناوين */
    .modal-content h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(241, 196, 15, 0.3);
    }
}

/* ----------------------------------------------------
    13. تحسين إضافي للشاشات الكبيرة جداً
------------------------------------------------------- */
@media (min-width: 1440px) {
    .modal-content {
        max-width: 1200px;
    }
    
    #trendingModal .modal-list,
    #huntersModal .modal-list {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 25px;
    }
    
    .modal-item {
        padding: 20px 25px;
    }
    
    #trendingModal .modal-item img {
        width: 100px;
        height: 120px;
    }
}

/* ----------------------------------------------------
    14. الحفاظ على التنسيق الحالي للهاتف
------------------------------------------------------- */
@media (max-width: 1023px) {
    /* الحفاظ على التمرير العمودي للهاتف */
    .modal-list {
        max-height: 60vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-item {
        width: 100%;
    }
}
/* ----------------------------------------------------
    15. زر البحث للهاتف المحمول
------------------------------------------------------- */

/* زر البحث للجوال */
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 1002;
    margin-right: 15px;
}

.mobile-search-toggle:hover {
    background: rgba(229, 58, 90, 0.1);
}

/* حاوية البحث للهاتف */
.mobile-search-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(10, 14, 24, 0.98);
    backdrop-filter: var(--blur-bg);
    -webkit-backdrop-filter: var(--blur-bg);
    padding: 20px;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

.mobile-search-container.active {
    display: block;
}

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

/* تحسين محرك البحث للهاتف */
.mobile-search-container .search-wrapper {
    width: 100%;
    max-width: 100%;
}

.mobile-search-container .search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    color: var(--primary-text);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}
.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-search-container .search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover {
    color: var(--accent-color);
}

/* زر إغلاق البحث للهاتف */
.close-mobile-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--secondary-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.close-mobile-search:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* إضافة فاصل للهاتف */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(229, 58, 90, 0.3) 50%, 
        transparent 100%);
}

/* ----------------------------------------------------
    16. Responsive Design للبحث المحمول
------------------------------------------------------- */
@media (max-width: 992px) {
    /* إظهار زر البحث في الهاتف */
    .mobile-search-toggle {
        display: flex;
        order: 2;
        margin-right: 10px;
    }
    
    /* إخفاء محرك البحث العادي في الهاتف */
    .search-container {
        display: none;
    }
    
    /* تعديلات الهامبرغر بار */
    .menu-toggle {
        order: 3;
    }
    
    /* تعديل المسافات */
    .logo-container {
        flex: 1;
        justify-content: flex-start;
        padding-right: 10px;
    }
    
    /* تحسين عرض اللوغو في الهاتف */
    .hunter-text {
        font-size: 1.4rem;
    }
    
    .toon {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .mobile-search-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-right: 5px;
    }
    
    .hunter-text {
        font-size: 1.2rem;
    }
    
    .toon {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}
/* ----------------------------------------------------
    5. بطاقات المانهوا (Classic Layout, Premium Feel)
------------------------------------------------------- */










/* ----------------------------------------------------
    5. بطاقات المانهوا (Clean Layout)
------------------------------------------------------- */
.manhwa-feed,
.home-manhwa-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.manhwa-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--tertiary-bg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.manhwa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-cover-container {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--secondary-bg);
}

.card-cover-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.card-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.manhwa-card:hover .card-cover-container img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.card-info h3 {
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-status {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: auto;
}

.status-مستمرة { color: var(--success-color); }
.status-مكتملة { color: var(--warning-color); }
.status-متوقفة { color: var(--danger-color); }

/* --- Banner --- */
.announcement-wrapper {
    background: rgba(26, 26, 27, 0.5);
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.announcement-content {
    width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.announcement-track {
    display: flex;
    white-space: nowrap;
    gap: 40px;
    animation: marquee 25s linear infinite;
    padding: 0 20px;
}

.announcement-item {
    font-size: 14px;
    font-weight: 500;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-banner {
    position: absolute;
    left: 10px;
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

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



/* Responsive Grids */
@media (min-width: 768px) {
    .manhwa-feed, .home-manhwa-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
}
@media (min-width: 1100px) {
    .manhwa-feed, .home-manhwa-feed { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1280px) {
    .manhwa-feed, .home-manhwa-feed { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 768px) {
    .card-info { padding: 10px; }
    .card-info h3 { font-size: 0.85rem; }
    .nav-links { padding-top: 80px; }
}
@media (max-width: 480px) {
    .manhwa-feed, .home-manhwa-feed { gap: 8px; }
    .card-info { padding: 8px; }
    .card-info h3 { font-size: 0.75rem; }
}
