/* =====================================================
   TURNuVA SAYFALARI – CLEAN FINAL VERSION
===================================================== */

/* =====================================================
   TAKVİM – TURNuVA INDEX
===================================================== */

.takvim td {
    height: 85px;
    vertical-align: top;
    padding: 6px;
    transition: background 0.2s ease;
}

.takvim td:hover {
    background: #f8f9fa;
}

.gun-no {
    font-weight: 600;
    font-size: 14px;
}

.bugun {
    background: #eef2ff !important;
    border: 2px solid #4f46e5;
}

.turnuva-badge {
    font-size: 13px;
    padding: 3px 6px;
    margin-top: 4px;
    display: inline-block;
    border-radius: 6px;
    background: #7d7c86;
    color: #fff;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {
    .takvim td {
        height: 65px;
        padding: 4px;
    }

    .gun-no {
        font-size: 12px;
    }

    .turnuva-badge {
        font-size: 11px;
        padding: 2px 4px;
    }
}

/* =====================================================
   LOGO
===================================================== */

.turnuva-logo {
    max-width: 130px;
    height: auto;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   TURNuVA TABLE
===================================================== */

.turnuva-table th,
.turnuva-table td {
    vertical-align: middle;
}

/* =====================================================
   GRUP SIRALAMA
===================================================== */

.grup-header {
    background: linear-gradient(135deg, #0d6efd, #198754);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
}

.grup-card {
    border-radius: 14px;
    overflow: hidden;
    transition: 0.2s ease;
}

.grup-card:hover {
    transform: translateY(-3px);
}

.grup-title {
    font-size: 18px;
    letter-spacing: 1px;
}

/* İlk 3 sıra renkleri */
.siralama-table tbody tr:nth-child(1) {
    background: linear-gradient(to right, #fff8dc, #ffd700);
    font-weight: bold;
}

.siralama-table tbody tr:nth-child(2) {
    background: linear-gradient(to right, #f8f9fa, #cfd8dc);
    font-weight: 600;
}

.siralama-table tbody tr:nth-child(3) {
    background: linear-gradient(to right, #fbe9e7, #cd7f32);
    font-weight: 600;
}

/* =====================================================
   BOARD DETAY
===================================================== */
.masa {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    background: linear-gradient(100deg, #70bbd8, #045f2a);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.masa .oyuncu {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: #e4150d;
    font-size: 12px;
    font-weight: 700;
}

.masa .orta {
    background: #f4d03f;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
}

.masa-merkez {
    position: relative;
    background: linear-gradient(-100deg, #70bbd8, #045f2a);

    border-radius: 12px;
    padding: 30px 10px;
    min-height: 140px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.masa-merkez .board-no {
    font-size: 40px;
    font-weight: 700;
    margin-top: 8px;
    color: #fff;
}

.board-no {
    text-align: center;
    width: 100%;
}

.masa-merkez .yon {
    position: absolute;
    font-weight: bold;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 20px;
    color: #fff;
    transition: 0.2s;

    display: flex;
    /* EKLE */
    align-items: center;
    /* EKLE */
    justify-content: center;
    /* EKLE */
}

.yon-n {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
}

.yon-s {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
}

.yon-e {
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fd7e14;
}

.yon-w {
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #198754;
}

.yon.aktif {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.board-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.kart {
    font-weight: 700;
    font-size: 15px;
    /* biraz büyüttük */
    letter-spacing: 0.5px;
}

.kart-simge {
    font-size: 16px;
    font-weight: bold;
    margin-right: 4px;
}

.kart-deger {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    /* Değerler hep siyah */
}

.spade,
.club {
    color: #000;
}

.heart,
.diamond {
    color: #c00000;
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 992px) {
    .turnuva-logo {
        max-width: 90px;
    }

    .turnuva-title {
        font-size: 20px;
    }

    .turnuva-buttons .btn,
    .turnuva-back-btn {
        width: 100%;
    }

    .turnuva-table th,
    .turnuva-table td {
        font-size: 14px;
        padding: 8px 6px;
    }

    .grup-header h4 {
        font-size: 20px;
    }

    .board-no {
        font-size: 28px;
    }

    .masa .oyuncu {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .turnuva-title {
        font-size: 18px;
    }

    .turnuva-table th,
    .turnuva-table td {
        font-size: 13px;
    }

    .grup-header h4 {
        font-size: 18px;
    }

    .board-no {
        font-size: 24px;
    }

    .masa .oyuncu {
        font-size: 11px;
        padding: 6px;
    }
}
