:root {
    --bg-color: #FAF9F6;
    --bg-secondary: #FDFBF7;
    --primary-color: #6B2737;
    --secondary-color: #C08497;
    --accent-color: #E2C275;
    --text-main: #3E2F2F;
    --text-light: #5A4A4A;
    --glass-bg: rgba(253, 251, 247, 0.7);
    --glass-border: rgba(226, 194, 117, 0.3);
    --shadow-soft: 0 8px 32px rgba(107, 39, 55, 0.08);
    --shadow-sm: 0 2px 10px rgba(107, 39, 55, 0.05);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-hand: 'Brush Script MT', 'Dancing Script', cursive; /* El yazısı yedeği */
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Arka plan partikülleri */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.particle-heart {
    position: absolute;
    color: var(--secondary-color);
    opacity: 0.2;
    animation: float-up 20s infinite linear;
    font-size: 10px;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

@keyframes float-up {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* İlerleme Çubuğu */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Ortak Stiller */
.hidden {
    display: none !important;
}

.section-padding {
    padding: 60px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.title-serif {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '✧';
    display: block;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.body-text {
    color: var(--text-light);
    font-size: 1.05rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-sm { font-size: 0.9rem; }
.text-md { font-size: 1.1rem; font-weight: 500;}

.hand-written {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--primary-color);
    transform: rotate(-2deg);
}

/* Butonlar */
button {
    font-family: var(--font-sans);
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 28px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 39, 55, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(107, 39, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #ddd;
}

.btn-text {
    background: none;
    color: var(--text-light);
    padding: 8px;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

/* 1. Açılış Ekranı */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-content {
    text-align: center;
    padding: 20px;
}

.top-secret {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.7;
}

.envelope-container {
    position: relative;
    width: 200px;
    height: 140px;
    margin: 0 auto 40px;
    cursor: pointer;
    perspective: 1000px;
}

.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(107, 39, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.envelope-container:hover .envelope-body {
    transform: translateY(-5px);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 80px solid var(--secondary-color);
    transform-origin: top;
    transition: transform 0.8s ease;
    z-index: 3;
}

.envelope-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: opacity 0.5s ease;
}

.seal-text {
    font-family: var(--font-serif);
    font-size: 10px;
    color: var(--primary-color);
    text-align: center;
    font-weight: bold;
}

.envelope-letter {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 4px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
}

.letter-text {
    font-family: var(--font-hand);
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Zarf Açılma Animasyonu Sınıfları */
.envelope-open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}
.envelope-open .envelope-seal {
    opacity: 0;
}
.envelope-open .envelope-letter {
    transform: translateY(-60px);
    z-index: 2;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.author-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

/* 2. Karşılama Bölümü */
#welcome {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ampersand {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color);
    font-size: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
}

.badge {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

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

.badge-content {
    text-align: center;
    z-index: 1;
}

.badge-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

.counter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.counter-box {
    background: white;
    border-radius: 12px;
    padding: 10px;
    min-width: 65px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(192, 132, 151, 0.2);
}

.count-val {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.count-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* 3. İlk Ay Raporu */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px 16px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.report-conclusion {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: var(--primary-color);
}

/* 4. Bizim Hikayemiz (Zaman Çizelgesi) */
.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: var(--glass-border);
}

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

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

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

.timeline-photo {
    margin-top: 12px;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.timeline-photo img:hover {
    transform: scale(1.05);
}

/* Görüntü Yüklenirken Blur/Skeleton */
.img-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 5. Nedenler */
.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reason-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.reason-card:active {
    transform: scale(0.98);
}

.reason-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.reason-text {
    font-size: 0.95rem;
    color: var(--text-main);
}

.reason-card.special {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.reason-card.special .reason-text, .reason-card.special .reason-icon {
    color: white;
    font-weight: 500;
}

/* Tıklama Kalp Efekti */
.click-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 20px;
    pointer-events: none;
    animation: pop-heart 0.8s ease-out forwards;
    z-index: 10;
}

@keyframes pop-heart {
    0% { transform: scale(0.5) translateY(0); opacity: 1; }
    100% { transform: scale(1.5) translateY(-30px); opacity: 0; }
}

/* 6. Küçük Notlar */
.envelopes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.note-envelope {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.note-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
}

.envelope-label {
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.note-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-main);
    font-size: 1.1rem;
}

.note-envelope.open {
    background: var(--bg-secondary);
    border-color: var(--glass-border);
}

.note-envelope.open .note-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

/* 7. Sözleşme */
.contract-paper {
    background-color: #fdfaf6;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}

.contract-inner-border {
    border: 2px solid var(--accent-color);
    padding: 20px 15px;
    border-radius: 4px;
}

.contract-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contract-preamble {
    font-size: 0.9rem;
    text-align: justify;
    margin-bottom: 20px;
}

.contract-rules {
    padding-left: 20px;
    margin-bottom: 30px;
}

.contract-rules li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 5px;
}

.contract-rules li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.contract-footer {
    border-top: 1px solid var(--accent-color);
    padding-top: 15px;
    font-size: 0.85rem;
}

.contract-footer p {
    margin-bottom: 5px;
}

/* 8. Yenileme & 9. İmza */
.question-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-main);
}

.decision-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    position: relative;
    min-height: 120px;
}

#btn-yes, #btn-no {
    width: 100%;
    max-width: 250px;
}

#btn-no {
    position: relative; /* JS ile absolute yapılacak kaçması için */
    z-index: 10;
}

.signatures-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

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

.sig-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sig-value {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

canvas#signature-canvas {
    width: 100%;
    height: 80px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    touch-action: none;
}

.stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 4px solid #D32F2F;
    color: #D32F2F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    opacity: 0.8;
    z-index: 20;
    pointer-events: none;
    animation: stamp-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stamp-date {
    font-size: 0.8rem;
    margin-top: 5px;
}

@keyframes stamp-in {
    0% { transform: translate(-50%, -50%) rotate(-15deg) scale(3); opacity: 0; }
    100% { transform: translate(-50%, -50%) rotate(-15deg) scale(1); opacity: 0.8; }
}

/* 10. Final Mektubu */
.letter-paper {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    position: relative;
    background-image: repeating-linear-gradient(transparent, transparent 27px, #e1d8d8 28px);
    background-attachment: local;
    line-height: 28px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-main);
}

.greeting {
    margin-bottom: 20px;
}

.letter-body p {
    margin-bottom: 10px;
    text-indent: 20px;
}

.closing {
    margin-top: 30px;
}

.signature {
    text-align: right;
    margin-top: 10px;
}

.final-heart-container {
    text-align: center;
    margin-top: 40px;
}

.beating-heart {
    font-size: 40px;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
    margin-bottom: 10px;
}

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

.final-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Yüzen Butonlar ve Modal */
#music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0;
    box-shadow: var(--shadow-sm);
}

#floating-heart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    animation: float-btn 3s ease-in-out infinite;
}

@keyframes float-btn {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

#floating-message {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    z-index: 999;
    animation: fade-in-up 0.3s ease forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Galeri Tam Ekran */
#fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fullscreen-gallery:not(.hidden) {
    opacity: 1;
}

#gallery-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

#gallery-caption {
    color: white;
    margin-top: 15px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

#close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: white;
    font-size: 40px;
    padding: 0;
    line-height: 1;
}

/* Modallar */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: zoom-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-signature {
    margin: 20px 0;
    font-size: 1.5rem;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Scrollbar özelleştirme */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}
