/**
 * CoCreate Theme: Coral
 * Soft coral-to-cream gradient - light, warm, inviting
 */

[data-theme="coral"] {
    /* Core Colors */
    --bg-primary: #FFF8F0;
    --bg-secondary: #FFEEE0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    /* Text */
    --text-primary: #1A0A00;
    --text-secondary: #5C3D2E;
    --text-muted: #8B6B5A;

    /* Brand Colors */
    --primary: #FC2A0D;
    --secondary: #FD6C71;
    --accent: #E85A4F;

    /* UI Elements */
    --border-color: rgba(232, 90, 79, 0.2);
    --nav-bg: rgba(255, 248, 240, 0.95);
    --glow-color: rgba(253, 108, 113, 0.25);

    /* Gradient Background */
    --gradient-bg:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(254, 159, 125, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 70% 60% at 80% 70%, rgba(253, 108, 113, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 10%, rgba(255, 195, 106, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse 80% 80% at 90% 90%, rgba(254, 159, 125, 0.2) 0%, transparent 55%),
        linear-gradient(180deg, #FFF8F0 0%, #FFEEE0 100%);

    /* Animation */
    --gradient-animation: coral-shift 25s ease-in-out infinite;

    /* Particles/Canvas */
    --particle-opacity: 0.3;
    --particle-color: #FD6C71;

    /* Chat Widget */
    --chat-primary: var(--primary);
    --chat-secondary: var(--secondary);
    --chat-bg: var(--bg-secondary);
    --chat-messages-bg: var(--bg-primary);
    --chat-input-bg: var(--bg-card);
    --chat-border: var(--border-color);
    --chat-text-primary: var(--text-primary);
    --chat-text-secondary: var(--text-secondary);
    --chat-text-muted: var(--text-muted);
    --chat-msg-assistant-bg: var(--bg-card);
    --chat-msg-assistant-text: var(--text-primary);
}

/* Coral Gradient Animation */
@keyframes coral-shift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 100% 100%, 0% 0%;
    }
    33% {
        background-position: 5% 10%, 95% 90%, 55% 5%, 90% 95%, 0% 0%;
    }
    66% {
        background-position: 10% 5%, 90% 95%, 45% 10%, 95% 90%, 0% 0%;
    }
}

/* Apply gradient to body */
[data-theme="coral"] body {
    background: var(--gradient-bg);
    background-attachment: fixed;
    animation: var(--gradient-animation);
}

/* Glass card enhancement - lighter for light theme */
[data-theme="coral"] .glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(253, 108, 113, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="coral"] .glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(253, 108, 113, 0.25);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Button styling */
[data-theme="coral"] .cta-button,
[data-theme="coral"] .btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 20px rgba(252, 42, 13, 0.3);
    color: white;
}

[data-theme="coral"] .cta-button:hover,
[data-theme="coral"] .btn-premium:hover {
    box-shadow: 0 8px 32px rgba(252, 42, 13, 0.45);
}

/* Gradient text */
[data-theme="coral"] .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav enhancement */
[data-theme="coral"] nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(253, 108, 113, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Stat numbers */
[data-theme="coral"] .stat-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Override dark text utilities */
[data-theme="coral"] .text-slate-300,
[data-theme="coral"] .text-slate-400,
[data-theme="coral"] .text-white {
    color: var(--text-primary);
}

[data-theme="coral"] .text-slate-500 {
    color: var(--text-secondary);
}
