/* ============================================
   HEYBA INSIDERS - Theme System (Premium)
   نظام الثيمات واللغات
   ============================================ */

/* ========== THEME VARIABLES ========== */
[data-theme="dark"] {
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-quaternary: #475569;
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    /* Borders */
    --border-color: #334155;
    --border-color-hover: #475569;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    
    /* Colors */
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-primary-light: #60a5fa;
    --color-secondary: #8b5cf6;
}

/* ========== RTL SUPPORT ========== */
html[lang="ar"], [data-lang="ar"] {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Noto Naskh Arabic', sans-serif;
}

html[lang="ar"] .sidebar-nav a:hover,
[data-lang="ar"] .sidebar-nav a:hover {
    transform: translateX(-4px);
}

html[lang="ar"] .card-3d:hover .card-inner,
[data-lang="ar"] .card-3d:hover .card-inner {
    transform: rotateY(-8deg) rotateX(4deg);
}

html[lang="en"], [data-lang="en"] {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 20px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.theme-toggle i,
.theme-toggle .icon {
    transition: transform var(--transition-normal);
}

.theme-toggle:hover i,
.theme-toggle:hover .icon {
    transform: rotate(45deg);
}

/* ========== LANGUAGE TOGGLE ========== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-primary);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 16px;
        font-size: 16px;
    }
}