/*
 * GAMEHOHO - public tournament premium view
 * Visual polish for tournoi/voir.php.
 */

body {
    background:
        linear-gradient(180deg, rgba(15, 52, 96, 0.16), transparent 420px),
        #0a0c0f !important;
}

main.container {
    width: min(1360px, 100%) !important;
    padding: 28px 20px 72px !important;
}

.tournoi-header {
    position: relative;
    overflow: hidden;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 255, 136, 0.26) !important;
    background:
        linear-gradient(135deg, rgba(0, 255, 136, 0.10), transparent 35%),
        linear-gradient(135deg, #101726 0%, #16213e 54%, #10294d 100%) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

.tournoi-header::before {
    content: "Live public";
    position: absolute;
    top: 20px;
    right: 24px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.36);
    background: rgba(0, 255, 136, 0.10);
    color: #00ff88;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.tournoi-header h1 {
    max-width: 820px;
    margin: 0 0 14px !important;
    padding-right: 110px;
    color: #fff;
    font-size: 38px !important;
    line-height: 1.08 !important;
    letter-spacing: 0;
}

.tournoi-meta {
    gap: 10px !important;
    margin-bottom: 22px !important;
}

.tournoi-meta span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(10, 12, 15, 0.38);
    border: 1px solid rgba(74, 158, 255, 0.18);
    color: #c2cee0;
    font-size: 13px;
    font-weight: 700;
}

.infos-box {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 8px !important;
    background: rgba(10, 12, 15, 0.34) !important;
    border: 1px solid rgba(74, 158, 255, 0.18) !important;
}

.info-item {
    min-height: 78px;
    padding: 14px !important;
    border-radius: 8px !important;
    background: rgba(22, 33, 62, 0.78) !important;
    border: 1px solid rgba(74, 158, 255, 0.18);
    text-align: left !important;
}

.info-label {
    margin-bottom: 8px !important;
    color: #8292ad !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
}

.info-value {
    color: #f4f8ff !important;
    font-size: 15px !important;
    line-height: 1.35;
}

.status-badge {
    border-radius: 999px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
}

.action-bar {
    display: flex !important;
    gap: 10px !important;
    margin: 0 0 24px !important;
    padding: 12px;
    border: 1px solid rgba(74, 158, 255, 0.18);
    border-radius: 8px;
    background: rgba(16, 23, 38, 0.86);
}

.action-bar .btn {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    min-height: 40px;
    padding: 10px 13px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

.tournoi-grid {
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 22px !important;
    align-items: start;
}

.section-card,
.sidebar-section {
    border-radius: 8px !important;
    border: 1px solid rgba(74, 158, 255, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        rgba(22, 33, 62, 0.92) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.section-card h2,
.sidebar-section h3 {
    color: #00ff88 !important;
    letter-spacing: 0;
}

.tour-title {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 255, 136, 0.32);
    background: rgba(0, 255, 136, 0.08) !important;
    border-left: 1px solid rgba(0, 255, 136, 0.32) !important;
}

.matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 14px !important;
}

.match-box {
    position: relative;
    padding: 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(74, 158, 255, 0.20) !important;
    background: #101726 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.match-box:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.48) !important;
}

.match-box.en_cours {
    border-color: rgba(255, 215, 0, 0.72) !important;
}

.match-box.termine {
    border-color: rgba(0, 255, 136, 0.56) !important;
}

.match-header {
    margin-bottom: 12px !important;
    color: #8191ab !important;
    font-weight: 800;
}

.match-player {
    min-height: 44px;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: rgba(31, 41, 55, 0.82) !important;
    border-left: 3px solid rgba(74, 158, 255, 0.35);
}

.match-player.winner {
    background: rgba(0, 255, 136, 0.11) !important;
    border-left-color: #00ff88 !important;
}

.match-player.loser {
    opacity: 0.64 !important;
}

.player-name {
    color: #f4f8ff;
}

.player-score {
    min-width: 34px !important;
    color: #dce7f7 !important;
    font-size: 18px !important;
}

.match-player.winner .player-score {
    color: #00ff88 !important;
}

.match-vs {
    margin: 6px 0 !important;
    color: #61708a !important;
    font-size: 11px !important;
    font-weight: 900;
}

.match-actions {
    gap: 8px !important;
}

.match-actions .btn {
    min-height: 36px;
    border-radius: 7px !important;
    font-size: 12px !important;
}

.participant-item,
.chat-message {
    border-radius: 8px !important;
    border: 1px solid rgba(74, 158, 255, 0.16);
    background: rgba(16, 23, 38, 0.84) !important;
}

.participant-rank {
    background: rgba(0, 255, 136, 0.12) !important;
    color: #00ff88 !important;
}

.chat-form input {
    min-height: 42px;
    border-radius: 8px !important;
    border: 1px solid rgba(74, 158, 255, 0.22) !important;
}

.chat-form button {
    min-height: 42px;
    border-radius: 8px !important;
}

@media (max-width: 1100px) {
    .tournoi-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    main.container {
        padding: 18px 14px 56px !important;
    }

    .tournoi-header {
        padding: 22px !important;
    }

    .tournoi-header::before {
        position: static;
        margin-bottom: 14px;
    }

    .tournoi-header h1 {
        padding-right: 0;
        font-size: 28px !important;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar .btn {
        width: 100%;
    }
}
