/* 
 * Yaghi AI Assistant - Theme Components
 * Contains styles for theme-related UI components 
 */

/* Theme Indicator (small icon showing current theme) */
.theme-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--theme-transition);
}

.theme-indicator:hover {
    background-color: rgba(var(--primary-color-rgb), 0.15);
}

.theme-indicator-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--primary-color), var(--accent-color));
    box-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.3);
}

/* Theme mood selector component */
.theme-mood-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.time-based-themes, .mood-based-themes {
    margin-bottom: 24px;
}

.theme-selector-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.theme-selector-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.theme-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-option {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theme-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.theme-option.active {
    outline: 3px solid var(--primary-color);
}

.theme-option-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    z-index: 1;
}

.theme-option-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

/* Time-based theme backgrounds */
.theme-option[data-theme="morning"] {
    background: linear-gradient(135deg, #4a90e2, #d4e5f7);
}

.theme-option[data-theme="afternoon"] {
    background: linear-gradient(135deg, #2b90d9, #a2d5fa);
}

.theme-option[data-theme="evening"] {
    background: linear-gradient(135deg, #8e5ff5, #d1c2ff);
}

.theme-option[data-theme="night"] {
    background: linear-gradient(135deg, #6366f1, #1e1e2e);
}

/* Mood-based theme backgrounds */
.theme-option[data-theme="happy"] {
    background: linear-gradient(135deg, #ff9500, #ffcc80);
}

.theme-option[data-theme="calm"] {
    background: linear-gradient(135deg, #5ac8fa, #b7e9ff);
}

.theme-option[data-theme="focused"] {
    background: linear-gradient(135deg, #007bff, #99caff);
}

.theme-option[data-theme="tired"] {
    background: linear-gradient(135deg, #8e8cd8, #d4d3f5);
}

/* Auto theme option */
.theme-option[data-theme="auto"] {
    background: radial-gradient(circle at 30% 30%, #fff, transparent),
                linear-gradient(45deg, #4a90e2 0%, #2b90d9 25%, #8e5ff5 50%, #6366f1 75%, #4a90e2 100%);
}

/* Night mode specific adjustments */
.theme-night {
    & .card, 
    & .dashboard-card,
    & .auth-card {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    
    & input, 
    & textarea, 
    & select {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: var(--border-color);
        color: var(--text-color);
        
        &::placeholder {
            color: rgba(var(--text-light-rgb), 0.7);
        }
    }
    
    & .theme-indicator {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Reset link */
.theme-reset-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.theme-reset-link:hover {
    text-decoration: underline;
}