/* --- TEMA DEĞİŞKENLERİ --- */
:root {
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.2);
    --text-color: #1a1d23;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #9c27b0;
    --header-bg: #ffffff;
    --input-bg: #ffffff;
    --btn-secondary: #f44336;
    --btn-secondary-text: #ffffff;
    --primary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

[data-bs-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent-color: #d8b4fe;
    --header-bg: #1e293b;
    --input-bg: #1e293b;
    --primary-gradient: linear-gradient(135deg, #2d3436 0%, #000000 100%);
}

/* --- GENEL AYARLAR --- */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient) !important;
    background-attachment: fixed;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* --- HATA SAYFASI --- */
/* error-body: eski main-body sınıfının yerine geçer, aynı body stilleri uygulanır */
.error-body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient) !important;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* --- TEMA DEĞİŞTİRME BUTONU --- */
.theme-toggle,
.theme-float button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

/* --- ANA SAYFA VE HATA SAYFASI ORTAK LAYOUT --- */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.surprise-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#anaBaslik {
    font-family: 'Pacifico', cursive;
    color: #d81b60;
    margin-top: 20px;
}

[data-bs-theme="dark"] #anaBaslik {
    color: #ff80ab;
}

.gif-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column-reverse; /* video üstte, img altta */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
}

.gif-container img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.gif-container video {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    display: none; /* Evet'e basılana kadar gizli */
}

/* --- BUTONLAR --- */
.btn-custom,
.btn {
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

#evet {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

#hayir {
    background: var(--btn-secondary);
    color: var(--btn-secondary-text);
    z-index: 1000;
    transition: none !important;
    touch-action: none;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    /* Pencere sınırı dışına taşmasın */
    max-width: calc(100vw - 40px);
    position: fixed; /* JS ile taşınıyorsa fixed gerekli */
}

/* --- ANİMASYONLAR --- */
.animate-title {
    animation: buyuKucul 0.6s infinite alternate;
}

@keyframes buyuKucul {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* --- FOOTER --- */
.footer {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    margin-top: auto;
}