/* === Mood Calendar Styles === */

.mood-calendar-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px;
    width: 460px;
    height: 690px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mood-calendar-header {
    text-align: center;
    margin-bottom: 12px;
}

.mood-calendar-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin: 0 0 6px;
}

.mood-calendar-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mood-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 140, 0, 0.4));
    border-radius: 18px;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.mood-streak-icon {
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.mood-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 8px;
}

.mood-calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.mood-calendar-current-month {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.mood-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.mood-calendar-weekday {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    padding: 6px;
}

.mood-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.mood-calendar-day {
    min-height: 58px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    padding: 6px 2px;
}

.mood-calendar-day:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.mood-calendar-day.empty {
    background: transparent;
    cursor: default;
}

.mood-calendar-day.today {
    border: 2px solid rgba(255, 105, 180, 0.8);
}

.mood-calendar-day-number {
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 1;
    line-height: 1.1;
}

.mood-calendar-day-mood {
    font-size: 20px;
    margin-top: 1px;
    z-index: 1;
    line-height: 1;
}

.mood-calendar-day.with-mood {
    background: transparent;
}

.mood-calendar-day.with-mood::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0.35;
}

.mood-calendar-day.mood-happy::before { background: linear-gradient(135deg, #FFD700, #FFA500); }
.mood-calendar-day.mood-excited::before { background: linear-gradient(135deg, #FF6B6B, #FF4757); }
.mood-calendar-day.mood-love::before { background: linear-gradient(135deg, #FF69B4, #FF1493); }
.mood-calendar-day.mood-calm::before { background: linear-gradient(135deg, #74B9FF, #0984E3); }
.mood-calendar-day.mood-tired::before { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }
.mood-calendar-day.mood-sad::before { background: linear-gradient(135deg, #636E72, #2D3436); }
.mood-calendar-day.mood-angry::before { background: linear-gradient(135deg, #E17055, #D63031); }
.mood-calendar-day.mood-surprised::before { background: linear-gradient(135deg, #FDCB6E, #F39C12); }

/* Mood Selector Modal */
.mood-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.mood-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mood-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mood-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #2D3436;
    margin: 0;
}

.mood-modal-date {
    font-size: 14px;
    color: #636E72;
    margin-top: 4px;
}

.mood-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #636E72;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.mood-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mood-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.mood-option {
    aspect-ratio: 1;
    background: #F8F9FA;
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-option:hover {
    background: #E9ECEF;
    transform: scale(1.05);
}

.mood-option.selected {
    border-color: #FF69B4;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(255, 20, 147, 0.15));
}

.mood-option-emoji {
    font-size: 32px;
    margin-bottom: 6px;
}

.mood-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #2D3436;
}

.mood-note-container {
    margin-bottom: 20px;
}

.mood-note-label {
    font-size: 14px;
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 8px;
    display: block;
}

.mood-note-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #E9ECEF;
    border-radius: 16px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mood-note-input:focus {
    outline: none;
    border-color: #FF69B4;
}

.mood-modal-footer {
    display: flex;
    gap: 12px;
}

.mood-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mood-btn-cancel {
    background: #F8F9FA;
    color: #636E72;
}

.mood-btn-cancel:hover {
    background: #E9ECEF;
}

.mood-btn-save {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.mood-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.mood-btn-delete {
    background: #E17055;
    color: white;
}

.mood-btn-delete:hover {
    background: #D63031;
}

/* Mood Summary */
.mood-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mood-summary-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.mood-summary-emoji {
    font-size: 22px;
    margin-bottom: 4px;
}

.mood-summary-count {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.mood-summary-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* View Toggle */
.mood-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.mood-view-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
}

.mood-view-btn:hover {
    color: white;
}

.mood-view-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .mood-calendar-container {
        padding: 16px;
        margin: 12px;
    }

    .mood-calendar-title {
        font-size: 22px;
    }

    .mood-selector-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .mood-summary {
        grid-template-columns: repeat(4, 1fr);
    }

    .mood-calendar-day-number {
        font-size: 12px;
    }

    .mood-calendar-day-mood {
        font-size: 16px;
    }
}
