/* Desktop Theme Selector - Top Right Corner */
.theme-selector-desktop {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: block;
}

@media (max-width: 768px) {
    .theme-selector-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .theme-selector-mobile {
        display: none !important;
    }
}

.theme-toggle-desktop {
    background: var(--bg-panel-base);
    border: var(--border-width-thin) solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: var(--shadow-box);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.theme-toggle-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.theme-icon {
    font-size: 1.2rem;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-panel-base);
    border: var(--border-width-thin) solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--shadow-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.theme-selector-desktop:hover .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-title {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.theme-options-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.theme-option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 12px 8px;
    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::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all var(--transition-fast);
}

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

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

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

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

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

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

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

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

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

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

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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