/* OSIRIS BOOKSHOP - DARK MODE ENHANCED CSS */


/* Advanced CSS with High-End Animations and Effects */


/* Reset and Variables */

 :root {
    /* Dark Theme Colors - Red/Orange/Yellow Color Scheme */
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #fbbf24;
    --accent-coral: #ff6b6b;
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;
    /* Glassmorphism */
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Gradients - Red/Orange/Yellow */
    --gradient-primary: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-secondary: linear-gradient(135deg, #f97316, #fbbf24);
    --gradient-tertiary: linear-gradient(135deg, #fbbf24, #ef4444);
    --gradient-quaternary: linear-gradient(135deg, #ff6b6b, #f59e0b);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* Light Mode Variables */

[data-theme="light"] {
    /* Light Theme Colors - Red/Orange/Yellow Color Scheme */
    --primary-dark: #ffffff;
    --secondary-dark: #f8f9fa;
    --tertiary-dark: #e9ecef;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #fbbf24;
    --accent-coral: #ff6b6b;
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;
    /* Glassmorphism for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Gradients - Red/Orange/Yellow (same colors) */
    --gradient-primary: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-secondary: linear-gradient(135deg, #f97316, #fbbf24);
    --gradient-tertiary: linear-gradient(135deg, #fbbf24, #ef4444);
    --gradient-quaternary: linear-gradient(135deg, #ff6b6b, #f59e0b);
    --gradient-dark: linear-gradient(135deg, #f8f9fa, #e9ecef);
}


/* Light Mode Text Colors - Enhanced for Better Visibility */

[data-theme="light"] body {
    color: #1a1a1a;
    background: #ffffff;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #000000;
    font-weight: 700;
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] div {
    color: #2d2d2d;
    line-height: 1.6;
}

[data-theme="light"] .text-muted {
    color: #555555 !important;
}

[data-theme="light"] .text-light {
    color: #666666 !important;
}


/* Light Mode Specific Elements */

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-description {
    color: #000000;
    text-shadow: none;
}

[data-theme="light"] .section-title {
    color: #000000;
    text-shadow: none;
}

[data-theme="light"] .section-subtitle {
    color: #444444;
}

[data-theme="light"] .card-title,
[data-theme="light"] .book-title,
[data-theme="light"] .author-name {
    color: #000000;
}

[data-theme="light"] .card-description,
[data-theme="light"] .book-description,
[data-theme="light"] .author-bio {
    color: #333333;
}

[data-theme="light"] .nav-link {
    color: #333333;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--accent-red);
}

[data-theme="light"] .btn {
    color: #ffffff;
}

[data-theme="light"] .btn-outline {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--accent-red);
    color: #ffffff;
}


/* Light Mode Glass Elements */

[data-theme="light"] .glassmorphism {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card,
[data-theme="light"] .book-card,
[data-theme="light"] .author-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .book-card:hover,
[data-theme="light"] .author-card:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.2);
    transform: translateY(-5px);
}


/* Light Mode Header */

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .header .nav-link {
    color: #333333;
}

[data-theme="light"] .header .nav-link:hover,
[data-theme="light"] .header .nav-link.active {
    color: var(--accent-red);
}

[data-theme="light"] .header .logo-text {
    color: #000000;
}

[data-theme="light"] .header .user-link,
[data-theme="light"] .header .cart-link {
    color: #333333;
}

[data-theme="light"] .header .user-link:hover,
[data-theme="light"] .header .cart-link:hover {
    color: var(--accent-red);
}

[data-theme="light"] .header .search-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
}

[data-theme="light"] .header .search-input::placeholder {
    color: #666666;
}

[data-theme="light"] .header .search-btn {
    color: #333333;
}

[data-theme="light"] .header .search-btn:hover {
    color: var(--accent-red);
}


/* Light Mode Footer */

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}


/* Light Mode Footer Enhanced */

[data-theme="light"] .footer .footer-enhanced {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-content-enhanced {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-content-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer h4 {
    color: #000000 !important;
}

[data-theme="light"] .footer p,
[data-theme="light"] .footer span {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-link {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-link:hover {
    color: var(--accent-red) !important;
}

[data-theme="light"] .footer .social-link {
    color: #000000 !important;
}

[data-theme="light"] .footer .social-link:hover {
    color: var(--accent-red) !important;
}

[data-theme="light"] .footer .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom p,
[data-theme="light"] .footer .footer-bottom span {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom a {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom a:hover {
    color: var(--accent-red) !important;
}


/* Force Black Text in Light Mode Footer - More Specific Selectors */

[data-theme="light"] .footer * {
    color: #000000 !important;
}

[data-theme="light"] .footer h1,
[data-theme="light"] .footer h2,
[data-theme="light"] .footer h3,
[data-theme="light"] .footer h4,
[data-theme="light"] .footer h5,
[data-theme="light"] .footer h6 {
    color: #000000 !important;
}

[data-theme="light"] .footer p,
[data-theme="light"] .footer span,
[data-theme="light"] .footer div {
    color: #000000 !important;
}

[data-theme="light"] .footer a {
    color: #000000 !important;
}

[data-theme="light"] .footer a:hover {
    color: var(--accent-red) !important;
}

[data-theme="light"] .footer .footer-content * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-section * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-links * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-social * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom a:hover {
    color: var(--accent-red) !important;
}


/* Light Mode Navigation */

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar .nav-link {
    color: #333333;
}

[data-theme="light"] .navbar .nav-link:hover,
[data-theme="light"] .navbar .nav-link.active {
    color: var(--accent-red);
}


/* Light Mode Topbar */

[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .topbar p,
[data-theme="light"] .topbar span {
    color: #444444;
}

[data-theme="light"] .topbar .topbar-link {
    color: #666666;
}

[data-theme="light"] .topbar .topbar-link:hover {
    color: var(--accent-red);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--secondary-dark);
}

 ::-webkit-scrollbar {
    width: 8px;
}

 ::-webkit-scrollbar-track {
    background: var(--secondary-dark);
    border-radius: 10px;
}

 ::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

 ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    background: var(--primary-dark);
    color: #ffffff;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}


/* Override body color for light mode */

[data-theme="light"] body {
    color: #000000 !important;
    background: #ffffff !important;
}


/* Force all text to be black in light mode - but allow hover effects */

[data-theme="light"] * {
    color: #000000 !important;
}


/* Override hover effects for footer elements */

[data-theme="light"] .footer a:hover,
[data-theme="light"] .footer .footer-link:hover,
[data-theme="light"] .footer .social-link:hover,
[data-theme="light"] .footer .contact-link:hover,
[data-theme="light"] .footer .contact-url:hover,
[data-theme="light"] .footer .contact-info a:hover {
    color: var(--accent-red) !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    transition: all 0.3s ease !important;
}


/* Override specific elements that might have white text */

[data-theme="light"] .footer,
[data-theme="light"] .footer *,
[data-theme="light"] .footer * *,
[data-theme="light"] .footer * * *,
[data-theme="light"] .footer * * * *,
[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force black text for all footer elements with maximum specificity */

html[data-theme="light"] .footer,
html[data-theme="light"] .footer *,
html[data-theme="light"] .footer * *,
html[data-theme="light"] .footer * * *,
html[data-theme="light"] .footer * * * *,
html[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force black text for all footer elements with body specificity */

body[data-theme="light"] .footer,
body[data-theme="light"] .footer *,
body[data-theme="light"] .footer * *,
body[data-theme="light"] .footer * * *,
body[data-theme="light"] .footer * * * *,
body[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* قاعدة أساسية لجعل كل شيء مرن */

html,
body {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}


/* الصور والفيديوهات مرنة */

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}


/* الحاويات الرئيسية */

.container,
.main-content,
.booksGrid,
.stats-section-enhanced,
.publishers-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}


/* الشبكة للكتب */

#booksGrid,
.booksGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}


/* البطاقات */

.book-card {
    min-width: 0;
    width: 100%;
}


/* الناشرون */

.publishers-logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
}


/* شريط التنقل */

.navbar,
.topbar,
.nav-menu {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* البحث */

.search-container,
.search-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}


/* أزرار CTA */

.cta-btn {
    width: 100%;
    max-width: 250px;
}


/* إخفاء التمرير الأفقي */

body {
    overflow-x: hidden;
}


/* ميديا كويري للموبايل */

@media (max-width: 767px) {
    .container,
    .main-content,
    .booksGrid,
    .stats-section-enhanced,
    .publishers-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .book-card {
        font-size: 0.95rem;
    }
    .publishers-logos {
        gap: 1rem;
        height: 70px;
    }
    .publisher-logo {
        height: 50px;
    }
    .stat-item-enhanced {
        font-size: 0.95rem;
    }
    /* إظهار حسابي والسلة بشكل واضح في الشاشات الصغيرة */
    .header-actions {
        flex-direction: row !important;
        gap: 1rem !important;
        width: 100% !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .user-menu {
        flex-direction: row !important;
        gap: 0.5rem !important;
        width: auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .user-link,
    .cart-link {
        padding: 0.5rem 0.8rem !important;
        font-size: 1.1rem !important;
        min-width: 0 !important;
        width: auto !important;
        border-radius: 20px !important;
    }
    .cart-link {
        margin-right: 0 !important;
    }
    /* لو فيه عناصر مخفية بالـ display:none أظهرها */
    .user-menu,
    .user-link,
    .cart-link {
        display: flex !important;
    }
    /* لو فيه أيقونات SVG أو FontAwesome صغرها */
    .user-link i,
    .cart-link i {
        font-size: 1.3rem !important;
    }
}


/* ميديا كويري للتابلت */

@media (min-width: 768px) and (max-width: 991px) {
    .container,
    .main-content,
    .booksGrid,
    .stats-section-enhanced,
    .publishers-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .publishers-logos {
        height: 80px;
    }
    .publisher-logo {
        height: 60px;
    }
}


/* Particle System Background */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}


/* Advanced Loading Screen */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #1a1a1a, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10001;
}

.animated-book {
    position: relative;
    perspective: 1000px;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

.book-cover-front {
    width: 200px;
    height: 280px;
    background: var(--gradient-primary);
    border-radius: 10px 5px 5px 10px;
    position: relative;
    transform-style: preserve-3d;
    animation: bookPulse 2s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: white;
}

@keyframes bookPulse {
    0%,
    100% {
        box-shadow: 0 0 50px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 0 100px rgba(239, 68, 68, 0.6);
    }
}

.book-title-loading {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.book-subtitle-loading {
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 1rem;
}

.book-decoration {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.decoration-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.book-decoration i {
    font-size: 1.5rem;
    animation: iconSpin 4s linear infinite;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.book-spine {
    position: absolute;
    right: -15px;
    top: 10px;
    width: 20px;
    height: 260px;
    background: linear-gradient(180deg, #ef4444, #f97316);
    border-radius: 0 5px 5px 0;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.3);
}

.book-back {
    position: absolute;
    right: -30px;
    top: 20px;
    width: 180px;
    height: 240px;
    background: #1a1a1a;
    border-radius: 5px;
    z-index: -1;
    opacity: 0.7;
}

.loading-text {
    text-align: center;
    color: var(--accent-red);
}

.loading-dots {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotBounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-in-out forwards;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 1s ease-in-out infinite;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.1rem;
}


/* Floating Books Animation */

.floating-books {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.floating-book {
    position: absolute;
    font-size: 2rem;
    color: rgba(239, 68, 68, 0.2);
    animation: floatingBookAnimation 15s infinite linear;
}

.floating-book.book-1 {
    left: 10%;
    animation-delay: 0s;
    color: rgba(255, 215, 0, 0.3);
}

.floating-book.book-2 {
    left: 20%;
    animation-delay: 2s;
    color: rgba(255, 107, 53, 0.3);
}

.floating-book.book-3 {
    left: 30%;
    animation-delay: 4s;
    color: rgba(157, 78, 237, 0.3);
}

.floating-book.book-4 {
    left: 60%;
    animation-delay: 1s;
    color: rgba(78, 205, 196, 0.3);
}

.floating-book.book-5 {
    left: 80%;
    animation-delay: 3s;
    color: rgba(239, 68, 68, 0.3);
}

.floating-book.book-6 {
    left: 90%;
    animation-delay: 5s;
    color: rgba(255, 215, 0, 0.3);
}

@keyframes floatingBookAnimation {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}


/* Header Styles */

.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: flex;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header:hover .header-glow {
    opacity: 0.05;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

/* Osiris Logo */
.osiris-logo {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.osiris-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 32px rgba(46, 204, 113, 0.4));
    transition: all 0.3s ease;
}

.osiris-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 40px rgba(46, 204, 113, 0.6));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(32, 191, 107, 0.3), transparent);
    border-radius: 50%;
    animation: logoGlow 2s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes logoGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}


/* Floating Logo Book */

.floating-logo-book {
    perspective: 1000px;
    animation: logoBookFloat 4s ease-in-out infinite;
}

@keyframes logoBookFloat {
    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(10deg);
    }
}

.logo-book-cover {
    width: 80px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 8px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-book-spine {
    position: absolute;
    right: -8px;
    top: 5px;
    width: 12px;
    height: 90px;
    background: linear-gradient(180deg, #ef4444, #f97316);
    border-radius: 0 4px 4px 0;
}

.logo-book-pages {
    position: absolute;
    top: 10px;
    left: 5px;
    right: 5px;
    height: 80px;
}

.page {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    animation: pageFlip 3s ease-in-out infinite;
}

.page:nth-child(2) {
    animation-delay: 0.5s;
}

.page:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pageFlip {
    0%,
    80%,
    100% {
        opacity: 0.2;
    }
    10%,
    70% {
        opacity: 0.8;
    }
}

.logo-book-content {
    color: white;
    font-size: 1.5rem;
    z-index: 1;
}

.infinity-rotating {
    animation: infiniteRotation 3s linear infinite;
}

@keyframes infiniteRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Logo Text */

.logo-text {
    text-align: center;
    position: relative;
}

.glowing-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    }
    to {
        text-shadow: 0 0 50px rgba(239, 68, 68, 0.8);
    }
}

.subtitle-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 500;
    animation: subtitleFade 2s ease-in-out infinite alternate;
}

@keyframes subtitleFade {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.logo-underline {
    width: 100px;
    height: 2px;
    background: var(--gradient-secondary);
    margin: 0.5rem auto;
    border-radius: 1px;
    animation: underlineExpand 2s ease-in-out infinite alternate;
}

@keyframes underlineExpand {
    from {
        width: 100px;
    }
    to {
        width: 150px;
    }
}


/* Header Actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-container {
    position: relative;
}

.search-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-container:hover .search-glow {
    opacity: 0.3;
}

.search-input {
    width: 350px;
    padding: 1rem 3.5rem 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.4);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* User Menu */

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.user-link,
.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.link-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.user-link:hover .link-glow,
.cart-link:hover .link-glow {
    opacity: 0.2;
}

.cart-link {
    position: relative;
}

.cart-icon-animated {
    animation: cartBounce 2s ease-in-out infinite;
}

@keyframes cartBounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.cart-pulse {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    opacity: 0;
    animation: cartPulseAnimation 2s ease-in-out infinite;
}

@keyframes cartPulseAnimation {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


/* Navigation */

.main-nav {
    background: rgba(42, 42, 42, 0.5);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition-smooth);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: var(--transition-bounce);
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
    color: transparent;
}

.nav-link.active {
    background: var(--glass-bg);
    color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    opacity: 0;
}


/* Hero Banner */

.hero-banner {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-yellow), var(--accent-coral));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    33% {
        transform: translateY(-50px) translateX(30px) scale(1.1);
    }
    66% {
        transform: translateY(30px) translateX(-40px) scale(0.9);
    }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: heroTextSlideIn 1s ease-out;
}

@keyframes heroTextSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.word {
    opacity: 0;
    transform: translateY(50px);
    animation: wordSlideUp 0.8s ease-out forwards;
    display: inline-block;
}

.word[data-delay="0"] {
    animation-delay: 0.2s;
}

.word[data-delay="200"] {
    animation-delay: 0.4s;
}

.word[data-delay="400"] {
    animation-delay: 0.6s;
}

.word[data-delay="600"] {
    animation-delay: 0.8s;
}

.word[data-delay="800"] {
    animation-delay: 1s;
}

@keyframes wordSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    from {
        text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    }
    to {
        text-shadow: 0 0 60px rgba(239, 68, 68, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: typewriter 3s steps(40) 1s 1 normal both;
    border-left: 2px solid var(--accent-red);
    padding-right: 1rem;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-description {
    margin-bottom: 3rem;
}

.typing-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(40) 2s 1 normal both;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    animation: tagFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.tag:nth-child(1) {
    animation-delay: 2.5s;
}

.tag:nth-child(2) {
    animation-delay: 2.7s;
}

.tag:nth-child(3) {
    animation-delay: 2.9s;
}

.tag:nth-child(4) {
    animation-delay: 3.1s;
}

@keyframes tagFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
}

.primary-cta {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-red);
}

.btn-bg-animation {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover .btn-bg-animation {
    left: 100%;
}


/* استكمال CSS من حيث توقف */

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

.secondary-cta:hover {
    background: rgba(239, 68, 68, 0.1);
}


/* Hero Visual Styles */

.hero-visual {
    position: relative;
    perspective: 1000px;
    animation: heroVisualAppear 1.5s ease-out 1.5s forwards;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes heroVisualAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-mega-book {
    position: relative;
    width: 400px;
    height: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: megaBookFloat 6s ease-in-out infinite;
}

@keyframes megaBookFloat {
    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateY(5deg);
    }
    50% {
        transform: translateY(-10px) rotateY(0deg);
    }
    75% {
        transform: translateY(-15px) rotateY(-5deg);
    }
}

.mega-book-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.mega-book-cover {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 15px 8px 8px 15px;
    position: relative;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
    overflow: hidden;
}

.book-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bookGlowRotate 10s linear infinite;
}

@keyframes bookGlowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.book-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.book-title-hero {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.book-divider {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin: 1rem auto;
    border-radius: 2px;
    animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

.book-subtitle-hero {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.book-icon-hero {
    font-size: 3rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.book-pages-effect {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    bottom: 20px;
    pointer-events: none;
}

.page-turn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: left center;
    animation: pageTurnAnimation 6s ease-in-out infinite;
}

.page-1 {
    animation-delay: 0s;
    top: 20%;
}

.page-2 {
    animation-delay: 2s;
    top: 50%;
}

.page-3 {
    animation-delay: 4s;
    top: 80%;
}

@keyframes pageTurnAnimation {
    0%,
    100% {
        transform: scaleX(0);
        opacity: 0.1;
    }
    50% {
        transform: scaleX(1);
        opacity: 0.3;
    }
}

.mega-book-spine {
    position: absolute;
    right: -20px;
    top: 20px;
    width: 30px;
    height: 460px;
    background: linear-gradient(180deg, #ef4444, #f97316);
    border-radius: 0 8px 8px 0;
    box-shadow: inset -8px 0 15px rgba(0, 0, 0, 0.3);
}


/* Orbiting Elements */

.orbiting-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
}

.orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: orbitRotation linear infinite;
}

.orbit-1 {
    animation-duration: 20s;
    border: 1px dashed rgba(239, 68, 68, 0.2);
}

.orbit-2 {
    animation-duration: 15s;
    border: 1px dashed rgba(255, 215, 0, 0.2);
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.orbit-3 {
    animation-duration: 10s;
    border: 1px dashed rgba(255, 107, 53, 0.2);
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes orbitRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: orbitItemPulse 2s ease-in-out infinite;
}

@keyframes orbitItemPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.orbit-2 .orbit-item {
    color: var(--accent-orange);
    animation-delay: 0.5s;
}

.orbit-3 .orbit-item {
    color: var(--accent-orange);
    animation-delay: 1s;
}


/* Scroll Indicator */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: scrollIndicatorAppear 1s ease-out 3s forwards;
}

@keyframes scrollIndicatorAppear {
    to {
        opacity: 1;
    }
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 2px;
    animation: scrollWheelAnimation 2s ease-in-out infinite;
}

@keyframes scrollWheelAnimation {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: scrollTextPulse 2s ease-in-out infinite;
}

@keyframes scrollTextPulse {
    0%,
    100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}


/* Main Container */

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
}


/* Sidebar */

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.sidebar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar:hover .sidebar-glow {
    opacity: 0.05;
}

.sidebar-section {
    margin-bottom: 3rem;
    animation: sidebarSectionAppear 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

.sidebar-section:nth-child(1) {
    animation-delay: 0.2s;
}

.sidebar-section:nth-child(2) {
    animation-delay: 0.4s;
}

.sidebar-section:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes sidebarSectionAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    position: relative;
}

.title-underline {
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    animation: underlineSlide 2s ease-in-out infinite alternate;
}

@keyframes underlineSlide {
    from {
        width: 50px;
    }
    to {
        width: 100px;
    }
}


/* Publisher Card */

.publisher-card {
    background: var(--gradient-dark);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.publisher-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.publisher-card:hover .publisher-glow {
    opacity: 0.1;
}

.publisher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.publisher-logo {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.oxford-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    animation: oxfordGlow 3s ease-in-out infinite alternate;
}

@keyframes oxfordGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.university-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.india-text {
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 700;
    margin-top: 0.5rem;
}

.publisher-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.publisher-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    animation: publisherParticle 3s linear infinite;
}

.publisher-particles .particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.publisher-particles .particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
}

.publisher-particles .particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes publisherParticle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(100px, -100px) scale(0.5);
    }
}


/* Category List */

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-item:hover {
    transform: translateX(-5px);
    color: white;
}

.category-item:hover .hover-glow::before {
    opacity: 0.1;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.category-item:hover .category-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.category-arrow {
    margin-right: auto;
    opacity: 0.5;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.category-item:hover .category-arrow {
    opacity: 1;
    transform: translateX(-5px);
}


/* Quick Stats */

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-mini {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.stat-mini:hover {
    background: rgba(42, 42, 42, 0.8);
    transform: translateY(-3px);
}

.stat-icon-mini {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info-mini {
    display: flex;
    flex-direction: column;
}

.stat-number-mini {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label-mini {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}


/* Main Content */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}


/* Section Header */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glowing-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
    }
    to {
        text-shadow: 0 0 50px rgba(239, 68, 68, 0.6);
    }
}

.section-decoration {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.decoration-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.decoration-line-long {
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: linePulse 3s ease-in-out infinite alternate;
}

@keyframes linePulse {
    from {
        width: 100px;
    }
    to {
        width: 150px;
    }
}


/* Section Controls */

.section-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.glow-btn {
    position: relative;
    z-index: 1;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover .btn-glow {
    opacity: 0.3;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}


/* Books Grid */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}


/* Book Card (will be generated by JavaScript) */

.book-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--glass-shadow);
    min-width: 0;
    width: 100%;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.2);
}

.book-card:hover::before {
    opacity: 0.1;
}

.book-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-category {
    background: var(--accent-red);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.book-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.book-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.add-to-cart-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}


/* Stats Section Enhanced */

.stats-section-enhanced {
    background: var(--gradient-dark);
    border-radius: 20px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.stats-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.stats-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: statsOrbFloat 15s ease-in-out infinite;
}

.stats-orb.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.stats-orb.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

@keyframes statsOrbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.9);
    }
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item-enhanced {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-item-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-item-enhanced:hover::before {
    opacity: 0.1;
}

.stat-icon-enhanced {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.stat-item-enhanced:hover .stat-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.icon-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    animation: iconPulseAnimation 2s ease-in-out infinite;
}

@keyframes iconPulseAnimation {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.stat-info-enhanced {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-number-enhanced {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label-enhanced {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-progress {
    position: relative;
    z-index: 1;
}

.progress-ring {
    position: relative;
}

.progress-circle {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease-in-out;
}


/* Footer Enhanced */

.footer-enhanced {
    background: var(--gradient-dark);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.footer-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: footerOrbFloat 20s ease-in-out infinite;
}

.footer-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.footer-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: -150px;
    right: 10%;
    animation-delay: 7s;
}

.footer-orb.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    top: 20%;
    right: -100px;
    animation-delay: 14s;
}

.footer-link-hover:hover {
    color: var(--accent-red);
}

@keyframes footerOrbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 25px) scale(0.9);
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}


/* Company Info */

.company-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Footer Osiris Logo */
.footer-osiris-logo {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.footer-osiris-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: footerLogoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 24px rgba(46, 204, 113, 0.4));
    transition: all 0.3s ease;
}

.footer-osiris-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(46, 204, 113, 0.6));
}

.footer-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(32, 191, 107, 0.4), transparent);
    border-radius: 50%;
    animation: footerLogoGlow 3s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes footerLogoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes footerLogoGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.footer-book-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.book-glow-footer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: bookGlowRotate 8s linear infinite;
}

