/* css/competition.css
 *
 * Base component styles for competition.php (the schedule / event gateway).
 * Extracted verbatim from the page's former inline <style> block so the
 * legacy look is unchanged. This sheet ALWAYS loads.
 *
 * Redesign overrides live in themes/modern/competition.css, which loads on
 * top of this only when the modern theme is active.
 */

    /* Paired events button */
    .pair-btn {
        display: inline-block;
        margin-left: 6px;
        background-color: #FF7F50; /* Orange for standard pairs */
        color: white;
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 0.8rem;
        text-decoration: none;
    }

    .pair-btn-nominated {
        display: inline-block;
        margin-left: 6px;
        background-color: #f44336; /* Red for nominated pairs */
        color: white;
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 0.8rem;
        text-decoration: none;
    }

    .pair-btn:hover {
        background-color: #FF6347;
    }

    .pair-btn-nominated:hover {
        background-color: #d32f2f; /* Darker red on hover */
    }

    /* Team Points buttons */
    .team-points-container {
        text-align: left;
        margin-bottom: 20px;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .team-points-label {
        font-weight: bold;
        color: #555;
        margin-right: 4px;
    }

    .team-points-btn {
        display: inline-block;
        background-color: #993366;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 14px;
        font-size: 0.9rem;
        font-weight: bold;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .team-points-btn:hover { background-color: #6d2447; color: #fff; }
    .team-points-btn.cat   { background-color: #607D8B; }
    .team-points-btn.cat:hover { background-color: #455A64; }

    /* Floating points box */
    .points-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
        padding: 3vh 2vw;
    }
    .points-overlay.open { display: flex; }

    .points-box {
        background: #fff;
        margin: auto;
        width: min(1100px, 96vw);
        height: 92vh;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .points-box-header {
        background: #993366;
        color: #fff;
        padding: 10px 16px;
        font-size: 1rem;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .points-box-link {
        color: #fff;
        font-size: 0.8rem;
        font-weight: normal;
        text-decoration: none;
        margin-right: 14px;
        opacity: 0.85;
    }
    .points-box-link:hover { opacity: 1; text-decoration: underline; }

    .points-box-close {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
    }
    .points-box-close:hover { color: #ffd9ec; }

    .points-box-frame {
        border: none;
        flex: 1;
        width: 100%;
        background: #f4f4f6;
    }

    /* Held event styling */
    .held-event {
        background-color: #ffebee !important;
    }

    .held-event:hover {
        background-color: #ffcdd2 !important;
    }

    .status-held {
        color: #f44336 !important;
        font-weight: bold;
    }
