@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary: #e63946; /* CanlÄ± GÃ¼l KÄ±rmÄ±zÄ± / Pembe */
    --primary-light: #ffe3e4;
    --dark: #1d3557; /* Koyu Lacivert */
    --light: #f8f9fa; /* Daha ferah beyaz */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.title-font {
    font-family: 'Great Vibes', cursive;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh; /* iPhone Safari adres cubugu icin daha kararlı viewport */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/hero.jpg');
    background-size: cover;
    background-position: center 15%;
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for parallax/animation */
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-content {
    color: var(--dark);
    padding: 2rem;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1.5s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 2s ease-out 1s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    background: transparent;
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
section {
    padding: 5rem 1rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

/* Story Section */
.story-section {
    background: #fff;
    text-align: center;
}

.story-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    position: relative;
    padding: 2rem;
}

/* Locations */
.locations {
    background-color: var(--light);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.location-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.location-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-date {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn-map {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-map:hover {
    background: #d90429;
}

.btn-map i {
    color: white !important;
    font-size: inherit !important;
    margin-bottom: 0 !important;
}

.completed-event {
    position: relative;
    opacity: 0.85;
}

.completed-event::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

.completed-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #198754;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(25,135,84,0.4);
    z-index: 2;
    transform: rotate(5deg);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0) rotate(0); opacity: 0; }
    100% { transform: scale(1) rotate(5deg); opacity: 1; }
}

/* RSVP / LCV */
.rsvp-section {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    position: relative;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.btn-submit:hover {
    background: #b8982f;
    transform: translateY(-2px);
}

/* Guestbook */
.guestbook-section {
    background: var(--light);
}

.messages-container {
    max-width: 800px;
    margin: 2rem auto;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.message-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-author {
    font-weight: bold;
    color: var(--dark);
}

.message-date {
    font-size: 0.8rem;
    color: #888;
}

/* Gallery Section */
.gallery-section {
    background: #fff;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* aspect-ratio desteklemeyen eski Safari surumleri icin kare galeri fallback */
@supports not (aspect-ratio: 1) {
    .gallery-item {
        height: 0;
        padding-bottom: 100%;
    }

    .gallery-item img,
    .gallery-item video {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Upload Button */
.upload-btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: min(3rem, 11vw); white-space: nowrap; }
    .hero-subtitle { font-size: 1rem; }
    .countdown-item { min-width: 60px; padding: 0.5rem; }
    .countdown-number { font-size: 1.5rem; }
    
    .section-title { font-size: 2.5rem; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Timeline / Program Akışı */
.timeline-section {
    background: #fff;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
    padding: 0 2rem;
    box-sizing: border-box;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-icon {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}
.timeline-content {
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
    width: 100%;
}
.timeline-time {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 70px;
        padding-right: 15px;
    }
    .timeline-icon {
        left: 10px !important;
    }
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.10), transparent 42%),
        linear-gradient(145deg, #1d3557 0%, #142945 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1.25rem 3rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer::before,
.site-footer::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.site-footer::before {
    top: -130px;
    left: -70px;
}

.site-footer::after {
    right: -90px;
    bottom: -150px;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
}

.footer-brand-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.35rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.footer-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.footer-brand-title {
    margin: 0 0 0.9rem;
}

.footer-brand-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-title, 'Montserrat', sans-serif);
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-brand-title a:hover,
.footer-brand-title a:focus-visible {
    opacity: 0.86;
    transform: translateY(-1px);
}

.footer-brand-title a i {
    font-size: 0.68rem;
    opacity: 0.62;
}

.footer-tagline {
    max-width: 720px;
    margin: 0 auto 1.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    line-height: 1.75;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0 auto 1.8rem;
    flex-wrap: wrap;
}

.footer-contact-item {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    font-size: 0.83rem;
    line-height: 1.45;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.footer-contact-item:visited {
    color: rgba(255, 255, 255, 0.92) !important;
}

.footer-contact-item:hover,
.footer-contact-item:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-contact-icon {
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.76rem;
}

.footer-address {
    flex-basis: 100%;
    max-width: 580px;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 520px;
    margin: 0 auto 1.25rem;
    color: rgba(255, 255, 255, 0.42);
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18));
}

.footer-divider::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.footer-divider span {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
}

.footer-legal {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.72rem;
    line-height: 1.65;
}


.footer-legal-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

.footer-legal i {
    margin-right: 0.4rem;
    font-size: 0.68rem;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 3.25rem 1rem 2.5rem;
    }

    .footer-contact {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 0.65rem;
    }

    .footer-contact-item,
    .footer-address {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        text-align: left;
        padding: 0.8rem 0.9rem;
    }

    .footer-tagline {
        font-size: 0.86rem;
    }
}

