:root {
    --primary-color: #e50914; /* Netflix kırmızısı */
    --accent-color: #ffd700;  /* Altın dokunuş */
    --bg-dark: #0a0a0c;
    --card-bg: rgba(22, 22, 29, 0.75);
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    padding: 20px 15px 100px 15px;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Arka plan parlama efekti */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Müzik Çalar Widget */
.music-player-card {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 470px;
    background: rgba(18, 18, 22, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-info i {
    font-size: 24px;
    color: var(--primary-color);
}

.spin {
    animation: spin 4s linear infinite;
}

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

.music-title { font-size: 14px; font-weight: 600; }
.music-sub { font-size: 11px; color: var(--text-muted); }

.btn-icon {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kart Genel Yapısı */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Hero */
.hero {
    text-align: center;
    padding: 20px 0;
}

.badge {
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary-color);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin: 12px 0 6px 0;
}

.subtitle { color: var(--text-muted); font-size: 14px; }

/* Şiir Kartı */
.poem-card {
    position: relative;
    text-align: center;
    border-left: 3px solid var(--accent-color);
}

.quote-icon {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

.poem-text {
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
    color: #e2e2e8;
}

.poem-author {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Neden Sen Kartı */
.feature-card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.reason-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.reason-item i { color: var(--accent-color); margin-bottom: 6px; }
.reason-item h4 { font-size: 14px; margin-bottom: 4px; }
.reason-item p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Şarkı Ekleme Kartı */
.interactive-music h3 { font-size: 16px; margin-bottom: 8px; }
.interactive-music p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.music-input-box {
    display: flex;
    gap: 8px;
}

.music-input-box input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: 10px;
    color: white;
    font-size: 12px;
    outline: none;
}

.music-input-box button {
    background: var(--text-main);
    color: black;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.shared-song {
    margin-top: 12px;
    padding: 10px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 8px;
    font-size: 12px;
}

.shared-song a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Teklif Kartı */
.proposal-card {
    text-align: center;
    padding: 35px 20px;
}

.question { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sub-question { color: var(--primary-color); font-weight: 600; margin-bottom: 25px; }

.buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 100px;
}

.btn {
    padding: 15px 20px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-yes {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Sayaç Kartı */
.timer-card {
    text-align: center;
    border: 1px solid rgba(229, 9, 20, 0.5);
    animation: fadeIn 0.8s ease-in-out;
}

.celebration-header h2 { font-size: 22px; color: var(--accent-color); }
.celebration-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.timer-display {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 10px;
    min-width: 55px;
}

.time-box label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
}

.timer-footer { font-size: 12px; color: var(--accent-color); font-style: italic; }

.hidden { display: none !important; }

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

/* Playlist Paneli */
.playlist-panel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 470px;
    max-height: 55vh;
    overflow-y: auto;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pl-header h3 { font-size: 15px; }
.pl-close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; }

#pl-list { list-style: none; }
#pl-list li {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}
#pl-list li small { color: var(--text-muted); font-size: 11px; }
#pl-list li:hover { background: rgba(255, 255, 255, 0.06); }
#pl-list li.active { background: rgba(229, 9, 20, 0.2); }
#pl-list li.active span { color: var(--accent-color); }

.pl-controls { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }

/* Yıldızlı Gökyüzü */
#sky {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Açılış Ekranı */
body.intro-active { overflow: hidden; height: 100vh; }

.intro {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: opacity 1.4s ease, visibility 1.4s ease;
}

.intro.cikis {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-glow {
    position: absolute;
    width: min(80vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.22), transparent 65%);
    animation: introNefes 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes introNefes {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50%      { transform: scale(1.1); opacity: 1; }
}

.intro-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 460px;
}

.intro-line {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.intro-line.show { opacity: 1; transform: none; }

.intro-hello {
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.intro-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(34px, 10vw, 52px);
    font-weight: 700;
    color: var(--accent-color);
    min-height: 1.3em;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
}

.intro-name.typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 4px;
    background: var(--accent-color);
    vertical-align: -0.05em;
    animation: imlec 0.8s steps(1) infinite;
}

@keyframes imlec { 50% { opacity: 0; } }

.intro-text { font-size: 16px; line-height: 1.6; color: #e2e2e8; }
.intro-ready { font-size: 18px; font-weight: 600; color: var(--primary-color); }

.intro-skip {
    position: absolute;
    bottom: 24px;
    right: 20px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Oynatıcı Kontrolleri */
.pl-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.pl-progress input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 4px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.pl-controls { gap: 8px; align-items: center; }
.pl-controls .btn-icon { width: 34px; height: 34px; flex-shrink: 0; font-size: 13px; }
.pl-controls #pl-play { width: 42px; height: 42px; font-size: 15px; }

.btn-icon.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.btn-icon.ghost.on {
    background: rgba(229, 9, 20, 0.25);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.6);
}
.seek-btn { position: relative; }
.seek-btn b {
    position: absolute;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
    top: 50%; left: 50%;
    transform: translate(-50%, -45%);
}

/* Hayır Butonu Tepkileri */
.btn-no { transform-origin: center; }
.btn-yes { transition: all 0.35s ease; }
.no-msg {
    margin-top: 14px;
    font-size: 13px;
    color: var(--accent-color);
    font-style: italic;
    animation: fadeIn 0.6s ease-in-out;
}

/* Neden Sen Kartları */
.feature-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: -6px 0 16px;
}
.reason-item {
    padding: 16px 14px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 215, 0, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.14);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.reason-item:hover { transform: translateY(-3px); border-color: rgba(255, 215, 0, 0.4); }
.reason-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    margin-bottom: 10px;
}
.reason-item .reason-icon i { margin: 0; font-size: 15px; }
.reason-item h4 { font-size: 14px; margin-bottom: 5px; }
.reason-item p { font-size: 12px; line-height: 1.55; }
.feature-foot {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    color: var(--accent-color);
}
.reason-item.bekliyor { opacity: 0; }
.reason-item.gorundu { animation: kartGir 0.7s ease backwards; animation-delay: var(--d, 0s); }
@keyframes kartGir {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* Neon Logo */
.neon-logo {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    text-align: center;
    padding: 8px 26px 9px;
    border-radius: 18px;
    border: 2px solid #ffb3c6;
    background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.16), rgba(10, 10, 12, 0.6) 75%);
    backdrop-filter: blur(3px);
    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 14px #ff4d79,
        0 0 34px #e50914,
        inset 0 0 12px rgba(229, 9, 20, 0.55),
        inset 0 0 3px rgba(255, 179, 198, 0.5);
}
.neon-logo.on     { visibility: visible; animation: neonAc 1.9s linear forwards; }
.neon-logo.on.cik { animation: neonSon 0.9s ease forwards; }

.neon-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    animation: neonNefes 2.2s ease-in-out 1.9s infinite alternate;
}
.neon-letter {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    text-shadow:
        0 0 3px #fff,
        0 0 8px #ff8fab,
        0 0 18px #ff2e63,
        0 0 36px #e50914,
        0 0 64px #e50914;
}
.neon-heart {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    color: #ff4d6d;
    filter: drop-shadow(0 0 4px #ff4d6d) drop-shadow(0 0 12px #e50914) drop-shadow(0 0 24px #e50914);
    animation: neonAtis 1.1s ease-in-out infinite;
}
.neon-names {
    margin-top: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffe9a8;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.7), 0 0 12px rgba(255, 215, 0, 0.4);
}
.neon-names:empty { display: none; }

.neon-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 8px #ff8fab, 0 0 18px #ff2e63, 0 0 32px #e50914;
}
.neon-mini i {
    font-size: 15px;
    color: #ff4d6d;
    filter: drop-shadow(0 0 4px #ff4d6d) drop-shadow(0 0 12px #e50914);
    animation: neonAtis 1.1s ease-in-out infinite;
}
.neon-mini:empty { display: none; }

@keyframes neonAc {
    0%   { opacity: 0;    transform: translate(-50%, -26px) scale(0.94); }
    6%   { opacity: 1; }
    9%   { opacity: 0.15; }
    13%  { opacity: 1; }
    17%  { opacity: 0.25; }
    22%  { opacity: 0.9; }
    26%  { opacity: 0.2; }
    34%  { opacity: 1;    transform: translate(-50%, 0) scale(1); }
    100% { opacity: 1;    transform: translate(-50%, 0) scale(1); }
}
@keyframes neonSon {
    from { opacity: 1; transform: translate(-50%, 0); }
    to   { opacity: 0; transform: translate(-50%, -14px); }
}
@keyframes neonNefes { from { filter: brightness(1); } to { filter: brightness(1.18); } }
@keyframes neonAtis  { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* =====================================================
   SÜRPRİZ BUTONU + TAM EKRAN ANİMASYON KATMANI
   ===================================================== */
.btn-surprise {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 22px;
    overflow: hidden;
    color: #ffe9a8;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(229, 9, 20, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.14), inset 0 0 14px rgba(255, 215, 0, 0.06);
}
.btn-surprise::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: surprizParilti 3.6s ease-in-out infinite;
    pointer-events: none;
}
.btn-surprise:active { transform: scale(0.98); }
@keyframes surprizParilti {
    0%, 55% { transform: translateX(-120%); }
    100%    { transform: translateX(120%); }
}

body.sx-acik { overflow: hidden; }

.surprise {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    touch-action: none;
    overscroll-behavior: contain;
    -webkit-user-select: none;
    user-select: none;
}
.surprise.acik { opacity: 1; visibility: visible; }

.sx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.sx-caption {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(40% + min(35vw, 23.5vh) + 28px);
    padding: 0 24px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(18px, 5.2vw, 26px);
    letter-spacing: 0.06em;
    color: #ffe9a8;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.4s ease, transform 1.4s ease;
    pointer-events: none;
}
.sx-caption.show { opacity: 1; transform: none; }

.sx-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d6d6de;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}
.sx-close:focus-visible,
.btn-surprise:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .btn-surprise::after { animation: none; }
    .surprise, .sx-caption { transition-duration: 0.01s; }
}
