/* ============================================
   Summer Bucket List — Main Stylesheet
   summerbucketlist.fun
   ============================================ */

/* --- CSS Variables (Summer Palette) --- */
:root {
    --sun-yellow: #FFD700;
    --sun-yellow-light: #FFF3B0;
    --tangerine: #FF8C00;
    --tangerine-dark: #E07800;
    --coral: #FF6F61;
    --hot-pink: #FF1493;
    --sky-blue: #4FC3F7;
    --sky-blue-light: #B3E5FC;
    --lime-green: #7CB342;
    --lime-light: #C5E1A5;
    --warm-cream: #FFFDF5;
    --soft-peach: #FFF3E0;
    --charcoal: #2D2D2D;
    --charcoal-light: #555;
    --white: #FFFFFF;

    --font-heading: 'Nunito', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 4px 20px rgba(255,140,0,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --- Base --- */
* { transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--warm-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 800; color: var(--charcoal); }
a { color: var(--tangerine); text-decoration: none; }
a:hover { color: var(--tangerine-dark); }

::selection { background: var(--sun-yellow-light); color: var(--charcoal); }

/* --- Navbar --- */
.navbar-summer {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.navbar-summer .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--tangerine) !important;
}
.navbar-summer .navbar-brand span { color: var(--sun-yellow); }
.navbar-summer .nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--charcoal) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.navbar-summer .nav-link:hover,
.navbar-summer .nav-link.active {
    background: var(--soft-peach);
    color: var(--tangerine) !important;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--sun-yellow) 0%, var(--tangerine) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}
.hero-sub h1 {
    font-size: 2.8rem;
}
.hero-sub {
    padding: 3.5rem 0 3rem;
}