.footer-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.company-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links-enhanced {
    display: flex;
    gap: 1rem;
}

.social-link-enhanced {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-link-enhanced.facebook {
    background: #3b5998;
}

.social-link-enhanced.twitter {
    background: #1da1f2;
}

.social-link-enhanced.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link-enhanced.linkedin {
    background: #0077b5;
}

.social-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link-enhanced:hover .social-glow {
    opacity: 1;
}

.social-link-enhanced:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* Footer Links */

.footer-links-enhanced {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link-hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding-right: 1.5rem;
}


/* Light Mode Footer Links */

[data-theme="light"] .footer-link-hover {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Light Mode Footer Link Hover - Same as Dark Mode */
[data-theme="light"] .footer-link-hover:hover {
    color: var(--accent-red) !important;
    padding-right: 2rem !important;
}

[data-theme="light"] .footer-link-hover:hover::before {
    opacity: 1 !important;
    right: -0.5rem !important;
}

/* Force Footer Link Hover with Maximum Specificity */
html[data-theme="light"] .footer-link-hover:hover,
body[data-theme="light"] .footer-link-hover:hover {
    color: var(--accent-red) !important;
    padding-right: 2rem !important;
}

html[data-theme="light"] .footer-link-hover:hover::before,
body[data-theme="light"] .footer-link-hover:hover::before {
    opacity: 1 !important;
    right: -0.5rem !important;
}


/* Light Mode Footer Buttons */

[data-theme="light"] .footer .btn {
    color: #000000 !important;
    border-color: #000000 !important;
}

[data-theme="light"] .footer .btn:hover {
    background: var(--accent-red) !important;
    color: #ffffff !important;
    border-color: var(--accent-red) !important;
}


/* Light Mode Footer Social Links */

[data-theme="light"] .footer .social-link {
    color: #000000 !important;
}

[data-theme="light"] .footer .social-link:hover {
    color: var(--accent-red) !important;
}


/* Light Mode Footer Contact Info */

[data-theme="light"] .footer .contact-info {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-info a {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-info a:hover {
    color: var(--accent-red) !important;
}


/* Light Mode Footer Column Titles */

[data-theme="light"] .footer .footer-section h4,
[data-theme="light"] .footer .footer-section h3,
[data-theme="light"] .footer .footer-section h2,
[data-theme="light"] .footer .footer-section h1 {
    color: #000000 !important;
}


/* Light Mode Footer Phone Numbers */

[data-theme="light"] .footer .phone,
[data-theme="light"] .footer .phone-number,
[data-theme="light"] .footer .contact-phone {
    color: #000000 !important;
}


/* Light Mode Footer Address */

[data-theme="light"] .footer .address,
[data-theme="light"] .footer .footer-address {
    color: #000000 !important;
}


/* Light Mode Footer Email */

[data-theme="light"] .footer .email,
[data-theme="light"] .footer .footer-email {
    color: #000000 !important;
}


/* Light Mode Footer All Text Elements */

[data-theme="light"] .footer .footer-section,
[data-theme="light"] .footer .footer-column,
[data-theme="light"] .footer .footer-item {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-section *,
[data-theme="light"] .footer .footer-column *,
[data-theme="light"] .footer .footer-item * {
    color: #000000 !important;
}


/* Light Mode Footer Specific Classes */

[data-theme="light"] .footer .footer-title,
[data-theme="light"] .footer .footer-heading,
[data-theme="light"] .footer .footer-subtitle {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-text,
[data-theme="light"] .footer .footer-description,
[data-theme="light"] .footer .footer-content {
    color: #000000 !important;
}


/* Light Mode Footer Contact Information - More Specific */

[data-theme="light"] .footer .contact-info,
[data-theme="light"] .footer .contact-details,
[data-theme="light"] .footer .contact-section {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-info *,
[data-theme="light"] .footer .contact-details *,
[data-theme="light"] .footer .contact-section * {
    color: #000000 !important;
}


/* Light Mode Footer Contact Text Elements */

[data-theme="light"] .footer .contact-text,
[data-theme="light"] .footer .contact-description,
[data-theme="light"] .footer .contact-label {
    color: #000000 !important;
}


/* Light Mode Footer Contact Links */

[data-theme="light"] .footer .contact-link,
[data-theme="light"] .footer .contact-url {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-link:hover,
[data-theme="light"] .footer .contact-url:hover {
    color: var(--accent-orange) !important;
}


/* Light Mode Footer Contact Icons */

[data-theme="light"] .footer .contact-icon,
[data-theme="light"] .footer .icon {
    color: #000000 !important;
}


/* Light Mode Footer Contact Items */

[data-theme="light"] .footer .contact-item,
[data-theme="light"] .footer .contact-entry {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-item *,
[data-theme="light"] .footer .contact-entry * {
    color: #000000 !important;
}


/* Light Mode Footer Contact Info Enhanced - Specific Classes */

[data-theme="light"] .footer .contact-info-enhanced {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-info-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-item-enhanced {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-item-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-item-enhanced span {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-icon {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-icon i {
    color: #000000 !important;
}


/* Light Mode Footer Contact Info Enhanced - All Text */

[data-theme="light"] .footer .contact-info-enhanced h4,
[data-theme="light"] .footer .contact-info-enhanced h3,
[data-theme="light"] .footer .contact-info-enhanced h2,
[data-theme="light"] .footer .contact-info-enhanced h1 {
    color: #000000 !important;
}

[data-theme="light"] .footer .contact-info-enhanced p,
[data-theme="light"] .footer .contact-info-enhanced span,
[data-theme="light"] .footer .contact-info-enhanced div {
    color: #000000 !important;
}


/* Light Mode Footer Contact Item Enhanced */

[data-theme="light"] .footer .contact-item-enhanced p,
[data-theme="light"] .footer .contact-item-enhanced span,
[data-theme="light"] .footer .contact-item-enhanced div {
    color: #000000 !important;
}


/* Light Mode Footer Links Enhanced */

[data-theme="light"] .footer .footer-links-enhanced {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-links-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-links-enhanced li {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-links-enhanced li a {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-links-enhanced li a:hover {
    color: var(--accent-orange) !important;
}


/* Light Mode Footer Bottom Enhanced */

[data-theme="light"] .footer .footer-bottom-enhanced {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom-content {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-bottom-content * {
    color: #000000 !important;
}


/* Light Mode Footer Animation Line */

[data-theme="light"] .footer .footer-animation-line {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow));
}


/* Light Mode Footer Social Links Enhanced */

[data-theme="light"] .footer .footer-social-enhanced {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-social-enhanced * {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-social-enhanced a {
    color: #000000 !important;
}

[data-theme="light"] .footer .footer-social-enhanced a:hover {
    color: var(--accent-orange) !important;
}


/* Light Mode Footer Hover Effects - Red/Orange/Yellow Gradients */

[data-theme="light"] .footer .footer-link:hover,
[data-theme="light"] .footer .footer-links a:hover,
[data-theme="light"] .footer .footer-links-enhanced a:hover {
    color: var(--accent-red) !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .footer .social-link:hover,
[data-theme="light"] .footer .footer-social a:hover,
[data-theme="light"] .footer .footer-social-enhanced a:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.5) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .footer .contact-link:hover,
[data-theme="light"] .footer .contact-url:hover,
[data-theme="light"] .footer .contact-info a:hover {
    color: var(--accent-yellow) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
    transition: all 0.3s ease !important;
}


/* Light Mode Footer Button Hover Effects */

[data-theme="light"] .footer .btn:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)) !important;
    color: #ffffff !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .footer .btn-outline:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)) !important;
    color: #ffffff !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}


/* Force Button Hover Effects with Maximum Specificity */

html[data-theme="light"] .footer .btn:hover,
html[data-theme="light"] .footer .btn-outline:hover,
html[data-theme="light"] .footer .btn-primary:hover,
html[data-theme="light"] .footer .btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)) !important;
    color: #ffffff !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}

body[data-theme="light"] .footer .btn:hover,
body[data-theme="light"] .footer .btn-outline:hover,
body[data-theme="light"] .footer .btn-primary:hover,
body[data-theme="light"] .footer .btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow)) !important;
    color: #ffffff !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    transform: translateY(-2px) !important;
    transition: all 0.3s ease !important;
}


/* Light Mode Footer Icon Hover Effects */

[data-theme="light"] .footer .contact-icon:hover,
[data-theme="light"] .footer .contact-icon:hover i {
    color: var(--accent-red) !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
    transform: scale(1.1) !important;
    transition: all 0.3s ease !important;
}


/* Light Mode Footer Text Hover Effects */

[data-theme="light"] .footer .contact-item-enhanced:hover span,
[data-theme="light"] .footer .contact-info-enhanced:hover span {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.4) !important;
    transition: all 0.3s ease !important;
}


/* Light Mode Footer Section Title Hover Effects */

[data-theme="light"] .footer .footer-section h4:hover,
[data-theme="light"] .footer .footer-section h3:hover {
    color: var(--accent-yellow) !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
    transition: all 0.3s ease !important;
}


/* Force Hover Effects with Maximum Specificity */

html[data-theme="light"] .footer a:hover,
html[data-theme="light"] .footer .footer-link:hover,
html[data-theme="light"] .footer .social-link:hover,
html[data-theme="light"] .footer .contact-link:hover,
html[data-theme="light"] .footer .contact-url:hover,
html[data-theme="light"] .footer .contact-info a:hover,
html[data-theme="light"] .footer .footer-links a:hover,
html[data-theme="light"] .footer .footer-social a:hover {
    color: var(--accent-red) !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    transition: all 0.3s ease !important;
}

body[data-theme="light"] .footer a:hover,
body[data-theme="light"] .footer .footer-link:hover,
body[data-theme="light"] .footer .social-link:hover,
body[data-theme="light"] .footer .contact-link:hover,
body[data-theme="light"] .footer .contact-url:hover,
body[data-theme="light"] .footer .contact-info a:hover,
body[data-theme="light"] .footer .footer-links a:hover,
body[data-theme="light"] .footer .footer-social a:hover {
    color: var(--accent-red) !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    transition: all 0.3s ease !important;
}


/* Force Hover Effects for Enhanced Elements */

html[data-theme="light"] .footer .footer-links-enhanced a:hover,
html[data-theme="light"] .footer .footer-social-enhanced a:hover,
html[data-theme="light"] .footer .contact-info-enhanced a:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.5) !important;
    transition: all 0.3s ease !important;
}

body[data-theme="light"] .footer .footer-links-enhanced a:hover,
body[data-theme="light"] .footer .footer-social-enhanced a:hover,
body[data-theme="light"] .footer .contact-info-enhanced a:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.5) !important;
    transition: all 0.3s ease !important;
}


/* Light Mode Footer Contact Info - Force Black Text */

[data-theme="light"] .footer .contact-info-enhanced span {
    color: #000000 !important;
    font-weight: 500 !important;
}

[data-theme="light"] .footer .contact-item-enhanced span {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Light Mode Footer Contact Address */

[data-theme="light"] .footer .contact-item-enhanced span:first-of-type {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Light Mode Footer Contact Phone Numbers */

[data-theme="light"] .footer .contact-item-enhanced span:nth-of-type(2),
[data-theme="light"] .footer .contact-item-enhanced span:nth-of-type(3) {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Light Mode Footer Contact Email */

[data-theme="light"] .footer .contact-item-enhanced span:last-of-type {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Light Mode Footer Contact Info - All Text Elements */

[data-theme="light"] .footer .contact-info-enhanced br+span,
[data-theme="light"] .footer .contact-item-enhanced br+span {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for All Footer Contact Elements */

[data-theme="light"] .footer .contact-info-enhanced,
[data-theme="light"] .footer .contact-info-enhanced *,
[data-theme="light"] .footer .contact-item-enhanced,
[data-theme="light"] .footer .contact-item-enhanced * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for Specific Contact Info */

[data-theme="light"] .footer .contact-info-enhanced span,
[data-theme="light"] .footer .contact-item-enhanced span,
[data-theme="light"] .footer .contact-info-enhanced div,
[data-theme="light"] .footer .contact-item-enhanced div,
[data-theme="light"] .footer .contact-info-enhanced p,
[data-theme="light"] .footer .contact-item-enhanced p {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for Contact Icons */

[data-theme="light"] .footer .contact-icon,
[data-theme="light"] .footer .contact-icon *,
[data-theme="light"] .footer .contact-icon i {
    color: #000000 !important;
}


/* Force Black Text for All Footer Text */

[data-theme="light"] .footer,
[data-theme="light"] .footer *,
[data-theme="light"] .footer span,
[data-theme="light"] .footer div,
[data-theme="light"] .footer p {
    color: #000000 !important;
}


/* Force Black Text for All Footer Spans - More Specific */

[data-theme="light"] .footer span,
[data-theme="light"] .footer .footer-content span,
[data-theme="light"] .footer .footer-section span,
[data-theme="light"] .footer .footer-links span,
[data-theme="light"] .footer .footer-social span,
[data-theme="light"] .footer .footer-bottom span,
[data-theme="light"] .footer .contact-info span,
[data-theme="light"] .footer .contact-item span,
[data-theme="light"] .footer .contact-info-enhanced span,
[data-theme="light"] .footer .contact-item-enhanced span {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for Footer Spans with Higher Specificity */

[data-theme="light"] .footer .footer-content * span,
[data-theme="light"] .footer .footer-section * span,
[data-theme="light"] .footer .footer-links * span,
[data-theme="light"] .footer .footer-social * span,
[data-theme="light"] .footer .footer-bottom * span,
[data-theme="light"] .footer .contact-info * span,
[data-theme="light"] .footer .contact-item * span,
[data-theme="light"] .footer .contact-info-enhanced * span,
[data-theme="light"] .footer .contact-item-enhanced * span {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for All Footer Elements - Maximum Specificity */

[data-theme="light"] .footer * span,
[data-theme="light"] .footer * div,
[data-theme="light"] .footer * p,
[data-theme="light"] .footer * a,
[data-theme="light"] .footer * h1,
[data-theme="light"] .footer * h2,
[data-theme="light"] .footer * h3,
[data-theme="light"] .footer * h4,
[data-theme="light"] .footer * h5,
[data-theme="light"] .footer * h6 {
    color: #000000 !important;
}


/* Force Black Text for ALL Footer Elements - Ultimate Override */

[data-theme="light"] .footer,
[data-theme="light"] .footer *,
[data-theme="light"] .footer * *,
[data-theme="light"] .footer * * *,
[data-theme="light"] .footer * * * * {
    color: #000000 !important;
}


/* Force Black Text for Footer Content */

[data-theme="light"] .footer .footer-content,
[data-theme="light"] .footer .footer-content *,
[data-theme="light"] .footer .footer-content * * {
    color: #000000 !important;
}


/* Force Black Text for Footer Sections */

[data-theme="light"] .footer .footer-section,
[data-theme="light"] .footer .footer-section *,
[data-theme="light"] .footer .footer-section * * {
    color: #000000 !important;
}


/* Force Black Text for Footer Links */

[data-theme="light"] .footer .footer-links,
[data-theme="light"] .footer .footer-links *,
[data-theme="light"] .footer .footer-links * * {
    color: #000000 !important;
}


/* Force Black Text for Footer Social */

[data-theme="light"] .footer .footer-social,
[data-theme="light"] .footer .footer-social *,
[data-theme="light"] .footer .footer-social * * {
    color: #000000 !important;
}


/* Force Black Text for Footer Bottom */

[data-theme="light"] .footer .footer-bottom,
[data-theme="light"] .footer .footer-bottom *,
[data-theme="light"] .footer .footer-bottom * * {
    color: #000000 !important;
}


/* Force Black Text for Contact Info */

[data-theme="light"] .footer .contact-info,
[data-theme="light"] .footer .contact-info *,
[data-theme="light"] .footer .contact-info * * {
    color: #000000 !important;
}


/* Force Black Text for Contact Items */

[data-theme="light"] .footer .contact-item,
[data-theme="light"] .footer .contact-item *,
[data-theme="light"] .footer .contact-item * * {
    color: #000000 !important;
}


/* Force Black Text for Enhanced Contact Info */

[data-theme="light"] .footer .contact-info-enhanced,
[data-theme="light"] .footer .contact-info-enhanced *,
[data-theme="light"] .footer .contact-info-enhanced * * {
    color: #000000 !important;
}


/* Force Black Text for Enhanced Contact Items */

[data-theme="light"] .footer .contact-item-enhanced,
[data-theme="light"] .footer .contact-item-enhanced *,
[data-theme="light"] .footer .contact-item-enhanced * * {
    color: #000000 !important;
}


/* Force Black Text for All Footer Text Elements */

[data-theme="light"] .footer span,
[data-theme="light"] .footer div,
[data-theme="light"] .footer p,
[data-theme="light"] .footer a,
[data-theme="light"] .footer h1,
[data-theme="light"] .footer h2,
[data-theme="light"] .footer h3,
[data-theme="light"] .footer h4,
[data-theme="light"] .footer h5,
[data-theme="light"] .footer h6,
[data-theme="light"] .footer strong,
[data-theme="light"] .footer em,
[data-theme="light"] .footer b,
[data-theme="light"] .footer i,
[data-theme="light"] .footer small,
[data-theme="light"] .footer label,
[data-theme="light"] .footer li,
[data-theme="light"] .footer ul,
[data-theme="light"] .footer ol {
    color: #000000 !important;
}


/* Force Black Text for Footer - Ultimate Override */

[data-theme="light"] .footer,
[data-theme="light"] .footer *,
[data-theme="light"] .footer * *,
[data-theme="light"] .footer * * *,
[data-theme="light"] .footer * * * *,
[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for Footer - Maximum Specificity */

html[data-theme="light"] .footer,
html[data-theme="light"] .footer *,
html[data-theme="light"] .footer * *,
html[data-theme="light"] .footer * * *,
html[data-theme="light"] .footer * * * *,
html[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}


/* Force Black Text for Footer - Body Specificity */

body[data-theme="light"] .footer,
body[data-theme="light"] .footer *,
body[data-theme="light"] .footer * *,
body[data-theme="light"] .footer * * *,
body[data-theme="light"] .footer * * * *,
body[data-theme="light"] .footer * * * * * {
    color: #000000 !important;
    font-weight: 500 !important;
}

.footer-link-hover::before {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.footer-link-hover:hover {
    color: var(--accent-red);
    padding-right: 2rem;
}

.footer-link-hover:hover::before {
    opacity: 1;
    right: -0.5rem;
}


/* Contact Info */

.contact-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-enhanced span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}


/* Footer Bottom */

.footer-bottom-enhanced {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-content strong {
    color: var(--accent-red);
    font-weight: 700;
}

.footer-animation-line {
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    animation: footerLineAnimation 3s ease-in-out infinite alternate;
}

@keyframes footerLineAnimation {
    from {
        width: 0%;
        margin: 0 auto;
    }
    to {
        width: 100%;
        margin: 0;
    }
}


/* Floating Action Button */

.floating-action-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.floating-action-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-action-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

.fab-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


/* تحسينات إضافية للـ Responsive */


/* 1. تأكد أن الـ .main-container تتحول إلى عمود واحد على الشاشات الصغيرة جداً */

@media (max-width: 991px) {
    .main-container {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        padding: 1rem !important;
    }
    .sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        order: 2;
    }
    .main-content {
        order: 1;
        width: 100% !important;
    }
}


/* 2. تأكد أن كل grid للكتب أو أي عناصر أخرى لا تخرج عن الشاشة */

.books-grid,
#booksGrid,
.booksGrid {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}


/* 3. الصور داخل البطاقات دائماً مرنة */

.book-image img,
.publisher-logo,
img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* 4. شريط التنقل دائماً بعرض الشاشة ولا يخرج عن الحدود */

.navbar,
.topbar,
.header,
.nav-menu {
    width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}


/* 5. اجعل الـ .publishers-logos تتحول إلى سكرول أفقي على الموبايل */

@media (max-width: 767px) {
    .publishers-logos {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 1rem !important;
        padding-bottom: 1rem !important;
        justify-content: flex-start !important;
    }
    .publisher-logo {
        min-width: 80px !important;
        height: 50px !important;
    }
}


/* 6. اجعل كل العناصر التي تستخدم flex أو grid لا تخرج عن الشاشة */

.section-header,
.section-controls,
.hero-tags,
.hero-cta,
.stats-container,
.footer-content {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
}


/* 7. إصلاح مشكلة overflow في body */

body,
html {
    overflow-x: hidden !important;
}


/* 8. إصلاح أي عنصر فيه min-width كبير أو width ثابت */

[class*="container"],
[class*="content"],
[class*="section"],
[class*="grid"],
[class*="sidebar"] {
    min-width: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}


/* 9. تصغير حجم الخطوط تلقائياً على الشاشات الصغيرة جداً */

@media (max-width: 400px) {
    html {
        font-size: 13px !important;
    }
}


/* 10. إصلاح الـ sticky للـ topbar/النافبار */

.topbar,
.navbar,
.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: var(--glass-bg, rgba(30, 30, 30, 0.85)) !important;
    backdrop-filter: blur(8px) !important;
}


/* 11. إصلاح الـ .main-content إذا كان فيه flex */

@media (max-width: 991px) {
    .main-content {
        flex-direction: column !important;
        gap: 1.2rem !important;
    }
}


/* ===== DARK/LIGHT MODE TOGGLE BUTTON ===== */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.theme-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.theme-toggle-icon.sun {
    display: none;
}

.theme-toggle-icon.moon {
    display: flex;
}

[data-theme="light"] .theme-toggle-icon.sun {
    display: flex;
}

[data-theme="light"] .theme-toggle-icon.moon {
    display: none;
}


/* Light Mode Toggle Button */

[data-theme="light"] .theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .theme-toggle-icon {
    color: var(--accent-red);
}