@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --bg: #0b0514;
    --purple: #1e0b36;
    --gold: #ffd700;
    --gold-shadow: rgba(255, 215, 0, 0.4);
}

body {
    margin: 0; padding: 0;
    background: radial-gradient(circle at center, #2a1045, var(--bg));
    color: white;
    font-family: 'Cinzel', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* Yatay kaydırmayı engeller */
}

/* --- GİZLEME SINIFI --- */
.hidden { display: none !important; }

/* --- GİRİŞ EKRANI --- */
.welcome-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #1a0b2e, #000);
    z-index: 3000; transition: opacity 0.8s ease;
    overflow-y: auto; /* Mobilde içerik sığmazsa kaydır */
}

.welcome-content { 
    text-align: center; padding: 20px; width: 90%; max-width: 500px; 
}

.welcome-content h1 {
    font-size: 2.5rem; margin-bottom: 10px; color: var(--gold);
    text-shadow: 0 0 30px var(--gold-shadow);
    line-height: 1.2;
}

.sub-text { font-family: 'Roboto', sans-serif; color: #aaa; margin-bottom: 30px; font-size: 0.9rem; }

.form-group { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.mystic-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--gold);
    border-radius: 10px;
    color: #fff;
    padding: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    outline: none;
    width: 100%; /* Kapsayıcının tamamını kapla */
    box-sizing: border-box; /* Padding taşmasını engelle */
    transition: 0.3s;
}
.mystic-input:focus { background: rgba(255,255,255,0.1); box-shadow: 0 0 15px var(--gold-shadow); }

/* MOBİL UYUM DÜZELTMESİ BURADA */
.date-row { 
    display: flex; 
    gap: 15px; 
    width: 100%;
    flex-wrap: wrap; /* Sığmazsa aşağı in */
}

.input-wrapper { 
    flex: 1; /* Eşit alan kapla */
    min-width: 120px; /* Çok küçülürse aşağı inmesi için sınır */
    text-align: left; 
}

.input-wrapper label { display: block; font-size: 0.8rem; color: var(--gold); margin-bottom: 5px; font-family: 'Roboto', sans-serif; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.tiny-hint { font-size: 0.7rem; color: #666; font-family: 'Roboto', sans-serif; margin-top: -10px; }

.btn-gold-large {
    background: linear-gradient(45deg, #8B6508, #FFD700, #8B6508);
    background-size: 200%; padding: 15px 0; border: none; width: 100%;
    font-family: 'Cinzel', serif; font-weight: bold; font-size: 1.2rem;
    border-radius: 50px; cursor: pointer; color: #1e0b36;
    margin-top: 10px; transition: 0.3s; animation: shine 3s infinite linear;
}
.btn-gold-large:hover { transform: scale(1.02); box-shadow: 0 0 30px var(--gold); }

/* --- ANA EKRAN --- */
.app-container { text-align: center; width: 100%; max-width: 1100px; padding: 20px; box-sizing: border-box; }
.fade-in { animation: fadeIn 1.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

h2 { margin: 0; color: var(--gold); font-size: 2rem; text-shadow: 0 0 20px var(--gold-shadow); }
.zodiac-display { font-family: 'Roboto', sans-serif; color: #ccc; font-size: 0.9rem; margin-top: 5px; letter-spacing: 2px; }
.gold-line { width: 100px; height: 2px; background: var(--gold); margin: 15px auto 40px; opacity: 0.7; }

/* KARTLAR */
.card-grid { display: flex; justify-content: center; gap: 15px; min-height: 320px; flex-wrap: wrap; perspective: 1000px; margin-bottom: 30px; }
.card-slot { width: 140px; height: 240px; position: relative; cursor: pointer; transition: transform 0.3s; transform-style: preserve-3d; }
.card-slot:hover { transform: translateY(-15px); }
.card-slot.flipped { transform: rotateY(180deg); }
.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; border: 2px solid var(--gold); overflow: hidden; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.back-face { background: #150a20; display: flex; align-items: center; justify-content: center; }
.front-face { background: #fff; transform: rotateY(180deg); }
.front-face img { width: 100%; height: 100%; object-fit: cover; }
.mystic-pattern { width: 80%; height: 80%; border: 1px solid rgba(255,215,0,0.3); transform: rotate(45deg); }
.hint-text { position: absolute; bottom: -30px; width: 100%; font-family: 'Roboto', sans-serif; font-size: 0.9rem; color: #aaa; }

/* ALT KISIM */
#status-text { font-family: 'Roboto', sans-serif; font-size: 1rem; color: #ccc; margin-bottom: 20px; }
.btn-gold { background: linear-gradient(45deg, #8B6508, #FFD700, #8B6508); background-size: 200%; border: none; padding: 15px 40px; font-family: 'Cinzel', serif; font-weight: bold; font-size: 1.1rem; border-radius: 50px; cursor: pointer; color: #1e0b36; animation: shine 3s infinite linear; transition: 0.3s; max-width: 100%; }
.btn-gold:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--gold); }
@keyframes shine { to { background-position: 200%; } }

/* --- MODAL --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.modal-content { background: #150824; border: 2px solid var(--gold); width: 100%; max-width: 700px; padding: 25px; border-radius: 20px; box-shadow: 0 0 50px rgba(0,0,0,0.8); text-align: center; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 15px; flex-shrink: 0; }
.modal-header h2 { margin: 0; color: var(--gold); font-size: 1.3rem; }
.close { color: var(--gold); font-size: 2.5rem; cursor: pointer; }
.text-area { margin-top: 15px; font-family: 'Roboto', sans-serif; line-height: 1.6; color: #eee; overflow-y: auto; text-align: left; font-size: 1rem; flex-grow: 1; }
.loader { text-align: center; padding: 30px; }
.spinner { width: 40px; height: 40px; margin: 0 auto 20px; border: 3px solid rgba(255,215,0,0.3); border-top: 3px solid var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FAQ BÖLÜMÜ --- */
.faq-section { width: 100%; max-width: 800px; margin: 40px auto 20px; text-align: left; padding: 15px; border-top: 1px solid rgba(212, 175, 55, 0.3); box-sizing: border-box; }
.faq-section h3 { text-align: center; color: var(--gold); font-family: 'Cinzel', serif; margin-bottom: 20px; text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); font-size: 1.2rem; }
details { background: rgba(255, 255, 255, 0.03); margin-bottom: 10px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.2); overflow: hidden; transition: 0.3s; }
summary { padding: 15px; cursor: pointer; font-family: 'Cinzel', serif; color: #ddd; font-weight: bold; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; font-weight: bold; }
details[open] summary::after { content: '-'; }
details p { padding: 0 15px 15px; color: #aaa; font-family: 'Roboto', sans-serif; line-height: 1.5; font-size: 0.9rem; margin: 0; }

/* --- MEDYA SORGULARI (MOBİL UYUM İÇİN) --- */
@media (max-width: 600px) {
    /* Mobilde tarih ve saat alt alta olsun */
    .date-row {
        flex-direction: column; /* Yan yana değil, alt alta */
        gap: 10px;
    }
    
    .input-wrapper {
        width: 100%; /* Tam genişlik */
    }

    .welcome-content h1 { font-size: 2rem; }
    .card-slot { width: 100px; height: 170px; } /* Kartları biraz küçült */
    .card-grid { gap: 10px; min-height: auto; }
    h2 { font-size: 1.5rem; }
}