/* Wedding Theme CSS */
/* Color palette inspired by Italian watercolor illustrations */

:root {
    /* Primary colors - Terracotta warmth */
    --primary: #C4A484;
    --primary-light: #E9D5C3;
    --primary-dark: #8B6F5C;

    /* Secondary colors - Sage green */
    --secondary: #9CAF88;
    --secondary-light: #C5D4B8;
    --secondary-dark: #6B8A5E;

    /* Accent colors */
    --accent-gold: #D4AF37;
    --accent-blue: #7BA3B5;

    /* Backgrounds */
    --bg-cream: #FDF8F3;
    --bg-white: #FFFFFF;
    --bg-overlay: rgba(253, 248, 243, 0.95);

    /* Text colors */
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-light: #9A9A9A;

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 5rem 1.5rem;
}

/* Override Pico defaults */
:root {
    --pico-font-family: var(--font-body);
    --pico-background-color: var(--bg-cream);
    --pico-color: var(--text-primary);
    --pico-muted-color: var(--text-secondary);
    --pico-muted-border-color: var(--primary-light);
    --pico-secondary: var(--text-secondary);
    --pico-primary: var(--primary);
    --pico-primary-hover: var(--primary-dark);
}

/* Base styles */
body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--primary-light) 100%);
}

.hero-content {
    max-width: 600px;
}

.couple-photo {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--bg-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.couple-names {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.wedding-date {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.wedding-date .separator {
    margin: 0 0.5rem;
    color: var(--primary);
}

/* Location Section */
.location {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.location h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.location-info {
    text-align: center;
    margin-bottom: 2rem;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.address {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-directions {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--secondary);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-directions:hover {
    background: var(--secondary-dark);
    color: var(--bg-white);
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Content Sections */
.content-section {
    padding: var(--section-padding);
    background-size: cover;
    background-position: center;
    position: relative;
}

.content-section:nth-child(odd) {
    background-color: var(--bg-cream);
}

.content-section:nth-child(even) {
    background-color: var(--bg-white);
}

.content-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
}

.content-section .container {
    position: relative;
    z-index: 1;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-content {
    text-align: center;
}

.markdown-content h2,
.markdown-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-content,
.markdown-content p,
.markdown-content li,
.markdown-content span,
.markdown-content strong,
.markdown-content b {
    color: var(--text-secondary) !important;
}

.markdown-content ul,
.markdown-content ol {
    text-align: left;
    display: inline-block;
}

/* RSVP Form */
.rsvp-section {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-cream) 100%);
}

.rsvp-form-container {
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.rsvp-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.rsvp-form legend {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Checkbox field styling */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: 8px;
    border: 2px solid var(--primary-light);
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-field label {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

/* Allergy Tags Input */
.allergy-input {
    margin-bottom: 1rem;
}

.allergy-input input {
    margin-bottom: 0.5rem;
}

.allergy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.allergy-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--accent-gold);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.875rem;
}

.allergy-tag button {
    background: none;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-secondary);
}

/* Plus One Section */
.plus-one-fieldset legend {
    display: flex;
    align-items: center;
}

.plus-one-fieldset legend label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.plus-one-fields {
    padding-top: 1rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.success-message {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.success-message h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-dark);
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
}

/* RSVP Status Messages */
.rsvp-closed,
.rsvp-no-token,
.rsvp-used {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 500px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.lang-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--secondary-dark);
    color: var(--bg-white);
    border: 3px solid var(--bg-white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.lang-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .couple-names {
        font-size: 2rem;
    }

    .couple-photo {
        width: 280px;
        height: 280px;
    }

    .rsvp-form-container {
        padding: 1.5rem;
        margin: 1.5rem 1rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar but allow scrolling */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
