/* Düğün Davetiyesi — Referans: Hostinger Horizons konsepti */

:root {
    --dugun-bg: #0c0a09;
    --dugun-surface: rgba(28, 25, 23, 0.9);
    --dugun-text: #fafaf9;
    --dugun-muted: rgba(250, 250, 249, 0.7);
    --dugun-gold: #d4af37;
    --dugun-gold-soft: rgba(212, 175, 55, 0.4);
    --dugun-border: rgba(255, 255, 255, 0.08);
    --dugun-font-serif: 'Cormorant Garamond', serif;
    --dugun-font-sans: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body.dugun-page {
    font-family: var(--dugun-font-sans);
    background: var(--dugun-bg);
    color: var(--dugun-text);
    line-height: 1.6;
    position: relative;
}

/* Altın tozları — tüm sayfa arka planı */
/* Altın tozları — çok hafif dokunuş, büyük boşluk yok */
.dugun-gold-dust {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(212,175,55,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(212,175,55,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, rgba(212,175,55,0.15) 0%, transparent 100%);
    background-size: 100% 100%;
    opacity: 0.6;
}

.dugun-page-wrap {
    position: relative;
    z-index: 1;
}

/* Kaydırınca görünür — premium scroll reveal */
.dugun-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.dugun-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* İlk timeline satırı hemen görünsün, boşluk hissi olmasın */
.dugun-timeline-row:first-child.dugun-reveal {
    opacity: 1;
    transform: translateY(0);
}

.dugun-reveal-delay-1 { transition-delay: 0.1s; }
.dugun-reveal-delay-2 { transition-delay: 0.2s; }
.dugun-reveal-delay-3 { transition-delay: 0.3s; }

.dugun-back {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    color: var(--dugun-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--dugun-border);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    transition: color 0.2s, border-color 0.2s;
}
.dugun-back:hover { color: var(--dugun-gold); border-color: var(--dugun-gold-soft); }

/* ----- Hero — tam ekran değil, hemen aşağıda içerik görünsün ----- */
.dugun-hero {
    min-height: 0;
    height: auto;
    padding: 3.5rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.dugun-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(12,10,9,0.7) 0%, rgba(12,10,9,0.92) 100%);
    pointer-events: none;
}

.dugun-hero-inner { position: relative; z-index: 1; }

.dugun-hero-names {
    font-family: var(--dugun-font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.dugun-hero-date {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--dugun-gold);
    margin-bottom: 0.5rem;
}
.dugun-hero-date-short { opacity: 0.9; font-size: 0.95em; }

.dugun-hero-time {
    font-size: 1.1rem;
    color: var(--dugun-muted);
    margin-bottom: 1.5rem;
}

.dugun-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.dugun-countdown-item {
    text-align: center;
    min-width: 70px;
}

.dugun-countdown-value {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--dugun-gold);
    line-height: 1.2;
}

.dugun-countdown-label {
    font-size: 0.8rem;
    color: var(--dugun-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.dugun-hero-cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--dugun-gold);
    border: 2px solid var(--dugun-gold);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.dugun-hero-cta:hover {
    background: var(--dugun-gold);
    color: var(--dugun-bg);
}

.dugun-hero-scroll-hint {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--dugun-muted);
    font-size: 0.9rem;
}
.dugun-hero-scroll-hint a {
    color: var(--dugun-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dugun-hero-scroll-hint a:hover { text-decoration: underline; }
.dugun-hero-scroll-hint .arrow {
    display: inline-block;
    animation: dugun-bounce 2s ease-in-out infinite;
}
@keyframes dugun-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ----- Section common ----- */
.dugun-section {
    padding: 2.5rem 1.5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.dugun-section-title {
    font-family: var(--dugun-font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
}

.dugun-section-subtitle {
    text-align: center;
    color: var(--dugun-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Bölüm ayırıcı — ince altın çizgi */
.dugun-section-divider {
    position: relative;
}
.dugun-section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dugun-gold-soft), var(--dugun-gold), var(--dugun-gold-soft), transparent);
    opacity: 0.8;
}

/* ----- Hikayemiz (Timeline) — kaydırdıkça görseller gelir ----- */
.dugun-story {
    padding: 2.5rem 1.5rem 3.5rem;
    background: transparent;
    position: relative;
}

.dugun-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Dikey altın çizgi (sol orta) */
.dugun-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--dugun-gold-soft) 10%, var(--dugun-gold) 50%, var(--dugun-gold-soft) 90%, transparent 100%);
    transform: translateX(-50%);
    opacity: 0.7;
}

.dugun-timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
    min-height: 220px;
}

.dugun-timeline-row:last-child { margin-bottom: 0; }

