/* Mobile Theme Selector - Inside Hamburger Menu */
.theme-selector-mobile {
    width: 100%;
    margin-top: var(--spacing-sm);
}

@media (max-width: 768px) {
    .theme-selector-mobile {
        display: block;
    }

    .theme-selector-desktop {
        display: none !important;
    }
}

.theme-toggle-mobile {
    width: 100%;
    background: var(--bg-light);
    border: var(--border-width-thin) solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.theme-toggle-mobile:hover {
    background: var(--bg-panel-base);
}

.theme-toggle-mobile:active {
    transform: scale(0.98);
}

.theme-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-icon {
    font-size: 1.1rem;
}

.theme-toggle-text {
    font-size: 0.9rem;
}

.theme-toggle-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.theme-options-grid.theme-options-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.theme-options-collapsed ~ .theme-toggle-mobile .theme-toggle-arrow {
    transform: rotate(-90deg);
}

.theme-option-mobile {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 10px 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.theme-option-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: all var(--transition-fast);
}

.theme-option-mobile[data-theme="comic"]::before {
    background: linear-gradient(90deg, #e38528, #f5a75e);
}

.theme-option-mobile[data-theme="dark"]::before {
    background: linear-gradient(90deg, #ff9f43, #ff7f11);
}

.theme-option-mobile[data-theme="elegant"]::before {
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

.theme-option-mobile[data-theme="pastel"]::before {
    background: linear-gradient(90deg, #ff9aa2, #ffb7b2);
}

.theme-option-mobile[data-theme="ocean"]::before {
    background: linear-gradient(90deg, #2a9d8f, #3dbeaa);
}

.theme-option-mobile[data-theme="sunset"]::before {
    background: linear-gradient(90deg, #e94560, #ff6b9d);
}

.theme-option-mobile[data-theme="forest"]::before {
    background: linear-gradient(90deg, #6a994e, #a7c957);
}

.theme-option-mobile[data-theme="retro"]::before {
    background: linear-gradient(90deg, #f2a365, #f2cc8f);
}

.theme-option-mobile[data-theme="cyberpunk"]::before {
    background: linear-gradient(90deg, #0ff, #f0f);
}

.theme-option-mobile[data-theme="mint"]::before {
    background: linear-gradient(90deg, #52d4c4, #7ee8d8);
}

.theme-option-mobile:active {
    transform: scale(0.95);
}

.theme-option-mobile.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(227, 133, 40, 0.3);
    font-weight: var(--font-weight-bold);
}

.theme-option-mobile.active::before {
    height: 5px;
}

.theme-preview-mobile {
    width: 100%;
    height: 35px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--border-color);
}

.theme-option-mobile[data-theme="comic"] .theme-preview-mobile {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.theme-option-mobile[data-theme="dark"] .theme-preview-mobile {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.theme-option-mobile[data-theme="elegant"] .theme-preview-mobile {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

.theme-option-mobile[data-theme="pastel"] .theme-preview-mobile {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8d6 100%);
}

.theme-option-mobile[data-theme="ocean"] .theme-preview-mobile {
    background: linear-gradient(135deg, #a8e6cf 0%, #3dbeaa 50%, #1a4d6d 100%);
}

.theme-option-mobile[data-theme="sunset"] .theme-preview-mobile {
    background: linear-gradient(135deg, #ff6b9d 0%, #e94560 50%, #5c3c92 100%);
}

.theme-option-mobile[data-theme="forest"] .theme-preview-mobile {
    background: linear-gradient(135deg, #a7c957 0%, #6a994e 50%, #2d4a2b 100%);
}

.theme-option-mobile[data-theme="retro"] .theme-preview-mobile {
    background: linear-gradient(135deg, #f2cc8f 0%, #f2a365 50%, #d4756d 100%);
}

.theme-option-mobile[data-theme="cyberpunk"] .theme-preview-mobile {
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #16213e 100%);
}

.theme-option-mobile[data-theme="mint"] .theme-preview-mobile {
    background: linear-gradient(135deg, #e8f8f5 0%, #b8f3e8 50%, #52d4c4 100%);
}

.theme-name-mobile {
    display: block;
    font-size: 0.8rem;
}
