/* ============================================
   Header & Public Navigation Styles
   Extracted from includes/header.php
   ============================================ */

:root {
    --primary: #0f2b46;
    --secondary: #d4a017;
    --bg-main: #f0f4f8;
    --main-font: 'Tajawal', sans-serif;
}

body {
    margin: 0;
    font-family: var(--main-font);
    background: var(--bg-main);

    color: #1a202c;
    overflow-x: hidden;
}

.main-header {
    height: 70px;
    background: #fff;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

.hero-home {
    min-height: 85vh;
    height: auto;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #0f2b46 0%, #1a3d5c 100%);
    color: #fff;
    display: flex;
    align-items: center;
}

.font-amiri {
    font-family: 'Amiri', serif;
    font-display: swap;
}

.hero-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.quran-verse {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary);
    vertical-align: middle;
    margin-inline-start: 12px;
    font-family: 'Scheherazade New', serif;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: default;
}

.welcome-badge {
    white-space: normal !important;
    height: auto !important;
    min-height: 42px;
    text-align: center;
    padding: 10px 25px !important;
}

[data-theme="dark"] .quran-verse {
    color: #fcd34d;
    text-shadow: 0 0 8px rgba(212, 160, 23, 0.2);
}

[data-theme="dark"] {
    --primary: #0f2b46;
    --bg-main: #0a1e30;
    --bg-card: #0e2740;
    --text-primary: #f0f4f8;
    --text-secondary: #a0aec0;
}

[data-theme="dark"] body {
    background-color: #0a1e30;
    color: #f0f4f8;
}

/* Modern Header - Fixed Dark for Premium Look */
.main-header {
    background-color: #1a365d !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0 !important;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    color: white !important;
}

.main-header .site-name {
    color: white !important;
    transition: color 0.3s;
}

[data-theme="dark"] .main-header {
    background-color: #0f2b46;
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    color: white;
}

.main-header .site-name {
    transition: all 0.3s ease;
}

[data-theme="dark"] .main-header .site-name {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 8px 6px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link:hover {
    color: #fcd34d !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #0f2b46 !important;
    background: linear-gradient(135deg, #d4a017, #fcd34d) !important;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    font-weight: 700;
}

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

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #fcd34d !important;
    background: rgba(252, 211, 77, 0.1) !important;
    box-shadow: 0 0 20px rgba(252, 211, 77, 0.05);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d4a017 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-family: 'Amiri', serif;
    flex-shrink: 0;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Premium Theme Toggle Style */
/* Premium Theme & Lang Buttons */
.theme-toggle-btn,
.lang-btn {
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.lang-btn {
    width: auto;
    border-radius: 50px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 5px;
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .lang-btn {
    background: #1a365d;
    border-color: rgba(255, 255, 255, 0.08);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover,
.lang-btn:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .lang-btn:hover {
    background: #23477e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-capsule {
    border-radius: 50px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s !important;
}

.btn-gold {
    background: linear-gradient(135deg, #d4a017, #fcd34d) !important;
    color: #0f2b46 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3) !important;
}

.btn-gold:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4) !important;
}

.btn-outline {
    background: #ff9800 !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

.btn-outline:hover {
    background: #e65100 !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5) !important;
    transform: translateY(-3px) !important;
}

.theme-toggle-btn,
.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.theme-toggle-btn:hover,
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: #ffffff;
    border: 1.5px solid #edf2f7;
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

[data-theme="dark"] .mobile-menu-btn {
    background: #1a365d;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

@media (max-width: 1400px) {
    .nav-link {
        padding: 4px 6px;
        font-size: 0.8rem;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .header-logo-img {
        width: 35px;
        height: 35px;
    }

    .desktop-nav {
        gap: 0.25rem !important;
    }

    .nav-actions {
        gap: 0.5rem !important;
    }
}

@media (max-width: 1300px) {

    .desktop-nav,
    .desktop-btns {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions {
        gap: 0.75rem !important;
    }
}


.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(212, 160, 23, 0.15);
    color: #fcd34d;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

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

.close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}



.gold-text {
    color: #d4a017 !important;
    font-weight: 700;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
}

.desktop-nav {
    flex-wrap: nowrap !important;
}

/* Mobile Sidebar Public Site */
.mobile-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #1a365d;
    z-index: 10001;
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    padding: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
[dir="rtl"] .mobile-sidebar { right: 0; transform: translateX(100%); }
[dir="ltr"] .mobile-sidebar { left: 0; transform: translateX(-100%); }

.mobile-sidebar.active {
    transform: translateX(0);
    visibility: visible;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.sidebar-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Bootstrap Icons Fix */
.bi,
[class^="bi-"],
[class*=" bi-"] {
    display: inline-block;
    line-height: 1;
    vertical-align: -.125em;
}