/* AI Sprint - Direction B: Soft Gradient Flow */
/* Warm, inviting, colorful but not busy */

:root {
    --green-dark: #00843D;
    --green-mid: #4CAF50;
    --green-light: #81C784;
    --green-pale: #C8E6C9;

    --orange: #FF9800;
    --orange-light: #FFB74D;
    --orange-pale: #FFE0B2;

    --yellow: #FFC107;
    --yellow-light: #FFD54F;
    --yellow-pale: #FFF8E1;

    --peach: #FFCCBC;
    --coral: #FF8A65;

    --white: #FFFFFF;
    --text: #2D3436;
    --text-soft: #636E72;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #E8F5E9 0%, #FFF8E1 50%, #FFE0B2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle decorative shapes - not too busy */
.deco-shape {
    position: fixed;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    bottom: 10%;
    left: -80px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 1rem 0 2rem;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    font-weight: 500;
}

/* Message Card - The main pitch */
.message-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.message-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.message-card p {
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.message-card .deadline {
    color: var(--orange);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Helena Comic Section */
.helena-comic-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.helena-comic-avatar {
    width: 90px;
    height: auto;
    margin-top: 30px;
}

.comic-speech-bubble {
    background: white;
    border: 2px solid var(--text);
    border-radius: 50%;
    padding: 1.25rem 1.75rem;
    text-align: center;
    margin-left: -10px;
}

.comic-speech-bubble p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.comic-speech-bubble p:last-child {
    margin-bottom: 0;
}

/* Large CTA Button - Orange */
.cta-button-large {
    display: block;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    color: white;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
    transition: all 0.2s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.5);
}

/* Criteria Section */
.criteria-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.criteria-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 1.25rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.criteria-card {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--green-pale);
    border-radius: var(--radius-md);
}

.criteria-card span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.criteria-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.criteria-card p {
    font-size: 0.75rem;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.3;
}

/* Old prize sections - hidden */
.prize-section, .prize-card {
    display: none;
}

/* CTA Button */
.cta-section {
    text-align: center;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 132, 61, 0.35);
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 132, 61, 0.4);
}

/* Countdown Card */
.countdown-card {
    background: linear-gradient(135deg, var(--orange), var(--coral));
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-unit {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* Prize Card */
.prize-card {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

.prize-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.prize-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.prize-main {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prize-criteria {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Steps Section */
.steps-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.steps-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 1.5rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-light), var(--green-pale));
    color: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.step-content p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0;
}

/* Secondary Link */
.secondary-section {
    text-align: center;
    margin-bottom: 2rem;
}

.secondary-link {
    color: var(--green-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.secondary-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0 2rem;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* ==================== */
/* Chat Page Styles     */
/* ==================== */

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    max-width: 600px;
    margin: 0 auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.chat-header .helena-avatar {
    width: 50px;
    height: auto;
}

.chat-header-info h1 {
    font-size: 1.1rem;
    color: var(--green-dark);
    font-weight: 700;
}

.chat-header-info p {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.message {
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.helena {
    align-self: flex-start;
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.message.helena .message-avatar {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.message.helena .message-content {
    background: white;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.message.user {
    align-self: flex-end;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    border-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 132, 61, 0.25);
}

.message-sender {
    display: none;
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 0.75rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--green-mid);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    position: relative;
    align-items: flex-end;
}

.voice-hint {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    margin-bottom: 0.5rem;
    background: var(--orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.voice-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 8px solid transparent;
    border-top-color: var(--orange);
}

.voice-hint-arrow {
    font-size: 1.1rem;
}

.voice-hint.hidden {
    display: none;
}

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

.mic-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--green-pale);
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mic-button:hover {
    background: var(--green-light);
    transform: scale(1.05);
}

.mic-button.recording {
    background: var(--coral);
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 101, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 138, 101, 0); }
}

.chat-input {
    flex: 1;
    border: 2px solid var(--green-pale);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--green-mid);
}

.send-button {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: scale(1.02);
}

.send-button:disabled {
    background: var(--green-pale);
    color: var(--text-soft);
    cursor: not-allowed;
    transform: none;
}

/* ==================== */
/* Form & Projects      */
/* ==================== */

.page-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-group .hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 2px solid var(--green-pale);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 132, 61, 0.3);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--green-mid);
}

.project-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-author {
    font-size: 0.85rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-why {
    background: var(--green-pale);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
}

.project-why strong {
    color: var(--green-dark);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-soft);
}

.empty-state p {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .helena-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .helena-bubble {
        border-radius: var(--radius-lg);
    }

    .helena-bubble::before {
        display: none;
    }

    .countdown {
        gap: 1.5rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .message {
        max-width: 90%;
    }

    .deco-shape {
        opacity: 0.1;
    }

    .entry-card {
        padding: 2rem 1.5rem;
    }

    .entry-helena {
        width: 100px;
    }
}

/* ==================== */
/* Entry Screen         */
/* ==================== */

.entry-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
}

.entry-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.entry-helena {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.entry-bubble {
    background: var(--green-pale);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.entry-greeting {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.entry-question {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

.entry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name-input {
    border: 2px solid var(--green-pale);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.2s ease;
}

.name-input:focus {
    outline: none;
    border-color: var(--green-mid);
}

.name-input::placeholder {
    color: var(--text-soft);
}

.entry-button {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 132, 61, 0.35);
}

.entry-button:disabled {
    background: var(--green-pale);
    color: var(--text-soft);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Return user styling */
.entry-welcome {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.entry-subtitle {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin: 0;
}

.entry-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.entry-secondary {
    background: transparent;
    color: var(--text-soft);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
}

.entry-secondary:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* Hidden utility */
.hidden {
    display: none !important;
}
