/* ============================================================
   BANU & BARIŞ - DÜĞÜN DAVETİYESİ
   Kır Temalı / Çiçekli / Yeşilli / Elegant
   ============================================================ */

/* ---- GENEL RESET & TABAN ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #2d5016;
    --green-medium: #4a7c2e;
    --green-light: #a8d5a2;
    --green-pale: #e8f5e3;
    --cream: #fdf6e3;
    --cream-dark: #f5ecd3;
    --gold: #c9a84c;
    --gold-light: #e2cc7e;
    --gold-dark: #a68a2e;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-medium: #555555;
    --text-light: #888888;

    --font-script: 'Great Vibes', cursive;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;

    --section-padding: 80px 20px;
    --max-width: 800px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- ANİMASYONLAR ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- GİRİŞ EKRANI ---- */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(168,213,162,0.2) 0%, transparent 60%),
        linear-gradient(180deg, #e8f5e3 0%, #fdf6e3 60%, #f5ecd3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.intro-content {
    padding: 30px;
}
.intro-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--green-medium);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 15px;
}
.intro-names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 12vw, 5rem);
    color: var(--green-dark);
    margin-bottom: 10px;
}
.intro-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    margin-bottom: 35px;
}
.intro-btn {
    padding: 16px 50px;
    font-size: 1.1rem;
    animation: pulse 2.5s ease-in-out infinite;
}

/* ---- TAKVİM SONRASI (RSVP success içinde) ---- */
.calendar-after-rsvp {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--green-light);
}
.calendar-prompt {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 15px;
    font-weight: 600;
}
.calendar-after-rsvp .calendar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.calendar-after-rsvp .btn-calendar {
    width: 100%;
    max-width: 260px;
    justify-content: center;
}

@keyframes heroZoomOut {
    0% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
@keyframes flyBird {
    0%   { transform: translate(0, 0) scaleX(1); }
    25%  { transform: translate(25vw, -8vh) scaleX(1); }
    50%  { transform: translate(55vw, -3vh) scaleX(1); }
    75%  { transform: translate(80vw, -10vh) scaleX(1); }
    100% { transform: translate(110vw, -5vh) scaleX(1); }
}
@keyframes flyBird2 {
    0%   { transform: translate(0, 0) scaleX(-1); }
    25%  { transform: translate(-20vw, -6vh) scaleX(-1); }
    50%  { transform: translate(-45vw, -2vh) scaleX(-1); }
    75%  { transform: translate(-75vw, -9vh) scaleX(-1); }
    100% { transform: translate(-110vw, -4vh) scaleX(-1); }
}
@keyframes flapWings {
    0%, 100% { d: path("M0,5 Q5,-2 10,5 Q15,-2 20,5"); }
    50%      { d: path("M0,5 Q5,10 10,5 Q15,10 20,5"); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ---- BÖLÜM ORTAK ---- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}
.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}
.section-decoration {
    text-align: center;
    margin-bottom: 20px;
}
.floral-divider {
    opacity: 0.7;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hero-img-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    animation: heroZoomOut 15s ease-out forwards;
}
.hero-img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center top;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 246, 227, 0.35);
    pointer-events: none;
}

/* Uçan kuşlar */
.bird {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.bird svg {
    width: 20px;
    height: 10px;
}
.bird-1 { top: 18%; left: -5%; animation: flyBird 12s linear infinite; }
.bird-2 { top: 12%; left: -8%; animation: flyBird 14s linear infinite 3s; }
.bird-3 { top: 22%; right: -5%; animation: flyBird2 13s linear infinite 5s; }
.bird-4 { top: 15%; left: -3%; animation: flyBird 16s linear infinite 8s; }
.bird-5 { top: 25%; right: -8%; animation: flyBird2 11s linear infinite 2s; }

/* Dekoratif yapraklar */
.leaf {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    pointer-events: none;
}
.leaf::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--green-dark);
    border-radius: 0 70% 0 70%;
}
.leaf-1 { top: 5%; left: 3%; transform: rotate(-30deg); animation: sway 6s ease-in-out infinite; }
.leaf-2 { top: 8%; right: 5%; transform: rotate(40deg) scaleX(-1); animation: sway 7s ease-in-out infinite 0.5s; }
.leaf-3 { bottom: 12%; left: 5%; transform: rotate(-50deg); animation: sway 8s ease-in-out infinite 1s; width: 60px; height: 60px; }
.leaf-4 { bottom: 10%; right: 3%; transform: rotate(30deg) scaleX(-1); animation: sway 6.5s ease-in-out infinite 1.5s; width: 70px; height: 70px; }

.hero-content {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 28%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--green-medium);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
    text-shadow: 1px 1px 6px rgba(255,255,255,0.9);
}
.hero-names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 1px 1px 8px rgba(255,255,255,0.8);
}
.hero-names .ampersand {
    display: inline;
    font-size: 0.6em;
    color: var(--gold);
    margin: 0 5px;
}
.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}
.hero-date p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold-dark);
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.6);
}
.date-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    opacity: 1;
}
.hero-venue {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    letter-spacing: 1px;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,255,255,0.6);
}
.hero-bottom {
    position: absolute;
    bottom: 180px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
}

