/* Theme Toggle Button Styles - Fixed for Home Page */
.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border: 2px solid transparent !important;
    color: #fff !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
    margin: 0 10px !important;
    position: relative !important;
    cursor: pointer !important;
    overflow: visible !important;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #495057, #343a40) !important;
    border-color: #aa8318 !important;
}

.theme-toggle-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(170, 131, 24, 0.5) !important;
}

/* Dark Mode Button Styling */
body.dark_mode .theme-toggle-btn {
    background: linear-gradient(135deg, #aa8318, #8a6a14) !important;
    color: #ffd700 !important;
    border-color: transparent !important;
}

body.dark_mode .theme-toggle-btn:hover {
    background: linear-gradient(135deg, #8a6a14, #6d5210) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 6px 15px rgba(170, 131, 24, 0.4) !important;
}

/* Ensure icon visibility - FIXED */
.theme-toggle-btn i {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* =========================================
   GLOBAL THEME OVERRIDES (Public Pages Only)
   تعليق عربي: تعريف متغيرات الألوان الذهبية والداكنة للثيم العام
   ========================================= */

:root {
    --wolf-gold: #d4af37;
    --wolf-gold-hover: #b89628;
    --wolf-bg: #0b0b0d;
    --wolf-surface: #121216;
    --wolf-surface-hover: #1c1c24;
    --wolf-text: #f5f5f5;
    --wolf-muted: #b8b8b8;
    --wolf-radius: 14px;
    --wolf-border: 1px solid rgba(212, 175, 55, 0.2);
    --wolf-shadow: 0 4px 20px rgba(0,0,0,0.4);
    
    /* Cart Styling Sync Tokens */
    --cart-bg: rgba(255, 255, 255, 0.025);
    --cart-border: rgba(212, 175, 55, 0.08);
    --cart-border-hover: rgba(212, 175, 55, 0.25);
    --cart-radius: 18px;
    --cart-shadow: 0 8px 32px rgba(0,0,0,0.45);

    /* Poster Aspect Ratio Tokens (Synced with Product Page) */
    --poster-w: 460px;
    --poster-h: 340px;
}

/* =========================================
    BOOTSTRAP OVERRIDES
    تعليق عربي: تجاوز أنماط البوتستراب الافتراضية لتتوافق مع الثيم
   ========================================= */

/* Buttons */
.btn-primary {
    background-color: var(--wolf-gold) !important;
    border-color: var(--wolf-gold) !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--wolf-gold-hover) !important;
    border-color: var(--wolf-gold-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-primary {
    color: var(--wolf-gold) !important;
    border-color: var(--wolf-gold) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: var(--wolf-gold) !important;
    color: #000 !important;
}

.btn-warning {
    background-color: var(--wolf-gold) !important;
    border-color: var(--wolf-gold) !important;
    color: #000 !important;
}

/* Cards */
.card {
    background-color: var(--wolf-surface) !important;
    border: var(--wolf-border) !important;
    border-radius: var(--wolf-radius) !important;
    box-shadow: var(--wolf-shadow) !important;
}

.card-body {
    color: var(--wolf-text) !important;
}

.card-header, .card-footer {
    background-color: rgba(0,0,0,0.2) !important;
    border-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--wolf-gold) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--wolf-surface) !important;
    border: 1px solid var(--wolf-gold) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.dropdown-item {
    color: var(--wolf-text) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: var(--wolf-gold) !important;
}

/* Form Inputs */
.form-control, .form-select {
    background-color: #0a0a0c !important;
    border: 1px solid #333 !important;
    color: var(--wolf-text) !important;
    border-radius: 8px !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wolf-gold) !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
    background-color: #0a0a0c !important;
    color: var(--wolf-text) !important;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--wolf-gold) !important;
    color: #000 !important;
}
/* =========================================
    GLASSMORPHISM UTILITIES
    تعليق عربي: تعريف أنماط الزجاج (Glassmorphism) للعناصر العائمة
   ========================================= */

.section-glass {
    position: relative;
    z-index: 10;
    margin-top: -40px; /* Overlap with banner slightly if needed */
}

.glass-panel {
    background: rgba(18, 18, 22, 0.75); /* Darker trans for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15); /* Subtle Gold border */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.glass-panel--center {
    max-width: 1100px;
    margin: 20px auto;
}

/* Typography Inside Glass Panel */
.glass-panel h1, .glass-panel h2 {
    color: var(--wolf-gold) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 15px;
}

.glass-panel .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.glass-panel .breadcrumb-item a {
    color: #fff !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.glass-panel .breadcrumb-item a:hover {
    opacity: 1;
    color: var(--wolf-gold) !important;
}

/* Responsive Glass Panel */
@media (max-width: 768px) {
    .glass-panel {
        padding: 15px 20px;
        margin: 10px 15px;
        border-radius: 15px;
    }
    .glass-panel h1 {
        font-size: 1.4rem !important;
    }
    .section-glass {
        margin-top: -20px;
    }
}

/* Operator Chips in Product Cards */
.operators-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    width: 100%;
}
.operator-chip {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    color: var(--wolf-gold);
    font-size: 11px;
    padding: 4px 10px;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.2s ease;
}
.operator-chip:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--wolf-gold);
}
