﻿/* ============================================
   MOOD TRACKER - Creative Design
   ============================================ */
.main-header {
    background: #4b0871;
}
:root {
    --mood-primary: #667eea;
    --mood-secondary: #764ba2;
    --mood-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --mood-success: #38ef7d;
    --mood-warning: #FF9800;
    --mood-danger: #f44336;
    --mood-soft-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    --mood-hover-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
}

/* ============ Floating Action Button ============ */
.mood-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--mood-gradient);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--mood-soft-shadow);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: fabFloat 3s ease-in-out infinite;
}

    .mood-fab:hover {
        transform: scale(1.1) rotate(-10deg);
        box-shadow: var(--mood-hover-shadow);
    }

.mood-fab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.mood-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--mood-primary);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes fabFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============ Modal ============ */
.mood-modal {
    border-radius: 30px;
    overflow: hidden;
    border: none;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}

.mood-modal-header {
    background: var(--mood-gradient);
    color: white;
    padding: 40px 30px 80px;
    position: relative;
    overflow: hidden;
}

.mood-modal-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.mood-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mood-modal-header p {
    opacity: 0.9;
    font-size: 15px;
}

.mood-modal-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.btn-close-mood {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

    .btn-close-mood:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.mood-modal-body {
    padding: 30px 40px 20px;
    min-height: 400px;
    position: relative;
}

.mood-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

    .mood-step.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    font-size: 20px;
}

/* ============ Mood Score Selector ============ */
.mood-selector {
    text-align: center;
    padding: 20px 0;
}

.mood-emoji-display {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: inline-block;
    animation: emojiBounce 0.6s ease-out;
}

@keyframes emojiBounce {
    0% {
        transform: scale(0.5) rotate(-20deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.mood-range {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f44336 0%, #FF9800 30%, #FFC107 50%, #8BC34A 70%, #4CAF50 100%);
    outline: none;
    margin: 20px 0 10px;
}

    .mood-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: white;
        border: 4px solid var(--mood-primary);
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.2s;
    }

        .mood-range::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

    .mood-range::-moz-range-thumb {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: white;
        border: 4px solid var(--mood-primary);
        cursor: pointer;
    }

.mood-labels {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

#moodScoreLabel {
    font-weight: 700;
    color: var(--mood-primary);
    font-size: 16px;
}

/* ============ Emotions Grid ============ */
.emotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.emotion-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 18px;
    background: #f8f9fa;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

    .emotion-chip:hover {
        transform: translateY(-5px) scale(1.05);
        background: white;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .emotion-chip.selected {
        background: white;
        border-color: currentColor;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
    }

        .emotion-chip.selected .emotion-emoji {
            animation: emojiBounce 0.5s;
        }

.emotion-emoji {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 6px;
}

.emotion-chip span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ============ Mini Sliders ============ */
.mood-slider-label {
    display: block;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.mini-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .mini-slider span {
        color: #999;
        font-size: 13px;
        min-width: 20px;
    }

    .mini-slider input[type="range"] {
        flex: 1;
        -webkit-appearance: none;
        height: 8px;
        border-radius: 4px;
        background: #e0e0e0;
        outline: none;
    }

        .mini-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--mood-primary);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        }

.mood-textarea {
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 14px;
    resize: none;
    transition: all 0.3s;
}

    .mood-textarea:focus {
        border-color: var(--mood-primary);
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

/* ============ Activities Grid ============ */
.activities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.activity-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f2f5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .activity-chip:hover {
        background: #e0e4ea;
        transform: translateY(-2px);
    }

    .activity-chip.selected {
        background: var(--mood-gradient);
        color: white;
        border-color: var(--mood-primary);
        transform: scale(1.05);
    }

/* ============ Success Animation ============ */
.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.success-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 20px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 40px rgba(56, 239, 125, 0.4);
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }

    70% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.success-animation h3 {
    color: #11998e;
    font-weight: 700;
    margin-bottom: 10px;
}

.streak-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
    animation: streakGlow 2s ease-in-out infinite;
}

@keyframes streakGlow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
    }

    50% {
        box-shadow: 0 15px 40px rgba(255, 152, 0, 0.6);
    }
}

/* ============ Modal Footer ============ */
.mood-modal-footer {
    padding: 20px 40px 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-mood-next,
.btn-mood-submit,
.btn-mood-prev {
    padding: 14px 35px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-mood-next,
.btn-mood-submit {
    background: var(--mood-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-right: auto;
}

    .btn-mood-next:hover,
    .btn-mood-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    }

.btn-mood-prev {
    background: #f0f2f5;
    color: #666;
}

    .btn-mood-prev:hover {
        background: #e0e4ea;
    }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .mood-modal-body {
        padding: 20px;
        min-height: 350px;
    }

    .mood-modal-header {
        padding: 30px 20px 60px;
    }

        .mood-modal-header h2 {
            font-size: 22px;
        }

    .mood-emoji-display {
        font-size: 60px;
    }

    .emotions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mood-fab {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    .mood-modal-footer {
        padding: 15px 20px 20px;
    }

    .btn-mood-next, .btn-mood-submit, .btn-mood-prev {
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* Quick Action Tiles */
.quick-action-tile {
    background: white;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: block;
}

    .quick-action-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-color: #667eea;
    }

.qa-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.qa-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}
