/* ============================================
   Theme Switcher Styles
   ============================================ */

/* Theme Color Definitions - All Teal Variations */
:root {
    /* Ocean Teal (Original - Medium) */
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --secondary-color: #22d3ee;
    --highlight: #67e8f9;
}

/* Deep Ocean Teal (Darkest) */
[data-theme="deep-teal"] {
    --primary-color: #0d5763;
    --primary-dark: #083e47;
    --primary-light: #0e7490;
    --secondary-color: #0891b2;
    --highlight: #06b6d4;
}

/* Vibrant Teal (Brightest) */
[data-theme="vibrant-teal"] {
    --primary-color: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #2dd4bf;
    --secondary-color: #5eead4;
    --highlight: #99f6e4;
}

/* Turquoise (Light & Bright) */
[data-theme="turquoise"] {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --secondary-color: #67e8f9;
    --highlight: #a5f3fc;
}

/* Blue Teal (More Blue) */
[data-theme="blue-teal"] {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #0ea5e9;
    --secondary-color: #38bdf8;
    --highlight: #7dd3fc;
}

/* Green Teal (More Green) */
[data-theme="green-teal"] {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #2dd4bf;
    --highlight: #5eead4;
}

/* Aqua Teal (Lighter) */
[data-theme="aqua-teal"] {
    --primary-color: #22d3ee;
    --primary-dark: #06b6d4;
    --primary-light: #67e8f9;
    --secondary-color: #a5f3fc;
    --highlight: #cffafe;
}

/* Muted Teal (Desaturated) */
[data-theme="muted-teal"] {
    --primary-color: #0891b2;
    --primary-dark: #155e75;
    --primary-light: #22d3ee;
    --secondary-color: #67e8f9;
    --highlight: #a5f3fc;
}

/* Rich Teal (Deep & Saturated) */
[data-theme="rich-teal"] {
    --primary-color: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #0d9488;
    --secondary-color: #14b8a6;
    --highlight: #2dd4bf;
}

/* Theme Switcher Widget */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.theme-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.theme-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.theme-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    transform: scale(1.05);
    border-color: var(--text-gray);
}

.theme-option.active {
    border-color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-option span {
    display: block;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Theme Color Previews - All Teal Variations */
.theme-option[data-theme="ocean-teal"] {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.theme-option[data-theme="deep-teal"] {
    background: linear-gradient(135deg, #0d5763, #083e47);
}

.theme-option[data-theme="vibrant-teal"] {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.theme-option[data-theme="turquoise"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.theme-option[data-theme="blue-teal"] {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.theme-option[data-theme="green-teal"] {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.theme-option[data-theme="aqua-teal"] {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.theme-option[data-theme="muted-teal"] {
    background: linear-gradient(135deg, #0891b2, #155e75);
}

.theme-option[data-theme="rich-teal"] {
    background: linear-gradient(135deg, #0f766e, #115e59);
}

/* Theme labels */
.theme-label {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-weight: 600;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.theme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Smooth color transitions */
* {
    transition: background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 1rem;
        right: 1rem;
    }

    .theme-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .theme-panel {
        bottom: 70px;
        right: -50px;
        transform: translateX(50%);
        min-width: 260px;
    }

    .theme-panel.active {
        transform: translateX(50%) translateY(0);
    }
}
