/* ============================================
   SANA ÖZEL - Romantik Kişisel Site
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a1a;
    --bg-purple: #1a0a2e;
    --accent-pink: #ff4d8d;
    --accent-rose: #e84393;
    --accent-purple: #a855f7;
    --accent-violet: #7c3aed;
    --accent-gold: #fbbf24;
    --text-light: #f8f0ff;
    --text-muted: #c4b5d0;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glow-pink: 0 0 30px rgba(255, 77, 141, 0.4);
    --glow-purple: 0 0 30px rgba(168, 85, 247, 0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* CANVAS */
#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* SECTIONS */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 60px 20px;
}

.hidden {
    display: none !important;
}

/* GLASSMORPHISM */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* ============================================
   MÜZİK KONTROL PANELİ
   ============================================ */
.music-controls {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.music-btn:hover {
    background: rgba(255, 77, 141, 0.2);
    border-color: var(--accent-pink);
    box-shadow: var(--glow-pink);
    transform: scale(1.1);
}

.music-btn.playing .music-icon {
    animation: musicPulse 0.6s ease-in-out infinite alternate;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 8px 16px;
    animation: fadeIn 0.4s ease;
}

.song-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-song-btn {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
    border: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.next-song-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-pink);
}

@keyframes musicPulse {
    to { transform: scale(1.3); }
}

/* ============================================
   GİRİŞ EKRANI
   ============================================ */
.intro-section {
    background: radial-gradient(ellipse at center, var(--bg-purple) 0%, var(--bg-dark) 70%);
    flex-direction: column;
}

.intro-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.sparkle-container {
    margin-bottom: 24px;
}

.sparkle {
    display: inline-block;
    font-size: 24px;
    color: var(--accent-gold);
    margin: 0 12px;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(2) { animation-delay: 0.3s; }
.sparkle:nth-child(3) { animation-delay: 0.6s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.intro-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 16px;
    line-height: 1.3;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.intro-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* GLOW BUTTON */
.glow-btn {
    position: relative;
    padding: 18px 48px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-violet));
    border: none;
    border-radius: 60px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    letter-spacing: 1px;
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 77, 141, 0.4), 0 0 80px rgba(168, 85, 247, 0.2);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-gold), var(--accent-pink));
    background-size: 300% 300%;
    border-radius: 62px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-sparkle {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateY(-50%) skewX(-15deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -10%; }
    50% { left: 110%; }
    100% { left: 110%; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(255, 77, 141, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.floating-hearts {
    font-size: 2rem;
    margin-bottom: 32px;
}

.floating-hearts span {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    margin: 0 8px;
}

.floating-hearts span:nth-child(1) { animation-delay: 0s; }
.floating-hearts span:nth-child(2) { animation-delay: 0.4s; }
.floating-hearts span:nth-child(3) { animation-delay: 0.8s; }
.floating-hearts span:nth-child(4) { animation-delay: 1.2s; }
.floating-hearts span:nth-child(5) { animation-delay: 1.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(5px) rotate(-3deg); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    background: linear-gradient(to right, #fff, #f0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================
   SAYAÇ
   ============================================ */
.counter-section {
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 77, 141, 0.1) 0%, transparent 60%);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-subtitle, .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    font-weight: 300;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.counter-item {
    text-align: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.counter-number {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.counter-date-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.date-input {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.date-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.2);
}

/* ============================================
   SEVGİ MESAJLARI
   ============================================ */
.love-section {
    background: radial-gradient(ellipse at 60% 50%, rgba(232, 67, 147, 0.1) 0%, transparent 60%);
}

.love-message-box {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0 32px;
}

.love-message {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-align: center;
    color: var(--text-light);
    line-height: 1.6;
    transition: opacity 0.4s ease;
}

.love-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    padding: 16px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.love-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-pink);
}

.love-btn:active {
    transform: scale(0.95);
}

.heart-icon {
    font-size: 1.3rem;
    display: inline-block;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.burst-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: burstOut 1s ease-out forwards;
    pointer-events: none;
}

@keyframes burstOut {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3); }
}

/* ============================================
   MEKTUPLAR
   ============================================ */
.letters-section {
    flex-direction: column;
    background: radial-gradient(ellipse at 40% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.envelope {
    perspective: 600px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: translateY(-8px);
}

.envelope-front {
    position: relative;
    background: linear-gradient(135deg, #2a1547, #1a0a2e);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.envelope:hover .envelope-front {
    border-color: var(--accent-pink);
    box-shadow: var(--glow-pink);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 77, 141, 0.15), transparent);
    clip-path: polygon(0 0, 50% 60%, 100% 0);
    transition: all 0.5s ease;
}

.envelope:hover .envelope-flap {
    clip-path: polygon(0 0, 50% 30%, 100% 0);
}

.envelope-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.envelope-label {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--text-light);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

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

.letter-paper {
    background: linear-gradient(180deg, #1f1135, #160d28);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 48px 36px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-pink);
}

.letter-decoration {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent-pink);
}

.letter-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: center;
}

.letter-signature {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    margin-top: 32px;
    color: var(--accent-pink);
}

/* ============================================
   ZAMAN ÇİZELGESİ
   ============================================ */
.timeline-section {
    flex-direction: column;
    background: radial-gradient(ellipse at 30% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.timeline {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-pink), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-pink);
    box-shadow: 0 0 20px rgba(255, 77, 141, 0.5);
    z-index: 1;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 77, 141, 0.3);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-content {
    padding: 24px;
}

.timeline-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   YILDIZ DİLEĞİ
   ============================================ */
.wish-section {
    background: radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
}

.wish-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.wish-star {
    font-size: 4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    animation: starGlow 2s ease-in-out infinite;
}

.wish-star:hover {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

@keyframes starGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.6)); }
}

