﻿/* ---------- Genel ---------- */
:root {
    --accent: #d81b60;
    --accent-2: #ff80ab;
    --bg: #fff0f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #222;
    -webkit-font-smoothing: antialiased;
}

/* ---------- HERO & Sayaç ---------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.55);
    display: block;
}

.hero-text {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%,-50%);
    text-align: center;
    color: white;
    z-index: 3;
}

    .hero-text h1 {
        font-size: 2.6rem;
        margin: 0 0 8px;
    }

    .hero-text p {
        margin: 0;
        font-size: 1.1rem;
        opacity: .95;
    }

.counter-overlay {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.12);
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 3;
    font-weight: 600;
}

/* ---------- SLIDER ---------- */
.gallery {
    padding: 28px 0;
}

.slider {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
    border-radius: 12px;
}

.slides {
    display: flex;
    gap: 12px;
    transition: transform .6s ease;
    will-change: transform;
}

.slide {
    flex: 0 0 25%; /* 4 gösterim */
    padding-bottom: 6px;
}

    .slide img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

@media (max-width:900px) {
    .slide {
        flex: 0 0 50%;
    }

        .slide img {
            height: 180px;
        }
}

/* ---------- MUSIC SECTION ---------- */
.music-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #ffe3ed, #fff0f7);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.music-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 140px;
}

.big-record {
    position: relative;
    width: 140px;
    height: 140px;
    transition: transform 0.3s ease;
}

    .big-record .vinyl {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: block;
        filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
        transform-origin: center center;
        transition: transform 0.3s ease;
    }

    .big-record .cover {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 60%;
        height: 60%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
    }

    .big-record.playing .vinyl {
        animation: spin 5s linear infinite;
    }

.play-btn {
    font-size: 1.6rem;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(216,27,96,.18);
    transition: background 0.25s, transform 0.25s;
}

    .play-btn:hover {
        background: var(--accent-2);
        transform: scale(1.08);
    }

.music-right {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.3);
    padding: 16px 20px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

    .music-right h2 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--accent);
        margin: 0 0 8px;
        text-align: center;
    }

#lyrics-box {
    min-height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 14px;
    color: #222;
    font-size: 0.95rem;
    text-align: center;
}

#seekbar {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--accent);
    cursor: pointer;
}

#time-display {
    font-size: 0.9rem;
    margin-top: 6px;
    text-align: center;
    font-weight: 500;
    color: #555;
}

/* ---------- FLOATING HEARTS ---------- */
#floating-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 26px;
    opacity: .9;
    pointer-events: auto;
    user-select: none;
    transform: translate3d(0,0,0);
    will-change: transform,opacity;
    text-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ---------- CENTER MESSAGE ---------- */
#center-message {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) scale(.85);
    background: #fff;
    padding: 18px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    color: var(--accent);
    font-size: 1.25rem;
    z-index: 99999;
    opacity: 0;
    transition: transform .28s ease,opacity .28s ease;
    pointer-events: none;
}

    #center-message.show {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1);
    }

/* ---------- TIMELINE ---------- */
.timeline-wrap {
    padding: 36px 12px 80px;
    text-align: center;
}

    .timeline-wrap h2 {
        font-size: 1.8rem;
        margin-bottom: 18px;
        color: var(--accent);
    }

.timeline-track {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    border-top: 3px solid rgba(216,27,96,0.12);
}

.timeline-item {
    min-width: 110px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: transform .18s ease,box-shadow .18s ease;
}

    .timeline-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
    }

    .timeline-item img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid white;
        display: block;
        margin: 0 auto 8px;
    }

    .timeline-item .date {
        font-weight: 700;
        color: var(--accent);
        font-size: .95rem;
    }

    .timeline-item .text {
        font-size: .9rem;
        color: #444;
    }

.timeline-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.tl-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(216,27,96,.12);
}

    .tl-btn:hover {
        background: var(--accent-2);
    }

/* ---------- MODAL ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.86);
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

    .modal.open {
        display: flex;
    }

    .modal img {
        max-width: 86%;
        max-height: 80%;
        border-radius: 12px;
        box-shadow: 0 18px 46px rgba(0,0,0,.6);
    }

.modal-close {
    position: absolute;
    right: 28px;
    top: 20px;
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

#modal-prev {
    left: 18px;
}

#modal-next {
    right: 18px;
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 1.05rem;
}

/* ---------- Closing (Alt Yazı) ---------- */
.closing {
    text-align: center;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, #ffe3ed, #fff0f7);
    margin-top: 40px;
}

    .closing h2 {
        font-size: 2rem;
        color: var(--accent);
        font-weight: 700;
        letter-spacing: 1px;
        text-shadow: 0 4px 12px rgba(0,0,0,0.15);
        animation: fadeIn 1.8s ease forwards;
        opacity: 0;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------- Responsive ---------- */
@media (max-width:768px) {
    .hero-img {
        height: 50vh;
    }

    .slide img {
        height: 160px;
    }

    .timeline-item {
        min-width: 140px;
    }

    .timeline-track {
        gap: 14px;
    }

    .timeline-wrap {
        padding-bottom: 40px;
    }

    .music-section {
        flex-direction: column;
        gap: 24px;
    }

    .music-left {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .big-record {
        width: 120px;
        height: 120px;
    }

    .play-btn {
        font-size: 1.4rem;
        padding: 8px 16px;
    }

    .music-right {
        max-width: 100%;
        width: 92%;
        padding: 12px 14px;
        gap: 10px;
    }

    #lyrics-box {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}
