/* ==========================================
   1. ORTAK KULLANIM (Tüm Sayfalarda Geçerli)
   ========================================== */
body, html {
    height: 100%;
    margin: 0;
    background-color: #0b0c13;
    /* index.php'de çalışan ana görsel */
    background-image: url('images/vk_giris.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Montserrat', sans-serif;
    color: white;
    user-select: none;
    -webkit-user-select: none;
}

/* Lobi, Ayarlar ve Oyun sayfalarındaki alt silüet */
.bg-koy {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background-image: url('images/vk_oda.png'); 
    background-size: cover;
    background-position: bottom;
    z-index: -1;
    opacity: 0.5; 
    pointer-events: none;
}

/* Tüm iç sayfalardaki üst başlık alanı */
.app-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.1rem;
}
.app-header a { text-decoration: none; }
.app-header i { font-size: 1.5rem; color: #a0a0ab; transition: 0.2s; }
.app-header i:hover { color: white; }

/* Genel Buton Şablonları */
.btn-custom {
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.1s ease-in-out, filter 0.2s;
    text-decoration:none;
}
.btn-custom:active { transform: scale(0.97); }

.btn-red { 
    background: linear-gradient(90deg, #b93b5a 0%, #a83250 100%); 
    color: white; 
    box-shadow: 0 4px 20px rgba(185, 59, 90, 0.4);
}
.btn-purple { 
    background: linear-gradient(90deg, #4a235a 0%, #3e1a4f 100%); 
    color: #f8f9fa; 
    box-shadow: 0 4px 20px rgba(74, 35, 90, 0.4);
}
.btn-dark {
    background-color: #1a1c23;
    color: #a0a0a0;
}
.flex-grow-1 { flex-grow: 1; }

/* ==========================================
   2. ANA SAYFA (index.php)
   ========================================== */
.overlay {
    background: linear-gradient(to bottom, rgba(11, 12, 19, 0.2) 0%, rgba(11, 12, 19, 0.85) 60%, rgba(11, 12, 19, 1) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.top-bar { padding: 20px; }
.top-bar i { font-size: 1.4rem; color: #7a7a8c; cursor: pointer; transition: color 0.2s; }
.top-bar i:hover { color: white; }

.header-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    font-weight: 700;
}
.title-vampir {
    color: #f8f9fa;
    font-size: 3rem;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    margin-bottom: -15px;
}
.title-koylu {
    color: #e63946;
    font-size: 3rem;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
}

.bottom-nav {
    background-color: #090a0f;
    border-top: 1px solid #1f222e;
    padding: 12px 0 25px 0;
}
.nav-item {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s;
    width: 33.33%;
}
.nav-item i { font-size: 1.6rem; margin-bottom: 4px; }
.nav-item.active { color: #e63946; }
.nav-item:hover { color: #f8f9fa; }

/* ==========================================
   3. ODA OLUŞTUR (olustur.php)
   ========================================== */
.room-id-box {
    border: 1px solid #c33857;
    background-color: rgba(195, 56, 87, 0.05);
    color: #c33857;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}
.qr-box {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

/* ==========================================
   4. ODAYA KATIL (katil.php)
   ========================================== */
.form-control-dark {
    background-color: #151722;
    border: 1px solid #2a2d3e;
    color: white;
    border-radius: 10px;
    padding: 14px 15px;
    font-size: 1.1rem;
}
.form-control-dark:focus {
    background-color: #1a1c29;
    border-color: #562b81;
    color: white;
    box-shadow: none;
    outline: none;
}

/* ==========================================
   5. LOBİ (lobi.php)
   ========================================== */
.player-item {
    background-color: #151722;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.badge-katildi {
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================
   6. ROL SEÇİMİ (ayarlar.php)
   ========================================== */
.role-card {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.counter-controls { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: #0b0c14; 
    padding: 5px; 
    border-radius: 8px; 
}
.counter-btn { 
    background: transparent; 
    color: #a0a0ab; 
    border: none; 
    font-size: 1.2rem; 
    cursor: pointer; 
}
.counter-btn:hover { color: white; }
.counter-val { font-weight: 600; width: 20px; text-align: center; }
/* Sayı inputlarının yanındaki çirkin okları gizler */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] { -moz-appearance: textfield; }

/* ==========================================
   7. OYUN İÇİ EKRANLAR VE KARTLAR (oyun.php)
   ========================================== */
.oyun-rol-karti {
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}
.oyun-rol-karti::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
    z-index: 0;
}
.rol-icerik { position: relative; z-index: 1; }

/*.rol-vampir { background: linear-gradient(180deg, #1a0b12 0%, #2a0815 100%); border: 1px solid #4a1525; box-shadow: 0 0 30px rgba(220, 20, 60, 0.1); }*/
.rol-vampir .rol-baslik { color: #ff4d4d; }

/*.rol-koylu { background: linear-gradient(180deg, #1f1810 0%, #302010 100%); border: 1px solid #5a3c1a; box-shadow: 0 0 30px rgba(210, 140, 50, 0.1); }*/
.rol-koylu .rol-baslik { color: #f39c12; }

/*.rol-doktor { background: linear-gradient(180deg, #0b1a12 0%, #0c2a18 100%); border: 1px solid #1a4a2a; box-shadow: 0 0 30px rgba(46, 204, 113, 0.1); }*/
.rol-doktor .rol-baslik { color: #2ecc71; }

.timer-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #2a2d3e;
    border-top-color: #562b81; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 20px rgba(86, 43, 129, 0.2);
    transition: all 1s linear;
}

.gece-oyuncu-item {
    /*background-color: #151722;*/
    border: 1px solid #2a2d3e;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.gece-oyuncu-item:hover { border-color: #562b81; background-color: #1a1c29; }
.gece-oyuncu-item.selected { border-color: #c33857; background-color: rgba(195, 56, 87, 0.1); }

/* Görünüm Geçiş Animasyonları */
.oyun-view { display: none; animation: fadeIn 0.4s ease-in-out; }
.oyun-view.active { display: block; }
.hedef-item, .oy-item { cursor: pointer; transition: 0.2s; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 10px; margin-bottom: 10px; border: 1px solid transparent; }
.hedef-item:hover, .oy-item:hover { background: rgba(255,255,255,0.1); }
.hedef-item.selected { border-color: #dc3545; background: rgba(220,53,69,0.1); }
.oy-item.selected { border-color: #0dcaf0; background: rgba(13,202,240,0.1); }
#olum-ekrani { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); z-index: 9999; display: none; flex-direction: column; justify-content: center; align-items: center;}

/* YENİ: Kart Açılış Animasyonu (Yavaşça netleşip ekrana doğru büyüme efekti) */
@keyframes revealCard {
    0% { opacity: 0; transform: scale(0.6) translateY(30px); filter: blur(10px); }
    50% { opacity: 0.5; filter: blur(3px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
.card-reveal {
    animation: revealCard 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    max-width: 250px;
    margin: 0 auto;
}
/* Gizemli Metin Gecikmesi */
.delay-text {
    animation: fadeInText 3s ease-in forwards;
    opacity: 0;
}
@keyframes fadeInText {
    0% { opacity: 0; }
    70% { opacity: 0; } /* Resim açılana kadar bekle */
    100% { opacity: 1; }
}
/* --- KART ÇEVRİLME (FLİP) ANİMASYONU --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 240px; 
    aspect-ratio: 3 / 4; 
    margin: 0 auto;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    background-color: transparent; /* Arkaplanlar şeffaf yapıldı */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.5); <-- GÖLGE KALDIRILDI */
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}