/* ============================================================
   CAPTURE THE LOVE – CSS
   Elegant Wedding Theme with Cormorant Garamond + DM Sans
   ============================================================ */

:root {
    --wine: #8B2252;
    --wine-dark: #6B1A3F;
    --wine-light: #A8436E;
    --gold: #D4A574;
    --gold-light: #E8C9A6;
    --cream: #FDF6F0;
    --cream-dark: #F5E6D8;
    --text: #2D2226;
    --text-light: #6B5B63;
    --white: #ffffff;
    --success: #2D8B57;
    --error: #C23B3B;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(139, 34, 82, 0.08);
    --shadow-lg: 0 12px 48px rgba(139, 34, 82, 0.12);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253, 246, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 34, 82, 0.08);
}

.nav__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 400; color: var(--wine);
    text-decoration: none; letter-spacing: 0.02em;
}

.nav__logo i { margin-right: 0.25rem; font-size: 1rem; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--wine); }
.nav__logout-form { display: inline; }
.nav__link-btn { background: none; border: none; color: var(--text-light); font: inherit; font-size: 0.9rem; cursor: pointer; }
.nav__link-btn:hover { color: var(--wine); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--wine); color: var(--white);
    border: none; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover { background: var(--wine-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn--outline { background: transparent; color: var(--wine); border: 2px solid var(--wine); }
.btn--outline:hover { background: var(--wine); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--text); }
.btn--gold:hover { background: var(--gold-light); }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn--success { background: var(--success); }

/* ============================================================
   HERO (Landing Page)
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, rgba(139,34,82,0.04) 100%);
    position: relative; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero__content { max-width: 720px; position: relative; z-index: 1; }

.hero__badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(139, 34, 82, 0.08);
    color: var(--wine);
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 300; line-height: 1.1;
    color: var(--wine);
    margin-bottom: 1.5rem;
}

.hero__title em { font-style: italic; color: var(--gold); }

.hero__subtitle {
    font-size: 1.2rem; color: var(--text-light);
    margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto;
}

.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FEATURES
   ============================================================ */

.features {
    padding: 6rem 2rem;
    max-width: 1200px; margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 400;
    text-align: center; color: var(--wine);
    margin-bottom: 3rem;
}

.features__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-4px); }
.feature-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card__title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--wine); }
.feature-card__desc { color: var(--text-light); font-size: 0.95rem; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing { padding: 6rem 2rem; background: var(--white); }

.pricing__card {
    max-width: 480px; margin: 0 auto;
    background: var(--cream);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(139, 34, 82, 0.1);
}

.pricing__price {
    font-family: var(--font-display);
    font-size: 3.5rem; font-weight: 600; color: var(--wine);
}

.pricing__price span { font-size: 1.2rem; color: var(--text-light); font-weight: 300; }
.pricing__desc { margin: 1rem 0 2rem; color: var(--text-light); }

.pricing__features {
    list-style: none; text-align: left;
    margin-bottom: 2rem;
}

.pricing__features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(139, 34, 82, 0.06);
    font-size: 0.95rem;
}

.pricing__features li::before {
    content: '✓'; color: var(--success); font-weight: 700; margin-right: 0.75rem;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-page {
    min-height: calc(100vh - 60px);
    display: flex; align-items: center; justify-content: center;
    padding: 6rem 2rem 4rem;
}

.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px;
}

.form-card__title {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--wine);
    text-align: center; margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(139, 34, 82, 0.12);
    border-radius: 8px;
    font-family: var(--font-body); font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.08);
}

.form-group input[type="color"] { padding: 0.25rem; height: 48px; cursor: pointer; }

.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--wine); }

.form-error { color: var(--error); font-size: 0.85rem; margin-top: 0.25rem; }

.validation-summary-errors ul {
    list-style: none;
    background: rgba(194, 59, 59, 0.08);
    border: 1px solid rgba(194, 59, 59, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.validation-summary-errors li { color: var(--error); font-size: 0.9rem; padding: 0.2rem 0; }

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard { padding: 6rem 2rem 4rem; max-width: 1000px; margin: 0 auto; }

.dashboard__header {
    text-align: center; margin-bottom: 3rem;
}

.dashboard__title {
    font-family: var(--font-display);
    font-size: 2.5rem; color: var(--wine); font-weight: 300;
}

.dashboard__subtitle { color: var(--text-light); margin-top: 0.5rem; }

.dashboard__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.dash-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dash-card__title {
    font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-light); margin-bottom: 0.75rem;
}

.dash-card__value { font-family: var(--font-display); font-size: 2rem; color: var(--wine); }

/* QR Code display */
.qr-section { text-align: center; margin: 3rem 0; }
.qr-section img { max-width: 300px; border-radius: 12px; box-shadow: var(--shadow); }
.qr-json { background: var(--text); color: #e0e0e0; padding: 1.5rem; border-radius: 8px; font-family: monospace; font-size: 0.8rem; overflow-x: auto; text-align: left; max-height: 200px; margin-top: 1rem; white-space: pre-wrap; word-break: break-all; }

/* ============================================================
   TASK SELECTION
   ============================================================ */

.tasks-page { padding: 6rem 2rem 4rem; max-width: 1000px; margin: 0 auto; }

.task-category { margin-bottom: 2rem; }
.task-category__title {
    font-family: var(--font-display);
    font-size: 1.6rem; color: var(--wine);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-light);
}

.task-category__count { font-size: 0.85rem; color: var(--text-light); font-family: var(--font-body); }

.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; }

.task-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.task-item:hover { border-color: var(--gold-light); }
.task-item--selected { border-color: var(--wine); background: rgba(139, 34, 82, 0.03); }

.task-item input[type="checkbox"] { margin-top: 0.15rem; accent-color: var(--wine); width: 16px; height: 16px; flex-shrink: 0; }
.task-item__emoji { font-size: 1.2rem; flex-shrink: 0; }
.task-item__text { flex: 1; }
.task-item__title { font-weight: 600; font-size: 0.9rem; }
.task-item__desc { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }

.tasks-toolbar {
    position: sticky; bottom: 0;
    background: rgba(253, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    border-top: 1px solid rgba(139, 34, 82, 0.1);
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 16px 16px 0 0;
    margin: 0 -2rem;
}

.tasks-toolbar__count { font-weight: 600; color: var(--wine); }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    max-width: 800px; margin: 5rem auto 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert--success { background: rgba(45, 139, 87, 0.08); color: var(--success); border: 1px solid rgba(45, 139, 87, 0.2); }
.alert--error { background: rgba(194, 59, 59, 0.08); color: var(--error); border: 1px solid rgba(194, 59, 59, 0.2); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding: 2rem; text-align: center;
    border-top: 1px solid rgba(139, 34, 82, 0.06);
    color: var(--text-light); font-size: 0.85rem;
}

.footer a { color: var(--wine); text-decoration: none; }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Mobile */
@@media (max-width: 768px) {
    .nav__inner { padding: 0.5rem 1rem; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero__title { font-size: 2.5rem; }
    .features, .dashboard, .tasks-page { padding-left: 1rem; padding-right: 1rem; }
    .form-card { padding: 1.5rem; }
    .task-grid { grid-template-columns: 1fr; }
}