.dugun-timeline-row.timeline-reverse .timeline-card { order: 2; }
.dugun-timeline-row.timeline-reverse .timeline-photo { order: 1; }

/* Kart — ince altın çerçeve, kalp, yıl */
.timeline-card {
    background: rgba(12, 10, 9, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.timeline-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-card-head .timeline-year {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dugun-gold);
}

.timeline-card h3 {
    font-family: var(--dugun-font-serif);
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
    color: var(--dugun-text);
}

.timeline-card p {
    color: var(--dugun-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.timeline-heart {
    color: var(--dugun-gold);
    font-size: 1.1rem;
    display: inline-block;
}

.timeline-photo {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.timeline-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .dugun-timeline::before { left: 0; }
    .dugun-timeline-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }
    .dugun-timeline-row.timeline-reverse .timeline-card,
    .dugun-timeline-row.timeline-reverse .timeline-photo { order: unset; }
    .timeline-photo img { height: 200px; }
}

/* ----- Etkinlik Detayları ----- */
.dugun-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dugun-detail-card {
    background: rgba(12, 10, 9, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dugun-detail-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
}

.dugun-detail-card strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dugun-muted);
    margin-bottom: 0.5rem;
}

.dugun-detail-card span { color: var(--dugun-text); }

.dugun-venue {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(12, 10, 9, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dugun-venue h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.dugun-venue-address,
.dugun-venue-program {
    color: var(--dugun-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.dugun-venue-program { margin-top: 1rem; }
.dugun-map-link {
    color: var(--dugun-gold);
    text-decoration: none;
    font-weight: 500;
}
.dugun-map-link:hover { text-decoration: underline; }

.dugun-venue-program span {
    display: inline-block;
    margin-right: 1rem;
}

/* ----- RSVP ----- */
.dugun-rsvp {
    background: var(--dugun-surface);
    padding: 2.5rem 1.5rem 3rem;
}

.dugun-rsvp form {
    max-width: 480px;
    margin: 0 auto;
}

.dugun-rsvp label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dugun-rsvp input,
.dugun-rsvp select,
.dugun-rsvp textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--dugun-border);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: var(--dugun-text);
    font-family: inherit;
    font-size: 1rem;
}

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

.dugun-rsvp textarea {
    min-height: 100px;
    resize: vertical;
}

.dugun-rsvp button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: var(--dugun-gold);
    color: var(--dugun-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.dugun-rsvp button[type="submit"]:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* ----- Takı & Hediye ----- */
.dugun-gifts {
    padding: 2.5rem 1.5rem 3rem;
}

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

.dugun-gift-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dugun-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.dugun-gift-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dugun-gift-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.dugun-gift-card .weight { font-size: 0.9rem; color: var(--dugun-muted); }

.dugun-gift-card .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dugun-gold);
    margin: 0.75rem 0;
}

.dugun-gift-card .qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dugun-gift-card .qty button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--dugun-border);
    background: rgba(0,0,0,0.3);
    color: var(--dugun-text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.dugun-gift-card .qty button:hover { border-color: var(--dugun-gold); color: var(--dugun-gold); }

.dugun-gift-card .qty span { min-width: 2rem; display: inline-block; text-align: center; }

.dugun-gift-card .add-btn {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--dugun-gold);
    color: var(--dugun-gold);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.dugun-gift-card .add-btn:hover {
    background: var(--dugun-gold);
    color: var(--dugun-bg);
}

.dugun-nakit {
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dugun-border);
    border-radius: 12px;
}

.dugun-nakit p { color: var(--dugun-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.dugun-nakit input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--dugun-border);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: var(--dugun-text);
    font-size: 1rem;
}

.dugun-nakit .add-btn { width: 100%; padding: 0.75rem; }

/* ----- Hediye Listesi ----- */
.dugun-list-section {
    background: var(--dugun-surface);
    padding: 2.5rem 1.5rem 3rem;
}

.dugun-total {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.dugun-total strong { color: var(--dugun-gold); }

.dugun-list {
    max-width: 600px;
    margin: 0 auto;
}

.dugun-list-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dugun-border);
    gap: 0.5rem;
}

.dugun-list-item .date { font-size: 0.85rem; color: var(--dugun-muted); }

.dugun-list-item .name { font-weight: 500; }

.dugun-list-item .gift { font-size: 0.9rem; color: var(--dugun-muted); }

.dugun-list-item .amount { font-weight: 600; color: var(--dugun-gold); }

/* ----- Galeri ----- */
.dugun-gallery {
    padding: 2.5rem 1.5rem 3rem;
}

.dugun-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.dugun-gallery-item {
    aspect-ratio: 1;
    background: rgba(12, 10, 9, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.dugun-gallery-item:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: scale(1.02);
}

.dugun-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
