/* --- MODERN TASARIM GÜNCELLEMESİ V5 --- */

/* 1. Kök Değişkenler */
:root {
    --arkaplan-karartma: rgba(0, 0, 0, 0.7);
    --kutu-arkaplan: rgba(20, 20, 20, 0.5); 
    --kutu-golge: rgba(0, 0, 0, 0.3);
    --ana-yazi-rengi: white;
    --safak-kirmizi: rgba(200, 0, 0, 0.8);
    --hedef-sari: #ffc107;
    --modal-yesil: #28a745;
    --progress-bar-renk: linear-gradient(90deg, #1e8032, var(--modal-yesil));
    --font-ana: 'Roboto', sans-serif;
    --font-sayac: 'Orbitron', sans-serif;
}

/* 2. Temel Ayarlar */
body, html {
    margin: 0;
    font-family: var(--font-ana);
    color: var(--ana-yazi-rengi);
    background-color: #0a0a0a;
}

/* 3. Arka Plan Katmanları */
body {
    background-image: url('/arkaplan.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--arkaplan-karartma);
    z-index: -1;
}

/* 4. Ana Konteyner */
.container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

header #safak-counter { font-family: var(--font-sayac); font-size: 2.5em; padding: 10px 25px; background-color: var(--safak-kirmizi); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.5); text-shadow: 2px 2px 5px var(--kutu-golge); }
main h2 { font-size: 1.5em; font-weight: 300; letter-spacing: 2px; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
#countdown { display: flex; justify-content: center; gap: 25px; margin-top: 20px; flex-wrap: wrap;}
.time-box, #milestone-container { background-color: var(--kutu-arkaplan); padding: 20px; border-radius: 12px; min-width: 120px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px var(--kutu-golge); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.time-box span { font-family: var(--font-sayac); font-size: 4em; font-weight: 700; display: inline-block; transform-origin: center; }
.time-box p { margin-top: 10px; font-size: 1.1em; display: flex; align-items: center; justify-content: center; gap: 8px; }
#milestone-container { margin-top: 40px; padding: 15px 25px; }
#milestone-container h3 { margin: 0; font-weight: 300; font-size: 1em; letter-spacing: 2px; color: var(--hedef-sari); }
#milestone-container h2 { font-family: var(--font-sayac); margin: 5px 0; font-size: 1.8em; }
#milestone-container p { margin: 0; font-size: 1.1em; }
.message { margin-top: 40px; font-size: 1.2em; font-style: italic; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); transition: opacity 0.5s ease-in-out; }
@keyframes flip { 0% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0); opacity: 0.5; } 100% { transform: scaleY(1); opacity: 1; } }
.number-animate { animation: flip 0.6s ease-in-out; }
#share-button { position: fixed; bottom: 25px; right: 25px; z-index: 100; width: 55px; height: 55px; background-color: var(--kutu-arkaplan); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.3em; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 15px var(--kutu-golge); transition: background-color 0.3s, transform 0.3s; }
#share-button:hover { background-color: rgba(255, 255, 255, 0.3); transform: scale(1.1) rotate(15deg); }

#copy-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 200; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
#copy-modal-overlay.show {
    opacity: 1; visibility: visible;
}
.modal-content {
    background-color: var(--kutu-arkaplan); padding: 30px 40px; border-radius: 15px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: 90%; max-width: 350px; transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
#copy-modal-overlay.show .modal-content {
    transform: scale(1);
}
.modal-icon { font-size: 3.5em; color: var(--modal-yesil); }
.modal-title { margin: 15px 0 5px 0; font-size: 1.6em; font-family: var(--font-sayac); }
.modal-text { margin: 0 0 20px 0; font-size: 1em; opacity: 0.9; }
.modal-close-button { border: none; padding: 12px 30px; border-radius: 8px; font-size: 1em; font-weight: bold; cursor: pointer; transition: background-color 0.3s, transform 0.2s; }
.modal-close-button:hover { transform: scale(1.05); }
.modal-close-button.green { background-color: var(--modal-yesil); color: white; }
.modal-close-button.green:hover { background-color: #218838; }

#scroll-indicator { position: absolute; bottom: 20px; font-size: 1.5em; color: rgba(255, 255, 255, 0.5); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-8px); } }
.details-section { padding: 50px 20px 80px 20px; text-align: center; background-color: var(--kutu-arkaplan); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -5px 15px rgba(0,0,0,0.1); }
.details-section h2 { font-family: var(--font-sayac); font-size: 2em; margin-bottom: 30px; }
.content-wrapper.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.content-wrapper.hidden.visible { opacity: 1; transform: translateY(0); }
.progress-container { max-width: 800px; margin: 0 auto; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.9em; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; padding: 0 5px; }
.progress-bar-background { width: 100%; height: 25px; background-color: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 4px; box-sizing: border-box; }
#progress-bar { width: 0%; height: 100%; background: var(--progress-bar-renk); border-radius: 12px; transition: width 1s ease-out; }
#progress-text { margin-top: 15px; font-size: 1.2em; font-family: var(--font-sayac); color: var(--hedef-sari); }
.stats-container { display: flex; justify-content: center; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.stat-card { background-color: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 12px; min-width: 160px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1); flex: 1; max-width: 220px; }
.stat-card i { font-size: 2em; color: var(--hedef-sari); margin-bottom: 10px; }
.stat-card span { font-family: var(--font-sayac); font-size: 2.5em; display: block; color: var(--ana-yazi-rengi); }
.stat-card p { margin: 5px 0 0 0; font-size: 0.9em; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 768px) {
    .time-box { min-width: 100px; padding: 15px; }
    .time-box span { font-size: 3em; }
    header #safak-counter { font-size: 1.8em; }
    main h2 { font-size: 1.2em; }
    .stat-card { min-width: 120px; }
}
/* ... (mevcut CSS kodlarınız) ... */

/* Mobil Uyum */
@media (max-width: 768px) {
    .time-box { min-width: 100px; padding: 15px; }
    .time-box span { font-size: 3em; }
    header #safak-counter { font-size: 1.8em; }
    main h2 { font-size: 1.2em; }
    .stat-card { min-width: 120px; }
}

/* YENİ EKLENEN BÖLÜM: AÇILIŞ ANİMASYONU STİLLERİ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Siyah ekran yerine daha şeffaf buğulu cam efekti */
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-icon {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--hedef-sari);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

