/* Kök renk ve stil değişkenleri */
:root {
    --font-family: 'Poppins', sans-serif;
    --bg-gradient: linear-gradient(135deg, #ece9e6 0%, #ffffff 100%);
    --board-bg: #cad2c5;
    --panel-bg: #fff;
    --player1-color: #c9184a;
    --player2-color: #1982c4;
    --accent-color: #ff9f1c;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-gradient);
    color: #2b2d42;
    padding-top: 20px;
}

h1 {
    color: #2b2d42;
    font-weight: 700;
    font-size: 2.5rem;
}
h1 .fa-dice { color: var(--accent-color); }

.main-content {
    display: flex;
    align-items: stretch; /* Panellerin aynı boyda olmasını sağlar */
    gap: 30px;
    margin-top: 20px;
}

/* Oyuncu bilgi panelleri */
.player-info-panel {
    width: 230px;
    padding: 20px;
    background-color: var(--panel-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
}
.player-info-panel h3 {
    margin: 0 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-size: 1.2rem;
}
#player1-info h3 .fa-car { color: var(--player1-color); }
#player2-info h3 .fa-anchor { color: var(--player2-color); }

.properties-list { flex-grow: 1; list-style: none; padding: 0; margin-top: 10px; }
.properties-list li { background-color: #fafafa; padding: 8px 12px; margin-bottom: 8px; border-radius: 6px; border-left: 4px solid var(--accent-color); }

/* Oyun tahtası ve hücreler */
.game-container { position: relative; }
.board {
    width: 600px;
    height: 600px;
    position: relative;
    background-color: var(--board-bg);
    box-shadow: var(--shadow-strong);
    border-radius: 15px;
    padding: 20px; /* İçeriden boşluk */
    box-sizing: border-box;
}

.cell {
    width: 100px;
    height: 100px;
    border: 1px solid #b7b7a4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* DİKKAT: İçerik yukarıdan başlasın */
    align-items: center;
    text-align: center;
    font-weight: 600;
    position: absolute;
    box-sizing: border-box;
    background-color: #e8edea;
    border-radius: 5px;
    overflow: hidden;
    padding-top: 5px; /* DİKKAT: İçeriğe üstten biraz boşluk verelim */
}
.cell.property::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    background-color: #ccc;
    border-bottom: 1px solid #b7b7a4;
}
.cell .name {
    font-size: 13px;
    /* DİKKAT: margin-top kaldırıldı, isim artık kendi akışında yerleşecek */
    margin: 0 5px; 
    padding-top: 20px; /* DİKKAT: Renkli şeridin (20px) altından başlaması için boşluk */
}
.cell .price { font-size: 12px; font-weight: 400; margin-top: 5px; }

.cell .icon {
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 5px;
}

.cell .buildings {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}
.cell .buildings .fa-house {
    font-size: 14px;
    color: #2a9d8f;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.cell.special .name,
.cell.tax .name,
.cell.chance .name {
    padding-top: 0; /* Renkli şerit olmadığı için üst boşluk gerekmez */
}



/* Örnek mülk renkleri */
#cell-1::before, #cell-3::before { background-color: #a36d58; }
#cell-5::before, #cell-7::before, #cell-8::before { background-color: #8ecae6; }
#cell-16::before, #cell-18::before { background-color: #d00000; }

.cell.owner-1 { border: 3px solid var(--player1-color); }
.cell.owner-2 { border: 3px solid var(--player2-color); }

/* Piyon stilleri ve KESİN ÇÖZÜM */
.player {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Zıplama efekti */
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);

    /* Z-INDEX HATASINI DÜZELTİR */
    z-index: 100;
    
    /* ORTALAMA İŞLEMİNİ CSS İLE YAPAR */
    /* 100px'lik hücrenin ortasına 40px'lik piyonu yerleştirir (100-40)/2=30 */
    transform: translate(30px, 30px);
}
#player1 { background: var(--player1-color); }
#player2 { background: var(--player2-color); }

/* Kontrol Paneli */
.controls {
    /* ... önceki adımdaki .controls stilleri aynı kalabilir ... */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50; width: 350px;
    text-align: center; padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    /* YENİ: Dikey hizalama için flexbox ekleyelim */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Elemanlar arası boşluk */
}

/* Yeni Zar Konteyneri Stili */
#dice-container {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border: 3px solid #dee2e6;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#dice-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Zar İkonu Stili */
#dice-icon {
    font-size: 4rem; /* 64px */
    color: var(--primary-accent, #0077b6);
    transition: transform 0.2s ease;
}

/* Zar atılırken kullanılacak animasyon */
.rolling {
    animation: roll-animation 0.5s ease-in-out;
}

@keyframes roll-animation {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(45deg) scale(1.2); }
    50% { transform: rotate(-45deg) scale(0.8); }
    75% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ... */
/* İkon Renklendirme */
#cell-4 .fa-receipt,
#cell-19 .fa-receipt {
    color: #c0392b; /* Kırmızı */
}
#cell-6 .fa-question,
#cell-11 .fa-question {
    color: #27ae60; /* Yeşil */
}
#cell-9 .fa-street-view {
    color: #f1c40f; /* Sarı */
}
#cell-2 .fa-box-archive,
#cell-17 .fa-box-archive {
    color: #2980b9; /* Mavi */
}
#cell-14 .fa-gavel {
    color: #2c3e50; /* Siyah */
}