/* Global Wire Multi-Theme & Translation Shared Styles */

:root {
    /* Default Light Mode */
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --online-green: #10B981;
    --online-glow: rgba(16, 185, 129, 0.25);
    --amber: #F59E0B;
    
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.85);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-subtle: #64748B;
    
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(79, 70, 229, 0.3);
    --shadow-soft: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --mockup-bg: #F1F5F9;
    --mockup-border: #E2E8F0;
    --bubble-in-bg: #E2E8F0;
    --bubble-in-text: #0F172A;
    --footer-bg: #0F172A;
    --footer-text: #94A3B8;
    --footer-title: #F8FAFC;
}

[data-theme="dark"] {
    /* Dark Mode */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4338CA;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --online-green: #10B981;
    --online-glow: rgba(16, 185, 129, 0.4);
    --amber: #FBBF24;
    
    --bg-main: #0B0F19;
    --bg-surface: #111827;
    --bg-surface-elevated: #1F2937;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --nav-bg: rgba(11, 15, 25, 0.85);
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.35);
    --shadow-soft: 0 12px 36px -8px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.2);
    --mockup-bg: #111827;
    --mockup-border: #1F2937;
    --bubble-in-bg: #1E293B;
    --bubble-in-text: #F1F5F9;
    --footer-bg: #070A10;
    --footer-text: #94A3B8;
    --footer-title: #F8FAFC;
}

/* RTL Specific Overrides */
[dir="rtl"] {
    text-align: right;
}

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

[dir="rtl"] .mock-online {
    right: auto;
    left: 0;
}

[dir="rtl"] .bubble-in {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
    align-self: flex-start;
}

[dir="rtl"] .bubble-out {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-end;
}

[dir="rtl"] .btn-primary span:last-child,
[dir="rtl"] .btn-secondary span:last-child {
    transform: scaleX(-1);
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

/* Theme Toggle Button & Controls in Navbar */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--border-glow);
    transform: scale(1.05);
}

/* Language Selector Dropdown */
.lang-selector-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-selector-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

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

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    padding: 8px;
    min-width: 170px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 4px;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-surface-elevated);
}

.lang-option.active {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
}

/* Google Translate Widget Custom Hide / Seamless Skinning */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
} 

body {
    top: 0px !important; 
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}
