/* Theme Styles */

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-right: 10px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: var(--color-secondary);
    border-radius: 15px;
    font-size: 0.9em;
}

.streak-icon {
    color: var(--color-accent);
}

.streak-count {
    font-weight: bold;
    color: var(--color-primary);
}

/* Theme Modal */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.theme-modal.show {
    opacity: 1;
}

.theme-modal-content {
    background: var(--color-background);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.theme-modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}

.theme-modal h2 {
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Theme Grid */
.theme-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    flex-wrap: nowrap;
}

.theme-option {
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 0 1 auto;
    min-width: 120px;
}

.theme-option:hover {
    transform: translateY(-2px);
}

.theme-option.active .theme-preview {
    border: 2px solid var(--color-accent);
}

.theme-preview {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.theme-name {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
}

.theme-colors {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.theme-colors span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Theme Variables */
:root {
    /* Classic Theme (Default) */
    --color-primary: #a8d8ea;
    --color-secondary: #f2e9e1;
    --color-text: #5c544d;
    --color-background: #ffffff;
    --color-accent: #94c5d6;
    --color-success: #4caf50;
    --color-error: #ff4d4f;
    --color-border: #dcd0c0;
    
    --font-primary: Arial, sans-serif;
    --font-secondary: Georgia, serif;
}

/* Theme-specific styles */
.theme-classic {
    --color-primary: #a8d8ea;
    --color-secondary: #f2e9e1;
    --color-text: #5c544d;
    --color-background: #ffffff;
    --color-accent: #94c5d6;
    --color-success: #4caf50;
    --color-error: #ff4d4f;
    --color-border: #dcd0c0;
}

.theme-light {
    --color-primary: #4a90e2;
    --color-secondary: #f5f5f5;
    --color-text: #333333;
    --color-background: #ffffff;
    --color-accent: #e74c3c;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --color-border: #dddddd;
}

.theme-dark {
    --color-primary: #64b5f6;
    --color-secondary: #424242;
    --color-text: #ffffff;
    --color-background: #121212;
    --color-accent: #ff5252;
    --color-success: #4caf50;
    --color-error: #f44336;
    --color-border: #333333;
}

.theme-nature {
    --color-primary: #2e7d32;
    --color-secondary: #e8f5e9;
    --color-text: #1b5e20;
    --color-background: #f1f8e9;
    --color-accent: #ff6f00;
    --color-success: #43a047;
    --color-error: #d32f2f;
    --color-border: #a5d6a7;
}

.theme-sunset {
    --color-primary: #ff7043;
    --color-secondary: #fff3e0;
    --color-text: #bf360c;
    --color-background: #fff8e1;
    --color-accent: #ff6f00;
    --color-success: #ff8f00;
    --color-error: #d84315;
    --color-border: #ffcc80;
}

/* Theme Switcher Button */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    z-index: 100;
}

.theme-switcher:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 480px) {
    .theme-modal-content {
        width: 95%;
        padding: 15px;
    }

    .theme-grid {
        gap: 8px;
        padding: 5px;
    }

    .theme-option {
        min-width: 90px;
    }

    .theme-preview {
        padding: 8px;
    }

    .theme-name {
        font-size: 0.8em;
        margin-bottom: 6px;
    }

    .theme-colors span {
        width: 12px;
        height: 12px;
    }

    .theme-switcher {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
} 