/* Emotional, Supportive Design System */

:root {
    /* Warm, comforting colors */
    --primary-warm: #7C3AED; /* Warm purple - strength & dignity */
    --secondary-warm: #EC4899; /* Warm pink - compassion */
    --accent-coral: #FB7185; /* Coral - hope */
    --accent-peach: #FBBF24; /* Warm yellow - optimism */
    --soft-blue: #60A5FA; /* Soft blue - trust */
    --mint-green: #34D399; /* Success green - victory */
    
    /* Soft backgrounds */
    --bg-cream: #FEF3C7;
    --bg-lavender: #EDE9FE;
    --bg-rose: #FCE7F3;
    --bg-mint: #D1FAE5;
    
    /* Text colors */
    --text-warm: #451A03;
    --text-soft: #7C2D12;
}

/* Breathing animation for stressed users */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(236, 72, 153, 0); }
}

@keyframes celebration {
    0% { transform: scale(0.9) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Encouraging progress indicators */
.progress-celebrate {
    animation: celebration 0.5s ease-out;
}

/* Soft, rounded everything */
.comfort-card {
    border-radius: 24px;
    background: linear-gradient(135deg, #FEFEFE 0%, #FCE7F3 100%);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.comfort-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-warm), var(--secondary-warm));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

/* Supportive buttons */
.btn-hope {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    color: white;
    border-radius: 100px;
    padding: 16px 32px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hope::before {
    content: '💪';
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    right: -10px;
    top: -10px;
    transform: rotate(-15deg);
}

.btn-hope:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.4);
}

/* Emotional support messages */
.support-bubble {
    background: linear-gradient(135deg, #FEF3C7, #FCE7F3);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.support-bubble::after {
    content: '❤️';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 24px;
    animation: pulse-soft 2s infinite;
}

/* Warm testimonial cards */
.story-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-warm);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.15);
}

/* Friendly form inputs */
.friendly-input {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: white;
}

.friendly-input:focus {
    border-color: var(--secondary-warm);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
    outline: none;
}

/* Celebration confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-coral);
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Comforting loading states */
.loader-heart {
    width: 40px;
    height: 40px;
    position: relative;
    animation: breathe 2s infinite;
}

.loader-heart::before,
.loader-heart::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 40px;
    background: var(--secondary-warm);
    border-radius: 50px 50px 0 0;
}

.loader-heart::before {
    left: 20px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.loader-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Victory animation */
.victory-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--mint-green), var(--soft-blue));
    color: white;
    border-radius: 100px;
    font-weight: bold;
    animation: celebration 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

/* Supportive tooltips */
.help-tooltip {
    background: var(--bg-cream);
    border: 2px solid var(--accent-peach);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile-first emotional design */
@media (max-width: 768px) {
    .comfort-card {
        border-radius: 20px;
        margin: 10px;
    }
    
    .btn-hope {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }
}

/* Accessibility with warmth */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states that feel supportive */
*:focus-visible {
    outline: 3px solid var(--secondary-warm);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth, comforting transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}