﻿/* ========= Genel ========= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: #f7f7f8;
    color: #111;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}

/* ========= Üst Bar ========= */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

    .topbar .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .topbar .brand {
        font-weight: 700;
        color: #111;
        text-decoration: none;
    }

    .topbar nav a {
        margin-left: 12px;
        color: #333;
        text-decoration: none;
    }

/* ========= Kartlar & Form ========= */
.card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

    .row label {
        min-width: 140px;
        font-weight: 600;
    }

.mt {
    margin-top: 14px;
}

.alert.success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 8px 10px;
    border-radius: 8px;
}

/* ========= Butonlar ========= */
.actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .actions button {
        padding: 6px 12px;
        border: 0;
        border-radius: 8px;
        background: #1976d2;
        color: #fff;
        cursor: pointer;
    }

        .actions button:hover {
            background: #0d47a1;
        }

        .actions button[disabled] {
            background: #b0bec5;
            cursor: not-allowed;
        }

.done {
    font-weight: 700;
    color: green;
}

/* ========= Eşleşme Kartı ========= */
.match {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

    .match.live {
        box-shadow: 0 0 0 3px rgba(25,118,210,.25) inset;
    }

/* Rozetler */
.badge, .order, .badge2, .order2 {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.badge, .order {
    background: #ffab00;
    color: #fff;
}

.badge2, .order2 {
    background: #eceff1;
    color: #444;
}

/* Meta & Status */
.meta {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    font-style: italic;
    text-align: center;
}

.status {
    text-align: center;
    font-size: 14px;
}

/* Sporcu satırları */
.row1 {
    font-weight: 600;
}

.row2 {
    color: #666;
    font-size: 12px;
}

/* ========= Köşe Renklendirmeleri ========= */
.corners {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.corner-red, .corner-white {
    flex: 1;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.corner-red {
    background: linear-gradient(135deg, #d32f2f, #ff5252);
    border-color: #b71c1c;
    color: #fff;
}

.corner-white {
    background: linear-gradient(135deg, #fafafa, #eeeeee);
    border-color: #b0bec5;
    color: #212121;
}

.corner-label {
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 12px;
}

/* VS ayırıcı */
.vs {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

/* ========= Boş Durum ========= */
.empty {
    text-align: center;
    color: #888;
    font-size: 18px;
    padding: 16px 0;
}

/* ========= Responsive ========= */
@media (max-width: 720px) {
    .corners {
        flex-direction: column;
    }

    .meta {
        text-align: left;
    }
}

/* ========= Brakets ========= */
.bracket-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.bracket-round {
    min-width: 220px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bracket-match {
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
