/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #302305;
    --bg-card: rgba(28, 28, 28, 0.6);
    --gold: #d4af37;
    --gold-light: #F1DE65;
    --gold-dark: #9F7312;
    --text-primary: #ffffff;
    --text-secondary: #000000;
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --transition: all 0.3s ease;
    --purple-light: #cbb5e2;
    --pink-light: #fbadaf;
    --blue-light: #a4e0eb;
    --orange-light: #fdca95;
    --gold-glow: rgba(212, 175, 55, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgba(245, 240, 225, 0.055);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: -webkit-center;
    padding: 0px 20px;
}

/* ==================== NAVBAR ==================== */
/* ==================== تصميم Navbar بستايل الكورس ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 84%;
    justify-self: anchor-center;
    padding: 20px 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #000000
}

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

.logo-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: black;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-menu {
    display: flex;
    border: 2px solid rgba(212, 175, 55, 1);
    align-items: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.979);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-menu a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0px 20px;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-actions {
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    padding: 10px 15px;
    background: rgb(0, 0, 0);
    border: 2px solid rgba(212, 175, 55, 1);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.btn-login:hover,
.btn-lang:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-lang {
    padding: 10px 20px;
    background: rgb(0, 0, 0);
    border: 2px solid rgba(212, 175, 55, 1);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.btn-lang:hover {
    border-color: var(--gold);
}

.lang-active {
    color: #fbfaf6;
    font-weight: bold;
}

.lang-separator {
    margin: 0 8px;
    color: rgba(212, 175, 55, 0.3);
}

.lang-inactive {
    color: var(--text-secondary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000000;
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 150px 0 80px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: #d4af37;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000000de;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Book Card Hero */
.book-card-hero {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.book-card {
    display: flex;
    background: var(--purple-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    position: relative;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

.book-image-container {
    flex: 1;
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4af37;
}

.book-img-hero {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    transition: transform 1s;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.book-img-hero:hover {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f7f7f7;
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.book-details-hero {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:  #d4af37;
}

.book-name-hero {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 0.5px;
}

.author-hero {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    opacity: 0.9;
}

.rating-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    align-self: center;
    margin-bottom: 25px;
} 

.stars {
    color: #ffd700;
    font-size: 1.3rem;
}

.rating-value {
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
}

.info-hero {
    font-size: 1rem;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: justify;
}

.book-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-book-hero {
    padding: 15px 35px;
    background: white;
    border: none;
    border-radius: 25px;
    color: var(--purple-light);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-book-hero:hover {
    background: #f0f0f0;
    color: #a790f2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-add-to-cart {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.btn-add-to-cart:hover {
    background: white;
    color: var(--purple-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #000000;
    padding: 80px 0 0;
    margin-top: 100px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-contact {
    border-left: 2px solid var(--gold);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    text-align: left;
}

[dir="rtl"] .footer-contact {
    border-left: none;
    padding-left: 0;
    padding-right: 40px;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 12px;
    color: #c5a059;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer-text {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
    max-width: 450px;
}

.footer-cta-title {
    font-size: 32px;
    background: linear-gradient(135deg, var(--gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn-book {
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    background: #d4af37;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-book:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.5);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 16px;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #222;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

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

.copyright {
    font-size: 12px;
    color: #444;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets and Mobile Menu (Unified) */
@media (max-width: 1024px) {
        .navbar {
        width: 95%;
        /* توسيع النافبار قليلاً في الشاشات الأصغر */
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 2.5%;
        right: 2.5%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        padding: 40px;
        gap: 20px;
        border: 2px solid #d4af37;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: flex;
        /* إظهار زر القائمة */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    
    .book-card {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .book-card {
        flex-direction: column;
    }
    
    .book-image-container {
        padding: 20px;
    }
    
    .book-img-hero {
        max-width: 200px;
    }
    
    .book-details-hero {
        padding: 30px;
    }
    
    .book-name-hero {
        font-size: 1.8rem;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-contact {
        border-left: none;
        border-top: 2px solid var(--gold);
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
    }
    
    [dir="rtl"] .footer-contact {
        padding-right: 0;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .book-name-hero {
        font-size: 1.5rem;
    }
    
    .book-actions {
        gap: 10px;
    }
    
    .btn-book-hero,
    .btn-add-to-cart {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}


/* Menu Toggle - مخفي على الشاشات الكبيرة */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        /* إظهار الزر */
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        /* مسافة بين الخطوط الثلاثة */
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        /* إظهار الزر */
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        /* مسافة بين الخطوط الثلاثة */
    }
}


.nav-menu.open {
    transform: translateY(0);
    opacity: 1;
}