.wish-result {
    text-align: center;
    margin-top: 24px;
}

.wish-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: fadeInUp 0.8s ease;
}

.shooting-stars {
    margin-top: 16px;
    position: relative;
    height: 40px;
    overflow: hidden;
}

.shooting-stars span {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: shoot 1.5s ease-out infinite;
    top: 50%;
}

.shooting-stars span:nth-child(1) { left: 10%; animation-delay: 0s; }
.shooting-stars span:nth-child(2) { left: 40%; animation-delay: 0.4s; }
.shooting-stars span:nth-child(3) { left: 70%; animation-delay: 0.8s; }

@keyframes shoot {
    0% { transform: translateX(0) scaleX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateX(100px) scaleX(1); opacity: 0; }
}

/* ============================================
   FİNAL
   ============================================ */
.finale-section {
    background: radial-gradient(ellipse at center, rgba(255, 77, 141, 0.1) 0%, transparent 60%);
}

.finale-content {
    text-align: center;
    max-width: 600px;
}

.infinity-symbol {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: infinitySpin 6s linear infinite;
    margin-bottom: 24px;
    display: inline-block;
}

@keyframes infinitySpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.finale-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finale-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.finale-hearts span {
    display: inline-block;
    font-size: 2rem;
    margin: 0 8px;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.finale-hearts span:nth-child(2) { animation-delay: 0.2s; }
.finale-hearts span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================
   ANİMASYONLAR
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSİVE
   ============================================ */
@media (max-width: 768px) {
    .glass-card {
        padding: 32px 20px;
        margin: 0 10px;
        border-radius: 20px;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .letters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .envelope-front {
        padding: 30px 16px;
    }

    .letter-paper {
        padding: 36px 24px;
    }

    .section {
        padding: 40px 16px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-dot {
        left: 8px;
    }
}

@media (max-width: 480px) {
    .letters-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .counter-grid {
        gap: 10px;
    }

    .counter-item {
        padding: 14px 6px;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-pink), var(--accent-purple));
    border-radius: 3px;
}

/* SELECTION */
::selection {
    background: rgba(255, 77, 141, 0.3);
    color: white;
}
