:root {
    --bg-color: #fdfbf7;
    --text-color: #2b2d42;
    --card-bg: #ffffff;
    --primary-color: #2ec4b6; /* Fresh teal green */
    --accent-color: #ff9f1c;  /* Warm orange/yellow for cheerful birthday vibe */
    --secondary-color: #ffbf69;
    --pink-accent: #f08080;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Fun subtle polka dot background pattern */
    background-image: radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px), radial-gradient(var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #fff9f0;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Typography Headings */
h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
    animation: fadeInDown 1s ease-out forwards;
}

.hero .accent-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .main-title {
    font-size: 4rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0px rgba(255, 159, 28, 0.2);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.highlight-text {
    color: var(--accent-color);
    background-color: #fff9eb;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 3rem;
}

.timer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    min-width: 100px;
    border-bottom: 4px solid var(--primary-color);
}

.time-block span:first-child {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.time-block .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Briefing Section */
.briefing-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #4a4a5a;
}

.button-wrapper {
    text-align: center;
    margin-top: 2rem;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.3);
}

.primary-btn:hover {
    background: #25a498;
    transform: scale(1.05);
}

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

/* Pledge Section */
.pledge-section {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f0 100%);
    border: 3px dashed var(--accent-color);
    animation: fadeInUp 0.6s ease forwards;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media(min-width: 600px) {
    .input-group {
        flex-direction: row;
    }
}

input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    padding: 1.2rem;
    font-size: 1.2rem;
}

.submit-btn:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

/* Success Message */
.success-section {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 4px solid var(--primary-color);
    animation: zoomIn 0.5s ease forwards;
}

.success-section h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-section p {
    font-size: 1.5rem;
    color: #555;
    font-weight: 600;
}

/* Pledge Wall */
.pledge-wall-section {
    text-align: center;
}

.pledge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.pledge-name {
    background: var(--pink-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 4px 10px rgba(240, 128, 128, 0.3);
}

footer {
    text-align: center;
    margin-top: 4rem;
    color: #999;
    font-size: 0.9rem;
}

/* Recipes Section */
.recipe-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 768px) {
    .recipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recipe-category {
    background: #fff5e6;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px dashed #ffbf69;
}

.recipe-category h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255,191,105, 0.5);
    padding-bottom: 0.5rem;
}

.recipe-list {
    list-style-type: none;
    padding: 0;
}

.recipe-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}
.recipe-list li::before {
    content: "🌱";
    position: absolute;
    left: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid white;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05) rotate(2deg);
    z-index: 10;
}

/* Mobile Optimizations */
@media(max-width: 600px) {
    .hero .main-title {
        font-size: 2.8rem;
    }
    .hero .accent-text {
        font-size: 1.4rem;
    }
    .timer {
        gap: 0.5rem;
    }
    .time-block {
        min-width: 70px;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .time-block span:first-child {
        font-size: 2rem;
    }
    .time-block .label {
        font-size: 0.7rem;
    }
    .card {
        padding: 1.5rem;
    }
    .success-section h2 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
