/**
 * Currency Selector Styles
 * Matching original Kemet design
 */

/* Currency Toggle Button */
.currency-selector-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.currency-toggle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 242, 0.95) 100%) !important;
    border: 2px solid rgba(139, 115, 85, 0.3) !important;
    border-radius: 15px !important;
    padding: 0.75rem 1rem !important;
    color: #3a4532 !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer;
    min-width: 150px !important;
    height: 48px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.currency-toggle:hover {
    background: linear-gradient(135deg, #8b7355 0%, #3a4532 100%) !important;
    color: white !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(58, 69, 50, 0.4) !important;
    border-color: #8b7355 !important;
}

.currency-toggle .currency-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.currency-toggle .currency-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.currency-toggle .flaticon-down-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.currency-selector-wrapper.active .currency-toggle .flaticon-down-arrow {
    transform: rotate(180deg);
}

/* Currency Menu Dropdown */
.kemet-currency-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999998;
    pointer-events: none;
    display: none;
}

.kemet-currency-menu-content.active {
    display: block;
}

.kemet-currency-menu-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.kemet-currency-menu-content.active::before {
    opacity: 1;
}

.currency-menu-content {
    position: absolute;
    top: 80px;
    right: 10%;
    width: 450px;
    max-width: 90vw;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    z-index: 999999;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.kemet-currency-menu-content.active .currency-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 40px;
}

/* Currency Menu Header */
.currency-menu-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1e6db;
}

.currency-menu-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A4532;
    margin: 0 0 0.5rem 0;
}

.currency-menu-subtitle {
    color: #707070;
    font-size: 0.95rem;
    margin: 0;
}

/* Currency Options Grid */
.currency-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    background: rgba(248, 245, 242, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.currency-option:hover {
    background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
    border-color: #8b7355;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.currency-option.active {
    background: linear-gradient(135deg, #3A4532 0%, #c8906b 100%);
    border-color: #3A4532;
    box-shadow: 0 4px 15px rgba(58, 69, 50, 0.3);
}

.currency-option.active .currency-country,
.currency-option.active .currency-symbol {
    color: white !important;
}

.currency-option.active .currency-check {
    opacity: 1;
    transform: scale(1);
}

/* Currency Flag */
.currency-flag-large {
    font-size: 2.5rem;
    line-height: 1;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Currency Details */
.currency-details {
    flex: 1;
}

.currency-country {
    font-weight: 700;
    font-size: 1.1rem;
    color: #3A4532;
    margin: 0 0 0.25rem 0;
    font-family: 'Poppins', sans-serif;
}

.currency-symbol {
    font-size: 0.9rem;
    color: #8b7355;
    margin: 0;
}

/* Currency Check Mark */
.currency-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f4d03f;
    color: #3A4532;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .currency-toggle {
        min-width: 130px !important;
        height: 44px !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .currency-menu-content {
        right: 5%;
        width: 350px;
        padding: 1.5rem;
    }
    
    .currency-flag-large {
        font-size: 2rem;
    }
    
    .currency-country {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .currency-toggle {
        min-width: 110px !important;
        height: 42px !important;
        padding: 0.5rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .currency-toggle .currency-text {
        font-size: 0.8rem;
    }
    
    .currency-menu-content {
        right: 2%;
        width: 96%;
        padding: 1.25rem;
    }
    
    .currency-menu-title {
        font-size: 1.25rem;
    }
    
    .currency-option {
        padding: 0.875rem;
    }
    
    .currency-flag-large {
        font-size: 1.75rem;
        margin-right: 0.75rem;
    }
}

/* Animation for currency switch */
@keyframes currencyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.currency-option.active .currency-flag-large {
    animation: currencyPulse 0.5s ease;
}

