:root {
    --cream: #fffaf5;
    --soft-cream: #f8f0e8;
    --rose: #b86f79;
    --burgundy: #7f3f4a;
    --gold: #b99a6a;
    --text: #4e3b3d;
    --muted: #8f7779;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
}

/* A��l�� ekran� */
.invitation-cover {
    position: fixed;
    inset: 0;
    z-index: 9999;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

    .invitation-cover.opened {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.cover-content {
    position: relative;
    z-index: 2;
    width: min(90%, 650px);
    text-align: center;
    padding: 50px 25px;
}

.cover-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 18px;
}

.couple-name {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--burgundy);
}

    .couple-name .amp {
        display: block;
        font-family: "Great Vibes", cursive;
        font-size: 0.72em;
        margin: 2px 0;
        color: var(--gold);
    }

.cover-message {
    max-width: 480px;
    margin: 25px auto 32px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text);
}

.open-invitation-button {
    border: 1px solid rgba(127, 63, 74, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    padding: 14px 32px;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--burgundy);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

    .open-invitation-button:hover {
        background: var(--burgundy);
        color: white;
        transform: translateY(-2px);
    }

/* �i�ek s�sleri */

.floral {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

    .floral img {
        width: 100%;
        display: block;
    }

.floral-top-left {
    top: -20px;
    left: -30px;
    width: 280px;
}

.floral-bottom-right {
    right: -40px;
    bottom: -25px;
    width: 300px;
    transform: rotate(180deg);
}

/* Ana i�erik */

.invitation-page {
    position: relative;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.9s ease;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(184, 111, 121, 0.12), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(185, 154, 106, 0.12), transparent 28rem),
        linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(248, 240, 232, 0.98));
}

    .invitation-page.visible {
        opacity: 1;
        transform: translateY(0);
    }

.content-container {
    position: relative;
    z-index: 2;
    width: min(92%, 1000px);
    margin: 0 auto;
}

/* Kar��lama b�l�m� */

.welcome-section {
    position: relative;
    text-align: center;
    padding: 100px 15px 70px;
}

.small-heading {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.welcome-family {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(2.3rem, 6vw, 4rem);
    color: var(--burgundy);
}

.welcome-text {
    max-width: 650px;
    margin: 18px auto 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--muted);
}

.decorative-line {
    width: 70px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto;
}

/* Etkinlikler */

.events-section {
    padding: 40px 0 100px;
}

.section-title {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 500;
    color: var(--burgundy);
    margin-bottom: 45px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(185, 154, 106, 0.34);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 245, 0.9));
    box-shadow: 0 24px 70px rgba(85, 52, 56, 0.11);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 22px 65px rgba(85, 52, 56, 0.14);
    }

.event-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--soft-cream);
}

.event-body {
    position: relative;
    z-index: 2;
    padding: 28px;
    text-align: center;
}

.event-type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 8px;
}

.event-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0 0 16px;
    color: var(--burgundy);
}

.event-date {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.42rem;
    color: var(--text);
    margin-bottom: 6px;
}

.event-venue {
    margin-top: 18px;
    font-weight: 500;
    color: var(--text);
}

.event-address {
    margin-top: 8px;
    line-height: 1.6;
    font-size: 0.9rem;
    color: var(--muted);
}

.event-note {
    margin-top: 20px;
    border-top: 1px solid rgba(184, 111, 121, 0.2);
    border-bottom: 1px solid rgba(184, 111, 121, 0.14);
    padding: 14px 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    color: var(--burgundy);
}

/* Footer */

.wedding-footer {
    padding: 70px 20px;
    text-align: center;
    background: var(--soft-cream);
}

.footer-couple {
    font-family: "Great Vibes", cursive;
    font-size: 3rem;
    color: var(--burgundy);
}

.footer-message {
    margin-top: 8px;
    color: var(--muted);
}

/* Mobil */

@media (max-width: 768px) {

    .floral-top-left {
        width: 190px;
    }

    .floral-bottom-right {
        width: 210px;
    }

    .cover-content {
        padding: 30px 18px;
    }

    .welcome-section {
        padding-top: 75px;
    }

    .events-section {
        padding-bottom: 70px;
    }

    .event-card {
        border-radius: 22px;
    }

    .event-image {
        height: 200px;
    }
}

/* Geri say�m */

.countdown-section {
    text-align: center;
    padding: 10px 0 80px;
}

.countdown-title {
    margin: 0 0 30px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--burgundy);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 620px;
    margin: 0 auto;
}

.countdown-box {
    padding: 24px 10px;
    border: 1px solid rgba(185, 154, 106, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 35px rgba(85, 52, 56, 0.06);
}

    .countdown-box span {
        display: block;
        font-family: "Cormorant Garamond", serif;
        font-size: 2.6rem;
        font-weight: 500;
        color: var(--burgundy);
        line-height: 1;
    }

    .countdown-box small {
        display: block;
        margin-top: 8px;
        font-size: 0.7rem;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: var(--muted);
    }


/* Etkinlik butonlar� */

.event-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: var(--burgundy);
    color: white;
    border: 1px solid var(--burgundy);
    transition: 0.3s ease;
}

    .event-button:hover {
        transform: translateY(-2px);
        color: white;
    }

    .event-button.secondary {
        background: rgba(255, 250, 245, 0.66);
        color: var(--burgundy);
    }

        .event-button.secondary:hover {
            background: var(--burgundy);
            color: white;
        }