/* Aşağı kaydır oku */
.scroll-arrow {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    animation: bounce 2s infinite;
    text-decoration: none;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.scroll-arrow:hover { opacity: 1; }

/* ============================================================
   AİLELER & DAVET MESAJI
   ============================================================ */
.families-section {
    padding: 70px 20px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 50%),
        var(--cream);
}
.invite-message {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto 25px;
    line-height: 1.8;
}
.invite-divider {
    width: 60px;
    height: 1px;
    background: var(--green-light);
    margin: 0 auto 35px;
}
.families-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}
.family-card {
    text-align: center;
}
.family-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
}
.family-names {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 400;
    margin-bottom: 2px;
}
.family-surname {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-dark);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   GERİ SAYIM
   ============================================================ */
.countdown-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--white);
}
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--green-dark);
    font-weight: 700;
    line-height: 1;
}
.countdown-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 300;
}
.countdown-separator {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    margin-top: -15px;
}

/* ============================================================
   DÜĞÜN DETAYLARI
   ============================================================ */
.details-section {
    padding: var(--section-padding);
    background: var(--cream);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: var(--max-width);
    margin: 30px auto 0;
}
.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(168,213,162,0.2);
}
.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.detail-icon {
    margin-bottom: 15px;
}
.detail-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 8px;
    font-weight: 600;
}
.detail-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}
.detail-sub {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 300;
    line-height: 1.5;
}

/* ============================================================
   KONUM / HARİTA
   ============================================================ */
.location-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--white);
}
.map-container {
    max-width: var(--max-width);
    margin: 20px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-container iframe {
    display: block;
}
.parking-note {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-top: 18px;
    font-weight: 700;
    font-style: italic;
}
.map-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.map-buttons .btn-outline {
    margin-top: 0;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* ============================================================
   TAKVİME EKLE
   ============================================================ */
.calendar-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--cream);
}
.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: var(--green-dark);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45,80,22,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
    margin-top: 20px;
}
.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-calendar {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--green-light);
    padding: 12px 24px;
}
.btn-calendar:hover {
    background: var(--green-pale);
    border-color: var(--green-medium);
    transform: translateY(-2px);
}

/* ============================================================
   RSVP FORMU
   ============================================================ */
.rsvp-section {
    padding: var(--section-padding);
    background:
        radial-gradient(ellipse at 30% 70%, rgba(168,213,162,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(201,168,76,0.08) 0%, transparent 50%),
        var(--white);
}
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--green-dark);
    margin-bottom: 8px;
    font-weight: 600;
}
.required {
    color: #c0392b;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-medium);
    box-shadow: 0 0 0 3px rgba(168,213,162,0.3);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Butonlar */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 18px;
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: var(--white);
}
.radio-label:hover {
    border-color: var(--green-medium);
    background: var(--green-pale);
}
.radio-label input[type="radio"] {
    display: none;
}
.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--green-light);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--green-dark);
}
.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--green-dark);
    border-radius: 50%;
}
.radio-label input[type="radio"]:checked ~ .radio-text {
    color: var(--green-dark);
    font-weight: 600;
}
.radio-text {
    font-size: 0.95rem;
    color: var(--text-medium);
}
.check-mark { color: var(--green-medium); font-weight: bold; }
.cross-mark { color: #c0392b; font-weight: bold; }

/* Gönder Butonu */
.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.spinner {
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* Durum mesajları */
.form-status {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 15px;
    font-size: 0.9rem;
}
.form-status.error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}
.form-status.success {
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1px solid var(--green-light);
}

/* Başarı mesajı */
.success-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}
.success-message p {
    color: var(--text-medium);
    font-size: 1rem;
}
.success-sub {
    margin-top: 10px;
    font-style: italic;
    color: var(--gold-dark) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 50px 20px 30px;
    text-align: center;
    background: var(--cream);
}
.footer-decoration {
    margin-bottom: 20px;
}
.footer-names {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--green-dark);
}
.footer-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin: 5px 0 15px;
}
.footer-heart {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   MÜZİK BUTONU
   ============================================================ */
.music-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45,80,22,0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}
.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(45,80,22,0.4);
}
.music-btn.playing {
    background: var(--gold);
}
.music-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* ============================================================
   KONFETİ CANVAS
   ============================================================ */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================================
   RESPONSİVE
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 15px;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .countdown-separator {
        font-size: 2rem;
    }
    .countdown-number {
        font-size: 2.5rem;
    }
    .countdown-item {
        min-width: 65px;
    }
    .details-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .hero-names {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    .leaf { width: 50px; height: 50px; opacity: 0.1; }
}

/* Mobil */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 12px;
    }
    .hero-names {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
        word-break: keep-all;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    .hero-venue {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .countdown-timer {
        gap: 5px;
    }
    .countdown-item {
        min-width: 55px;
    }
    .countdown-number {
        font-size: 2rem;
    }
    .countdown-label {
        font-size: 0.7rem;
    }
    .countdown-separator {
        font-size: 1.5rem;
    }
    .hero-date p {
        font-size: 1.1rem;
    }
    .date-line {
        width: 35px;
    }
    .calendar-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-calendar {
        width: 100%;
        max-width: 280px;
    }
    .detail-card {
        padding: 25px 20px;
    }
    .music-btn {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 15px;
    }
    .music-icon {
        font-size: 1.2rem;
    }
    .footer-names {
        font-size: 2rem;
    }
    .map-container iframe {
        height: 250px;
    }
}
