/* tournament-view.css */
:root {
    --bg: #0f0d0b;
    --panel: #1a1715;
    --panel-2: #2a2522;
    --accent: #c7a15b;
    --muted: #b7a999;
    --glow: 0 6px 24px rgba(199, 161, 91, 0.06);
    --radius: 12px;
    --card-padding: 18px;
    /*--dps-role-icon: url("/icons/swords.svg");*/
    /*--tank-role-icon: url("/icons/shield.svg");*/
    /*--healer-role-icon: url("/icons/first-aid.svg");*/
}

/* Card */
.tournament-card {
    border-radius: var(--radius);
}

.tournament-card::before {
    opacity: 0;
}

.card.tournament-header {
    flex-direction: column;
}

/* Header */
.tournament-header__main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.tournament-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.06));
    gap: 0.5rem;
}

.tournament-header__grid {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}


.tournament-title {
    margin: 0;
    color: #e5e7eb;
    font-size: 2rem;
    line-height: 1.2;
}

.tournament-subtitle {
    margin: 0;
    color: #e5e7eb;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tournament-subtitle .dot::before {
    content: "•";
    opacity: 0.75;
}

/* Actions */
.tournament-actions {
    margin-top: 0.25rem;
}
.tournament-actions .btn-secondary {
    background: transparent;
    border: 1px solid rgba(199, 161, 91, 0.35);
    color: #e5e7eb;
}
.tournament-actions .btn-secondary:hover {
    background-color: rgba(255, 191, 105, 0.15);
    border-color: #ffbf69;
    color: #fff;
}

.signup-state {
    margin-left: 0.5rem;
    color: #86efac;
    font-weight: 600;
}

/* Sections */
.tournament-section {
    display: grid;
    gap: 0.75rem;
}

/* Participants and Dungeons card*/
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}
.section-title {
    margin: 0;
    color: #e5e7eb;
    font-size: 1.25rem;
}
.section-meta {
    opacity: 0.8;
}

/* Details grid (reuses existing detail styles) */
.detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

/* Muted text utility */
.muted { opacity: 0.9; }

/* Participants */
.participants-list {
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.participant {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
    border: 1px solid rgba(199, 161, 91, 0.08);
    padding: 10px 12px;
    border-radius: 10px;
}

/* Dungeons: make it a vertical list with spacing */
.dungeons-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Dungeon row tweaks */
.dungeon-item {
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
    border: 1px solid rgba(199, 161, 91, 0.08);
    padding: 10px 12px;
    border-radius: 10px;

}
.participant.dungeon-item .name {
    color: #e5e7eb;
    flex: 1;
}

/* Neutral badge variant for dungeons (show letters, no icon layer) */
.avatar.dungeon {
    --size: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f3f4f6; /* light text on dark badge */
    background: radial-gradient(120% 120% at 30% 25%, #2d2a28 0%, #1f1c1a 60%, #12100f 100%);
}
.avatar.dungeon::before {
    content: none; /* disable role icon layer so letters stay visible */
}

.participant .name {
    color: #e5e7eb;
    min-width: 3rem;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty state alignment */
.empty-state {
    margin: 0.25rem 0 0;
}

/* Responsive */
@media (max-width: 720px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .tournament-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
