/* Currency Selector Styles */

.currency-selector-wrapper {
    max-width: 700px;
    margin: 30px auto 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg, rgba(30, 30, 30, 0.5));
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.currency-selector:hover {
    border-color: rgba(167, 243, 0, 0.2);
    background: var(--card-hover, rgba(40, 40, 40, 0.7));
}

.currency-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary, #fff);
    font-weight: 600;
    font-size: 0.95em;
    margin: 0;
    cursor: pointer;
}

.currency-selector label i {
    color: var(--primary-color, #a7f300);
    font-size: 1.1em;
}

.currency-selector select {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    min-width: 220px;
}

.currency-selector select:hover {
    border-color: rgba(167, 243, 0, 0.3);
    background: var(--bg-secondary, rgba(255, 255, 255, 0.08));
}

.currency-selector select:focus {
    border-color: var(--primary-color, #a7f300);
    box-shadow: 0 0 0 3px rgba(167, 243, 0, 0.1);
}

/* Style select options (limited browser support) */
.currency-selector select option {
    background: var(--bg-primary, #1a1a1a);
    color: var(--text-primary, #fff);
    padding: 10px;
}

/* Currency Notice */
.currency-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(167, 243, 0, 0.08);
    border: 1px solid rgba(167, 243, 0, 0.15);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85em;
    color: var(--text-secondary, #bbb);
    backdrop-filter: blur(10px);
}

.currency-notice i {
    color: var(--primary-color, #a7f300);
    font-size: 1em;
    flex-shrink: 0;
}

/* Price Animation */
.price {
    transition: all 0.3s ease;
}

.price.updating {
    opacity: 0.6;
    transform: scale(0.95);
}

/* RTL Support */
[dir="rtl"] .currency-selector {
    flex-direction: row-reverse;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .currency-selector-wrapper {
        margin: 25px 16px 40px;
        gap: 12px;
    }
    
    .currency-selector {
        flex-direction: column;
        width: 100%;
        padding: 16px 20px;
        gap: 10px;
    }
    
    .currency-selector label {
        width: 100%;
        justify-content: center;
    }
    
    .currency-selector select {
        width: 100%;
        text-align: center;
        min-width: auto;
    }
    
    .currency-notice {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.8em;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .currency-selector {
        padding: 14px 16px;
    }
    
    .currency-selector label {
        font-size: 0.9em;
    }
    
    .currency-selector select {
        font-size: 0.9em;
        padding: 9px 14px;
    }
    
    .currency-notice {
        font-size: 0.75em;
        padding: 8px 14px;
    }
}

/* Light Theme Adjustments */
[data-theme="light"] .currency-selector {
    background: var(--card-bg, rgba(255, 255, 255, 0.8));
    border-color: var(--border-color, rgba(0, 0, 0, 0.08));
}

[data-theme="light"] .currency-selector:hover {
    background: var(--card-hover, rgba(255, 255, 255, 0.95));
    border-color: rgba(167, 243, 0, 0.3);
}

[data-theme="light"] .currency-selector select {
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.03));
    color: var(--text-primary, #1a1a1a);
    border-color: var(--border-color, rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .currency-selector select:hover {
    background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
    border-color: rgba(167, 243, 0, 0.4);
}

[data-theme="light"] .currency-selector select option {
    background: #ffffff;
    color: #1a1a1a;
}

[data-theme="light"] .currency-notice {
    background: rgba(167, 243, 0, 0.1);
    border-color: rgba(167, 243, 0, 0.25);
    color: var(--text-secondary, #666);
}

