/* trubrackets.css */



.trubrackets-page {
    padding-top: 100px;
    /* Space for fixed header */
    background-color: #f4f4f9;
}

.trubrackets-main-content {
    padding-top: 2rem;
    color: var(--text-primary);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Controls */
.bracket-controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

/* Bracket Root Layout */
.bracket-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Region Container */
.region-container {
    background: var(--card-bg);
    /* Assuming var from style.css */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 600px;
    min-height: 400px;
}

.region-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Matchup List Style (V1 simplified) */
/* Matchup List Style */
.matchup-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Increased gap */
}

.matchup-card {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    /* Increased radius */
    padding: 0.75rem;
    /* Increased padding */
    color: #ffffff;
    /* FORCE WHITE TEXT */
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.matchup-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #252525;
    /* Slightly lighter on hover */
    border-color: #555;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    /* More breathing room */
}

.seed {
    font-size: 0.85rem;
    color: #bbb;
    /* Lighter grey */
    width: 25px;
    display: inline-block;
    font-weight: 500;
}

.team-name {
    font-weight: 600;
    /* Bolder */
    flex-grow: 1;
    font-size: 0.95rem;
    /* Slightly larger */
}

.rating {
    font-size: 0.85rem;
    color: #4caf50;
    /* Green for rating (or accent) */
    font-weight: 600;
}

.aq-badge {
    font-size: 0.65rem;
    background: #444;
    /* Lighter */
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.6rem;
    text-transform: uppercase;
    color: #fff;
    /* White */
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Bubble Watch */
.bubble-watch-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.bubble-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.bubble-group h4 {
    color: var(--text-secondary);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Summary Dashboard (Horizontal on Desktop) */
.summary-dashboard {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    /* Wrap on small screens */
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    /* Match height */
}

/* Match Game Card Style from predictions.css */
.summary-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure text inside summary cards is readable (dark text on white) */
.summary-card .team-name {
    color: var(--text-primary, #333);
}

.summary-card .seed {
    color: var(--text-secondary, #555);
}

.summary-card h4 {
    margin: 0 0 10px 0;
    color: var(--header-bg, #2c3e50);
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}