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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container { width: 100%; max-width: 500px; text-align: center; }

/* BAŞLIK */
header { margin-bottom: 30px; }
header h1 { font-family: 'Mountains of Christmas', cursive; font-size: 3.5rem; color: #e94560; text-shadow: 0 0 10px rgba(233, 69, 96, 0.5); }
header p { font-size: 1rem; color: #b0c4de; margin-top: 5px; }
header .subtitle { color: #ffd700; font-weight: 600; font-size: 0.9rem; margin-top: 10px; background: rgba(255, 215, 0, 0.1); display: inline-block; padding: 5px 15px; border-radius: 20px; }

/* KART TASARIMI */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FORM */
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #e0e0e0; font-weight: 500; }
input[type="text"], textarea, select { width: 100%; padding: 12px 15px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; color: white; font-family: inherit; font-size: 1rem; transition: all 0.3s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); background: rgba(255, 255, 255, 0.15); }
textarea { height: 120px; resize: none; }
option { background-color: #1a1a2e; color: white; }

/* BUTONLAR */
button { width: 100%; padding: 15px; background: linear-gradient(45deg, #e94560, #d62e4a); border: none; border-radius: 10px; color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4); }
button:active { transform: scale(0.98); }

/* FOOTER */
footer { margin-top: 30px; font-size: 0.8rem; color: #6c757d; }
footer a { color: #ffd700; text-decoration: none; }
.legal-warning { margin-top: 10px; font-size: 0.7rem; opacity: 0.6; }

/* --- MODAL (GİZLİ PENCERE) --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; animation: fadeIn 0.3s ease; }
.modal-content { background: linear-gradient(135deg, #16213e, #1a1a2e); padding: 30px; border-radius: 20px; border: 2px solid #ffd700; text-align: center; width: 90%; max-width: 450px; box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
.modal-content h2 { font-family: 'Mountains of Christmas', cursive; color: #ffd700; font-size: 2.5rem; margin-bottom: 15px; }
.link-box { display: flex; gap: 10px; margin: 20px 0; }
.link-box input { flex: 1; background: #0f3460; border: 2px solid #ffd700; color: #fff; font-size: 0.9rem; padding: 12px; border-radius: 10px; }
.link-box button { width: auto; padding: 12px 20px; background: #ffd700; color: #1a1a2e; font-weight: bold; border-radius: 10px; }
.link-box button:hover { background: #ffec8b; transform: scale(1.05); }

/* Paylaşım Bilgi Kutusu */
.share-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(233, 69, 96, 0.1));
    border: 1px dashed #ffd700;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    animation: pulse-border 2s ease-in-out infinite;
}
.share-info p { margin: 5px 0; color: #fff; font-size: 1rem; }
.share-info .share-subtitle { font-size: 0.85rem; color: #ffd700; margin-top: 8px; }
@keyframes pulse-border {
    0%, 100% { border-color: #ffd700; box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    50% { border-color: #e94560; box-shadow: 0 0 15px rgba(233, 69, 96, 0.4); }
}

.info-note { font-size: 0.75rem; color: #b0c4de; margin-bottom: 20px; font-style: italic; }
.modal-buttons { display: flex; gap: 10px; }
.btn-primary { background: #e94560; }
.btn-secondary { background: transparent; border: 1px solid #b0c4de; color: #b0c4de; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* --- VIEW PAGE (Zarf Sayfası) İÇİN ÖZEL EFEKTLER --- */

/* Kilit İkonunun Havada Süzülmesi */
#lockedState i {
    animation: float 3s ease-in-out infinite;
}

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

/* Geri Sayım Sayacı Rakamları */
#countdown {
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* --- TEMA RENKLERİ --- */

/* Varsayılan - Kırmızı */
.theme-default .card { border-color: #e94560; }
.theme-default #senderDisplay { color: #e94560; }
.theme-default #countdown { color: #e94560; }
.theme-default #lockedState i { color: #e94560; }

/* Karlı Gece - Mavi */
.theme-snow .card { border-color: #00d4ff; box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.theme-snow #senderDisplay { color: #00d4ff; }
.theme-snow #countdown { color: #00d4ff; }
.theme-snow #lockedState i { color: #00d4ff; }

/* Altın Işıltı - Sarı */
.theme-gold .card { border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
.theme-gold #senderDisplay { color: #ffd700; }
.theme-gold #countdown { color: #ffd700; }
.theme-gold #lockedState i { color: #ffd700; }

/* Mistik Gece - Mor */
.theme-purple .card { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
.theme-purple #senderDisplay { color: #a855f7; }
.theme-purple #countdown { color: #a855f7; }
.theme-purple #lockedState i { color: #a855f7; }

/* Orman - Yeşil */
.theme-green .card { border-color: #22c55e; box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
.theme-green #senderDisplay { color: #22c55e; }
.theme-green #countdown { color: #22c55e; }
.theme-green #lockedState i { color: #22c55e; }

/* Romantik - Pembe */
.theme-pink .card { border-color: #ec4899; box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }
.theme-pink #senderDisplay { color: #ec4899; }
.theme-pink #countdown { color: #ec4899; }
.theme-pink #lockedState i { color: #ec4899; }