/* --- Buttons --- */
.btn-sun {
    background: var(--sun-yellow);
    color: var(--charcoal);
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.btn-sun:hover {
    background: #FFE033;
    color: var(--charcoal);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-tangerine {
    background: var(--tangerine);
    color: var(--white);
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}
.btn-tangerine:hover {
    background: var(--tangerine-dark);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-outline-sun {
    border: 2px solid var(--sun-yellow);
    color: var(--charcoal);
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-xl);
}
.btn-outline-sun:hover {
    background: var(--sun-yellow);
    color: var(--charcoal);
}
.btn-white-hero {
    background: var(--white);
    color: var(--tangerine);
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius-xl);
    font-size: 1.15rem;
    box-shadow: var(--shadow-md);
}
.btn-white-hero:hover {
    background: var(--soft-peach);
    color: var(--tangerine-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Idea Cards --- */
.idea-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.idea-card:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.idea-card .card-icon {
    background: linear-gradient(135deg, var(--sun-yellow-light) 0%, var(--soft-peach) 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.idea-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.idea-card .card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.idea-card .card-title a {
    color: var(--charcoal);
}
.idea-card .card-title a:hover {
    color: var(--tangerine);
}
.idea-card .card-text {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    flex: 1;
}
.idea-card .card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

/* --- Badges / Tags --- */
.badge-time {
    background: var(--sky-blue-light);
    color: #0277BD;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}
.badge-cost {
    background: var(--lime-light);
    color: #33691E;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}
.badge-cost-free {
    background: var(--lime-green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}
.badge-age {
    background: #FCE4EC;
    color: #AD1457;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}
.badge-vibe {
    background: var(--soft-peach);
    color: var(--tangerine-dark);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}
.badge-setting {
    background: #E8F5E9;
    color: #2E7D32;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-xl);
}

/* --- Add to List Button --- */
.btn-add-list {
    background: var(--sun-yellow);
    color: var(--charcoal);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0.75rem;
}
.btn-add-list:hover {
    background: var(--tangerine);
    color: var(--white);
}
.btn-add-list.added {
    background: var(--lime-green);
    color: var(--white);
}

/* --- Section Styles --- */
.section-cream { background: var(--warm-cream); padding: 4rem 0; }
.section-white { background: var(--white); padding: 4rem 0; }
.section-peach { background: var(--soft-peach); padding: 4rem 0; }
.section-heading {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.section-sub {
    font-size: 1.15rem;
    color: var(--charcoal-light);
    margin-bottom: 2rem;
}

/* --- How It Works --- */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sun-yellow) 0%, var(--tangerine) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.step-card h4 { font-weight: 800; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; color: var(--charcoal-light); }

/* --- Filter Pills --- */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.filter-pill {
    background: var(--white);
    border: 2px solid var(--sun-yellow);
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
    background: var(--sun-yellow);
    color: var(--charcoal);
    box-shadow: var(--shadow-sm);
}

/* --- Idea Detail Page --- */
.idea-detail-hero {
    background: linear-gradient(135deg, var(--sun-yellow-light) 0%, var(--soft-peach) 100%);
    padding: 3rem 0;
    text-align: center;
}
.idea-detail-hero .icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}
.detail-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.detail-section h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--tangerine);
    border-bottom: 2px solid var(--sun-yellow-light);
    padding-bottom: 0.5rem;
}
.detail-section ul { list-style: none; padding: 0; }
.detail-section ul li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
}
.detail-section ul li::before {
    content: '☀️';
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}
.detail-section ol li { padding: 0.4rem 0; }
.safety-note {
    background: #FFF9C4;
    border-left: 4px solid var(--sun-yellow);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
}
.variation-tab .nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--charcoal-light);
    border-radius: var(--radius-xl);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}
.variation-tab .nav-link.active {
    background: var(--tangerine);
    color: var(--white);
}

/* --- Surprise Me --- */
.surprise-card {
    background: linear-gradient(135deg, var(--coral) 0%, var(--tangerine) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.surprise-card h3 { color: var(--white); font-size: 1.8rem; }

/* --- Challenge Cards --- */
.challenge-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
}
.challenge-card-header {
    padding: 2rem;
    color: var(--white);
    text-align: center;
}
.challenge-card-header.gradient-sunset { background: linear-gradient(135deg, var(--coral) 0%, var(--tangerine) 100%); }
.challenge-card-header.gradient-ocean { background: linear-gradient(135deg, var(--sky-blue) 0%, #1976D2 100%); }
.challenge-card-header.gradient-forest { background: linear-gradient(135deg, var(--lime-green) 0%, #388E3C 100%); }
.challenge-card-header h3 { color: var(--white); margin: 0; }
.challenge-card-body { padding: 1.5rem; }

/* --- Bingo Card --- */
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 500px;
    margin: 0 auto;
}
.bingo-cell {
    background: var(--soft-peach);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bingo-cell:hover { background: var(--sun-yellow-light); }
.bingo-cell.done {
    background: var(--lime-green);
    color: var(--white);
}
.bingo-cell.free-space {
    background: var(--sun-yellow);
    color: var(--charcoal);
}

/* --- My List --- */
.my-list-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.my-list-item:hover { box-shadow: var(--shadow-glow); }
.my-list-item .drag-handle {
    color: #CCC;
    cursor: grab;
    font-size: 1.2rem;
}
.my-list-item .list-title { font-weight: 700; flex: 1; }
.my-list-item .list-badges { display: flex; gap: 0.35rem; }
.my-list-item.done {
    opacity: 0.7;
    background: var(--lime-light);
}
.my-list-item.done .list-title { text-decoration: line-through; }

.progress-summer {
    height: 20px;
    border-radius: var(--radius-xl);
    background: var(--soft-peach);
}
.progress-summer .progress-bar {
    background: linear-gradient(90deg, var(--sun-yellow) 0%, var(--lime-green) 100%);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.75rem;
}

/* --- Newsletter CTA --- */
.newsletter-cta {
    background: linear-gradient(135deg, var(--tangerine) 0%, var(--coral) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.newsletter-cta h3 { color: var(--white); }
.newsletter-cta .form-control {
    border-radius: var(--radius-xl);
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

/* --- Footer --- */
.footer-summer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 2rem;
}
.footer-summer h5 { color: var(--sun-yellow); font-weight: 800; font-size: 1rem; }
.footer-summer a { color: rgba(255,255,255,0.7); }
.footer-summer a:hover { color: var(--sun-yellow); }
.footer-summer .footer-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--tangerine);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* --- Printables --- */
.printable-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 2rem;
    height: 100%;
}
.printable-card:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.printable-icon { font-size: 3rem; margin-bottom: 1rem; }

/* --- Form Styles --- */
.form-summer .form-control, .form-summer .form-select {
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.form-summer .form-control:focus, .form-summer .form-select:focus {
    border-color: var(--sun-yellow);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}
.form-summer label {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

/* --- Toast (for Add to List confirmations) --- */
.toast-summer {
    background: var(--charcoal);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* --- Confetti keyframes --- */
@keyframes confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-sub h1 { font-size: 1.8rem; }
    .section-heading { font-size: 1.6rem; }
    .bingo-cell { font-size: 0.65rem; padding: 0.5rem 0.25rem; min-height: 55px; }
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* --- Empty States --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--charcoal-light);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
