/* Base styles for GratefulMind */

/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Hover card effect */
.hover-card {
    transition: all 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Identity buttons */
.identity-btn {
    background-color: #dcf5e0;
    color: #215538;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.identity-btn:hover {
    background-color: #bbebca;
}

.identity-btn.selected {
    background-color: #2c8550;
    color: white;
}

/* Identity pills */
.identity-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background-color: #dcf5e0;
    color: #215538;
}

.identity-pill-remove {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    color: #3ba164;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 0.25rem;
    border-radius: 9999px;
}

.identity-pill-remove:hover {
    color: #215538;
}

/* Life area cards */
.life-area-card {
    border-top: 3px solid transparent;
    transition: all 0.2s ease;
}

.life-area-card.work {
    border-top-color: #2c8550; /* Primary green */
}

.life-area-card.social {
    border-top-color: #0fa968; /* Mint green */
}

.life-area-card.health {
    border-top-color: #61744d; /* Sage green */
}

.life-area-card.finance {
    border-top-color: #b4a30a; /* Gold */
}

/* Journal mood selector */
.journal-mood-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.journal-mood-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #e5e7eb;
    color: #215538;
}

.journal-mood-btn:hover {
    background-color: #3ba164;
    color: white;
}

.journal-mood-btn.selected {
    background-color: #2c8550;
    color: white;
}

/* Task completion celebration */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.animate-slide-down {
    animation: slideDown 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

#completion-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    transform: translateY(-100%);
}

#completion-celebration > div {
    background-color: #2c8550;
    color: white;
    padding: 1rem 1.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

/* Accessibility focus styles */
:focus {
    outline: 2px solid #3ba164;
    outline-offset: 2px;
}
/* Emoji shower animation */
.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.emoji {
    position: absolute;
    font-size: 24px;
    user-select: none;
    will-change: transform;
    z-index: 9999;
    animation: emojiDrop 4s linear forwards;
}

@keyframes emojiDrop {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 30px)) rotate(360deg);
        opacity: 0;
    }
}

/* Celebration modal */
.celebration-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2c8550;
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    text-align: center;
    max-width: 90%;
    width: 400px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.celebration-modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.celebration-modal p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.celebration-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}