@media (max-width: 576px) {

    .countdown-grid {
        gap: 8px;
    }

    .countdown-box {
        padding: 18px 5px;
        border-radius: 16px;
    }

        .countdown-box span {
            font-size: 2rem;
        }

        .countdown-box small {
            font-size: 0.58rem;
        }

    .event-actions {
        flex-direction: column;
    }

    .event-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* RSVP */

.rsvp-section {
    padding: 90px 0 110px;
    text-align: center;
    background: linear-gradient( rgba(248, 240, 232, 0.75), rgba(255, 250, 245, 0.95) );
}

.rsvp-intro {
    max-width: 620px;
    margin: -20px auto 45px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--muted);
}

.rsvp-form {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.rsvp-event-card {
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 26px;
    border: 1px solid rgba(185, 154, 106, 0.25);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 15px 50px rgba(85, 52, 56, 0.07);
}

.rsvp-event-title {
    margin: 0 0 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--burgundy);
}

.attendance-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.attendance-option {
    cursor: pointer;
}

    .attendance-option input {
        display: none;
    }

    .attendance-option span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 15px;
        border-radius: 999px;
        border: 1px solid rgba(127, 63, 74, 0.25);
        transition: 0.25s ease;
        color: var(--burgundy);
    }

    .attendance-option input:checked + span {
        background: var(--burgundy);
        border-color: var(--burgundy);
        color: white;
    }

.guest-count-area {
    margin-bottom: 25px;
}

    .guest-count-area > label,
    .rsvp-note > label {
        display: block;
        margin-bottom: 10px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text);
    }

    .guest-count-area small {
        display: block;
        margin-top: 8px;
        font-size: 0.72rem;
        color: var(--muted);
    }

.guest-counter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(185, 154, 106, 0.35);
    overflow: hidden;
    background: white;
}

.counter-button {
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    color: var(--burgundy);
    cursor: pointer;
}

.guest-count-input {
    width: 60px;
    border: 0;
    outline: none;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    color: var(--text);
}

    .guest-count-input::-webkit-inner-spin-button,
    .guest-count-input::-webkit-outer-spin-button {
        appearance: none;
    }

.rsvp-note textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(185, 154, 106, 0.3);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    resize: vertical;
    outline: none;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
}

    .rsvp-note textarea:focus {
        border-color: var(--rose);
    }

.rsvp-note span {
    color: var(--muted);
    font-weight: 400;
}

.rsvp-submit {
    display: block;
    width: min(100%, 380px);
    margin: 35px auto 0;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background: var(--burgundy);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(127, 63, 74, 0.2);
    transition: 0.3s ease;
}

    .rsvp-submit:hover {
        transform: translateY(-2px);
    }

.rsvp-message {
    max-width: 720px;
    margin: 0 auto 25px;
    padding: 16px 20px;
    border-radius: 16px;
    text-align: center;
}

    .rsvp-message.success {
        background: #eef5ee;
        color: #4e6f50;
    }

    .rsvp-message.error {
        background: #f9ecec;
        color: #8b4141;
    }


@media (max-width: 576px) {

    .rsvp-section {
        padding: 70px 16px 80px;
    }

    .rsvp-event-card {
        padding: 22px;
        border-radius: 20px;
    }

    .attendance-options {
        grid-template-columns: 1fr;
    }
}

.personal-invitation-message {
    margin-top: 22px;
    color: var(--burgundy);
    font-style: italic;
}

.footer-contact {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

    .footer-contact span {
        color: var(--muted);
    }

    .footer-contact a {
        color: var(--burgundy);
        text-decoration: none;
        font-weight: 500;
    }
.invitation-page::before,
.invitation-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.invitation-page::before {
    z-index: 0;
    background-image: var(--invitation-bg-image);
    background-position: center;
    background-size: cover;
    opacity: 0.035;
    filter: saturate(0.75);
}

.invitation-page::after {
    z-index: 1;
    background-image: var(--floral-decor-image), var(--floral-decor-image);
    background-repeat: no-repeat;
    background-position: left -90px top 120px, right -95px bottom 180px;
    background-size: 260px, 300px;
    opacity: 0.075;
}

.welcome-section::before {
    content: "";
    position: absolute;
    top: 62px;
    left: 50%;
    width: min(92vw, 760px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(185, 154, 106, 0.38), transparent);
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid rgba(185, 154, 106, 0.22);
    border-radius: 18px;
    pointer-events: none;
}

.event-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(185, 154, 106, 0.12);
    color: var(--burgundy);
    font-weight: 600;
}

@media (max-width: 576px) {
    .invitation-page::after {
        background-size: 170px, 190px;
        background-position: left -75px top 90px, right -80px bottom 130px;
    }
}

.rsvp-event-card.rsvp-card-highlight {
    animation: rsvpFocusPulse 1.6s ease;
}

@keyframes rsvpFocusPulse {
    0% {
        border-color: rgba(185, 154, 106, 0.25);
        box-shadow: 0 15px 50px rgba(85, 52, 56, 0.07);
    }

    30% {
        border-color: rgba(185, 154, 106, 0.78);
        box-shadow: 0 18px 58px rgba(127, 63, 74, 0.18);
    }

    100% {
        border-color: rgba(185, 154, 106, 0.25);
        box-shadow: 0 15px 50px rgba(85, 52, 56, 0.07);
    }
}
