/* ═══════════════════════════════════════════════════════════════
   İpek & Riccardo Düğün LCV — Ana Stil Dosyası
   Modern, Elegant, Mobile-First, Mavi Tonlar + Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0d1b2a;
    --primary-light: #2c5f8a;
    --accent: #4a9fd4;
    --accent-glow: #5bb8f0;
    --gold: #c8a858;
    --gold-light: #e0c878;
    --bg-deep: #0a1628;
    --bg-card: rgba(26, 58, 92, 0.35);
    --bg-card-hover: rgba(26, 58, 92, 0.55);
    --text-light: #e8eef4;
    --text-muted: #8fa8c4;
    --text-white: #ffffff;
    --border-glass: rgba(74, 159, 212, 0.2);
    --border-glass-hover: rgba(74, 159, 212, 0.4);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(74, 159, 212, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-light);
    background: var(--bg-deep);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Animated Background ────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(44, 95, 138, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74, 159, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(200, 168, 88, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* ─── Floating Particles ─────────────────────────────────────── */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 65%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ─── Main Container ─────────────────────────────────────────── */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px 20px;
}

/* ─── Glass Card ──────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 40px 30px;
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.wide {
    max-width: 560px;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Typography ──────────────────────────────────────────────── */
.heading-display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.8rem;
    color: var(--text-white);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.heading-display.gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-section {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    color: var(--text-white);
    letter-spacing: 0.02em;
}

.text-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

.text-gold {
    color: var(--gold);
}

.text-accent {
    color: var(--accent);
}

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

/* ─── Decorative Line ────────────────────────────────────────── */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.ornament-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(74, 159, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 159, 212, 0.45);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8943f 100%);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(200, 168, 88, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(200, 168, 88, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ─── Language Selection ──────────────────────────────────────── */
.lang-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    text-align: center;
}

.lang-title-stack {
    margin-bottom: 48px;
}

.lang-title-stack h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.lang-title-stack h2:nth-child(1) {
    animation-delay: 0.2s;
}

.lang-title-stack h2:nth-child(2) {
    animation-delay: 0.4s;
}

.lang-title-stack h2:nth-child(3) {
    animation-delay: 0.6s;
}

.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.8s forwards;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 168, 88, 0.15);
}

.lang-btn .flag {
    font-size: 1.4rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Landing Page ────────────────────────────────────────────── */
.landing {
    text-align: center;
    padding: 40px 20px;
}

.landing-names {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: fadeIn 0.8s ease;
}

.landing-subtitle {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ─── Love Swans ──────────────────────────────────────────────── */
.swan-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.swan-illustration {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(200, 168, 88, 0.15));
    animation: swanGlow 4s ease-in-out infinite alternate;
}

@keyframes swanGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(200, 168, 88, 0.1));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(200, 168, 88, 0.25));
    }
}

.sparkle {
    animation: sparkleAnim 2s ease-in-out infinite alternate;
}

@keyframes sparkleAnim {
    0% {
        opacity: 0.1;
        r: 0.3;
    }

    100% {
        opacity: 0.7;
        r: 1.2;
    }
}

/* ─── Event Details ───────────────────────────────────────────── */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.event-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.event-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.event-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 60px;
}

.event-value {
    font-weight: 500;
    color: var(--text-white);
}

/* ─── Forms ───────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(74, 159, 212, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238fa8c4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--primary-dark);
    color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.phone-input-row {
    display: flex;
    gap: 10px;
}

.phone-input-row .form-select {
    flex: 0 0 130px;
}

.phone-input-row .form-input {
    flex: 1;
}

/* ─── Guest Entry Card ────────────────────────────────────────── */
.guest-entry {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.guest-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.guest-entry-label {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guest-entry-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.guest-entry-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.add-guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.add-guest-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(74, 159, 212, 0.05);
}

.add-guest-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Children Note ───────────────────────────────────────────── */
.children-note {
    text-align: center;
    padding: 16px;
    margin: 20px 0;
    background: rgba(200, 168, 88, 0.05);
    border: 1px solid rgba(200, 168, 88, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold-light);
}

/* ─── Confirmation Page ───────────────────────────────────────── */
.confirmation {
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: confirmBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes confirmBounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.guest-list {
    list-style: none;
    margin: 16px 0;
}

.guest-list li {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.guest-list li .fa {
    flex-shrink: 0;
}

.note-display {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    font-style: italic;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* ─── Alert / Toast ───────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #f5a5a5;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #a5f5c8;
}

/* ─── Loading Spinner ─────────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn .spinner {
    width: 16px;
    height: 16px;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
    flex-shrink: 0;
}

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

.footer a:hover {
    color: var(--gold);
}

.lang-switcher-footer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: none;
    background: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.lang-switcher-footer:hover {
    color: var(--gold);
}

/* ─── Page Transitions ────────────────────────────────────────── */
.page-enter {
    animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-exit {
    animation: pageExit 0.3s ease forwards;
}

@keyframes pageExit {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ─── Max Guest Info Badge ────────────────────────────────────── */
.quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(74, 159, 212, 0.1);
    border: 1px solid rgba(74, 159, 212, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ─── Location Button ─────────────────────────────────────────── */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.location-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (min-width: 768px) {
    .glass-card {
        padding: 48px 40px;
    }

    .landing-names {
        font-size: 4rem;
    }

    .swan-illustration {
        width: 280px;
    }

    .action-buttons {
        flex-direction: row;
    }

    .action-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 24px 16px 16px;
    }

    .glass-card {
        padding: 28px 20px;
    }

    .landing {
        padding: 24px 12px;
    }

    .landing-names {
        font-size: 2.6rem;
    }

    .landing-subtitle {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .heading-section {
        font-size: 1.5rem;
    }

    .ornament {
        margin: 14px 0;
    }

    .swan-section {
        margin: 14px 0;
    }

    .swan-illustration {
        width: 180px;
    }

    .event-details {
        gap: 8px;
        margin: 16px 0;
    }

    .event-row {
        padding: 10px 12px;
        gap: 8px;
    }

    .event-icon {
        font-size: 1rem;
        width: 22px;
    }

    .event-label {
        font-size: 0.8rem;
        min-width: 50px;
    }

    .event-value {
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .location-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .children-note {
        padding: 12px;
        font-size: 1rem;
        margin: 14px 0;
    }

    .guest-entry {
        padding: 12px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .action-buttons {
        gap: 8px;
        margin-top: 18px;
    }

    .mb-24 {
        margin-bottom: 18px;
    }

    .mt-24 {
        margin-top: 18px;
    }

    .text-subtitle {
        font-size: 0.88rem;
    }

    .quota-badge {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }
}

@media (max-width: 374px) {
    .glass-card {
        padding: 22px 16px;
    }

    .landing-names {
        font-size: 2.2rem;
    }

    .swan-illustration {
        width: 150px;
    }
}

/* ─── Utility ─────────────────────────────────────────────────── */
.mb-0 {
    margin-bottom: 0;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.hidden {
    display: none !important;
}