/* Custom Currency Dropdown Styles */
.currency-dropdown {
    position: relative;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.currency-menu img {
    height: 14px;
    width: 21px;
}

.currency-dropdown-toggle {
    color: white;
    padding: 6px 0 6px 0;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.currency-dropdown-toggle::after {
    content: '▼';
    position: absolute;
    right: 16px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.currency-dropdown.open .currency-dropdown-toggle::after {
    transform: rotate(180deg);
}

.currency-flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.currency-code {
    font-weight: normal;
    font-family: 'GT Walsheim Pro', sans-serif;
    font-size: 14px;
}

.currency-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #121212;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 0 4px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 240px;
    max-height: 240px;
    overflow-y: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.currency-dropdown-menu::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
.currency-dropdown-menu {
    scrollbar-width: none;
}

/* Hide scrollbar for IE and Edge */
.currency-dropdown-menu {
    -ms-overflow-style: none;
}

.currency-dropdown.open .currency-dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s ease;
    color: white;
}

.currency-option:hover {
    background: #2a2a2a;
}

.currency-option.selected {
    background: #400c53;
}

.currency-option.selected:hover {
    background: #400c53;
}

.currency-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-name {
    font-size: 12px;
    font-weight: 500;
}

.currency-symbol {
    font-size: 12px;
    opacity: 0.7;
}

/* Hidden select for form compatibility */
#currency-toggle {
    display: none;
}

/* Hide mobile currency selector by default (desktop) */
.currency-menu-mobile {
    display: none;
}

.currency-menu-desktop {
    display: block;
}

@media (max-width: 1150px) {
    .currency-menu-mobile {
        display: block;
    }
    
    .currency-menu-desktop {
        display: none;
    }

    .minecraft-nav {
        margin-top: 40px;
    }

    .currency-menu {
        position: absolute;
    }
    .currency-dropdown-menu {
        left: 0;
        right: auto;
    }
}