/* Shared dropdown styles used by theme, language, and confetti selectors */

/* Base styles shared by all dropdown panel components */
.dropdown {
    position: fixed;
    background-color: var(--bg-secondary);
    border: 0px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 3000;
    min-width: 180px;
    max-width: 280px;
}

.dropdown.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm);
    gap: var(--space-xs);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-content::-webkit-scrollbar { width: 8px; }
.dropdown-content::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: var(--radius-sm); }
.dropdown-content::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: var(--radius-sm); }
.dropdown-content::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

.dropdown-option {
    background-color: transparent;
    border: 0px solid transparent;
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family-lang, var(--font-family));
    font-size: var(--font-size-sm);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-option:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-primary);
    color: var(--text-link);
}

.dropdown-option:active { background-color: var(--bg-tertiary); }
.dropdown-option:focus { outline: 2px solid var(--text-link); outline-offset: 2px; }

.dropdown-separator {
    height: 1px;
    background-color: var(--border-secondary);
    margin: var(--space-xs) 0;
}

/* Native-font language options — pinned to their own font, never override */
.language-option-en {
    font-family: 'Google Sans', system-ui, -apple-system, sans-serif !important;
}

.language-option-ja {
    font-family: 'Noto Sans JP', 'Google Sans', system-ui, -apple-system, sans-serif !important;
}

/* Language selector dropdown, positioned below the topbar */
.language-dropdown {
    top: calc(45px + var(--space-sm));
    right: var(--space-lg);
    transform: translateY(-8px);
}

.language-dropdown.active {
    transform: translateY(0);
}

/* Theme selector dropdown, positioned above the toggle button */
.theme-dropdown {
    bottom: calc(50px);
    left: 10px;
    transform: translateY(8px);
    min-width: 120px;
    border: 0px solid var(--border-primary) !important;
}

.theme-dropdown.active {
    transform: translateY(0);
}

/* Confetti type dropdown, positioned above the toggle button */
.confetti-dropdown {
    bottom: calc(50px);
    left: 10px;
    transform: translateY(8px);
    min-width: 120px;
    border: 0px solid var(--border-primary) !important;
}

.confetti-dropdown.active {
    transform: translateY(0);
}
