
/* style.css - Lobi Modernizasyonu */

:root {
    --ana-renk: #f39c12; /* Altın Sarısı / Turuncu */
    --arka-plan: #0f172a; /* Derin Gece Mavisi */
    --kart-arka-plan: #1e293b;
    --yazi-renk: #f8fafc;
}

body {
    background-color: var(--arka-plan);
    color: var(--yazi-renk);
    background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

/* Navbar Geliştirme */
.navbar {
    background-color: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--ana-renk);
}

/* Kart Tasarımları */
.card {
    background: var(--kart-arka-plan) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Oda Kartları (Oyun Masaları) */
.oda-kart {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #1e293b, #111827);
    border-left: 4px solid var(--ana-renk) !important;
    margin-bottom: 15px;
}

.oda-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
    border-left: 4px solid #fff !important;
}

/* Form Elemanları */
.form-control {
    background-color: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--ana-renk) !important;
    box-shadow: 0 0 0 0.25rem rgba(243, 156, 18, 0.25) !important;
}

/* Butonlar */
.btn-warning {
    background-color: var(--ana-renk) !important;
    border: none;
    color: #000 !important;
    transition: 0.3s;
}

.btn-warning:hover {
    background-color: #e67e22 !important;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

/* Oyuncu Sayısı Badge */
.oyuncu-count {
    background: rgba(243, 156, 18, 0.1);
    color: var(--ana-renk);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--ana-renk);
}

#game-area {
    min-height: 100vh;
}

/* İstaka ve Taş tasarımları için hazırlık */
.istaka {
    background: #5d4037;
    border-radius: 10px;
    padding: 15px;
    border-bottom: 5px solid #3e2723;
}
.card {
    border: none;
    background-color: #2c3e50 !important;
}
.input-group-text {
    background-color: #f39c12;
    border: none;
    color: white;
}
.form-control:focus {
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    border-color: #f39c12;
}
/* Masa Tasarımı */
.game-table {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #1a472a 0%, #0d2616 100%); /* Yeşil Çuha */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* İstaka Tasarımı */
.istaka-konteyner {
    width: 800px;
    height: 120px;
    background: #5d4037; /* Ahşap Rengi */
    border: 8px solid #3e2723;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    bottom: 40px;
}

.istaka-yuzeyi {
    display: flex;
    gap: 2px;
}

/* Taş Tasarımı */
.tas {
    width: 45px;
    height: 60px;
    background: #fdfdfd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    cursor: pointer;
    user-select: none;
    position: relative;
    border-bottom: 3px solid #ccc;
}

.tas.kirmizi { color: #e74c3c; }
.tas.siyah { color: #2c3e50; }
.tas.mavi { color: #3498db; }
.tas.sari { color: #f1c40f; }

/* Oyuncu Pozisyonları */
.player-area { position: absolute; }
.top-player { top: 20px; }
.left-player { left: 20px; transform: rotate(90deg); }
.right-player { right: 20px; transform: rotate(-90deg); }

.center-area {
    display: flex;
    gap: 50px;
}
/* style.css eklemeler */

.tas {
    position: relative;
    width: 48px;
    height: 65px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 2px;
    box-shadow: 0 4px 2px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.tas:hover {
    transform: translateY(-10px); /* Üzerine gelince taş hafifçe kalksın */
    z-index: 10;
}

.tas.sahte {
    background: radial-gradient(circle, #f39c12 0%, #d35400 100%);
    color: white !important;
}

.tas .sayi {
    font-size: 24px;
    font-weight: 900;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}
.tas-surukleniyor {
    opacity: 0.4;
    transform: scale(0.8);
    border: 2px dashed var(--ana-renk) !important;
}

/* İstaka üzerinde taşların düzgün sıralanması için flex ayarı */
#my-rack {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 100%;
    width: 100%;
    padding: 5px;
}

.tas {
    touch-action: none; /* Mobil cihazlarda çakışmayı önler */
    user-select: none;
}
#orta-tas-cek {
    width: 60px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 5px;
    border-bottom: 6px solid #bdc3c7; /* Katmanlı deste efekti */
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

#orta-tas-cek:hover {
    transform: translateY(-5px);
}

#orta-tas-cek::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 5px;
    border-bottom: 4px solid #bdc3c7;
    z-index: -1;
}

#atilan-taslar {
    width: 60px;
    height: 80px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.active-turn {
    box-shadow: 0 0 20px 5px rgba(243, 156, 18, 0.6);
    border-radius: 50%;
    transition: all 0.5s ease;
    position: relative;
}

/* Sırası gelen oyuncunun yanında küçük bir ok veya lamba */
.active-turn::after {
    content: 'SIRA SENDE';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ana-renk);
    color: black;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    white-space: nowrap;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}
.puan-tablosu {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--ana-renk);
}

.oyuncu-satir {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
    padding: 8px 0;
}

.oyuncu-satir:last-child { border: none; }

.puan-deger {
    color: var(--ana-renk);
    font-weight: bold;
}
.my-area {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100; /* Diğer her şeyin üstünde olsun */
}
.player-info {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--ana-renk);
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    min-width: 100px;
    text-align: center;
}

/* Rakiplerin yanındaki avatar simgesi */
.player-info::before {
    content: '\f2bd'; /* FontAwesome User Icon */
    font-family: 'Font Awesome 6 Free';
    margin-right: 8px;
    color: var(--ana-renk);
}
.player-name {
    background: rgba(0, 0, 0, 0.7);
    color: #f39c12; /* Fenerbahçe sarısına yakın şık bir altın rengi */
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #444;
}
.deck:active {
    transform: scale(0.95);
    background-color: #f0f0f0;
}
#atilan-taslar {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s;
}
#atilan-taslar:hover {
    background: rgba(255,255,255,0.05);
}
.action-panel {
    position: fixed;
    /* Istakanın hemen üzerinde, ekranın alt kısmından hizalı */
    bottom: 155px; 
    /* Ekranı tam yatay ortalamak için sihirli formül */
    left: 50%;
    transform: translateX(-50%);
    
    /* Katman olarak her şeyin üstünde parlaması için */
    z-index: 99999; 
    
    /* Tasarım ve Okey Masası Teması */
    display: flex;
    gap: 12px; /* Butonların arasındaki boşluk */
    justify-content: center;
    align-items: center;
    background: rgba(20, 30, 48, 0.9); /* Masaya uyumlu koyu şeffaf arka plan */
    padding: 10px 20px;
    border: 2px solid #f39c12; /* Okey teması turuncusu */
    border-radius: 30px; /* Kenarları yumuşatılmış modern elips görünüm */
    
    /* Şık bir derinlik ve parlama efekti */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 
                0 0 15px rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(4px); /* Arka planı hafif buğulama efekti */
    
    /* Ekran küçüldüğünde butonların taşmasını önler */
    max-width: 90%;
    width: auto;
}

/* Panel içindeki butonların masaya yakışır hale getirilmesi (Opsiyonel) */
.action-panel .btn {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 8px 18px;
    transition: all 0.2s ease-in-out;
}

/* Butonlara fareyle gelindiğinde hafif büyüme efekti */
.action-panel .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}