/* BRUTALIST THEME FOR MEETPRO 
   Matches index.html design
*/

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-red: #C8102E;   /* JAJ 2025 Red */
    --accent-yellow: #FFCD00; /* JAJ 2025 Yellow */
    --border-thick: 4px solid #000;
    --border-thin: 2px solid #000;
    --shadow-hard: 6px 6px 0px #000;
}

/* --- BASE STYLES --- */
body {
    background-color: var(--accent-yellow); /* Yellow Background like Index */
    font-family: 'Courier New', Courier, monospace; /* Monospace is essential */
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.2;
}

a { 
    text-decoration: none; 
    color: inherit; 
    cursor: pointer;
}

/* --- LAYOUT CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: var(--border-thick);
    box-shadow: var(--shadow-hard);
    padding: 20px; /* Padding inside the white box */
}

/* --- HEADER SECTION (Matches report_master.html) --- */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-thick);
    padding-bottom: 20px;
    margin-bottom: 30px;
    background: #fff;
}

.header-left h1 {
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 10px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.meet-details {
    font-weight: bold;
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 5px 10px;
    text-transform: uppercase;
}

.header-logo {
    height: 100px;
    width: auto;
    border: var(--border-thin);
    padding: 5px;
}

/* --- NAVIGATION BUTTONS --- */
.back-btn {
    display: inline-block;
    background: #000;
    color: var(--accent-yellow);
    font-weight: bold;
    padding: 8px 15px;
    text-transform: uppercase;
    border: 2px solid #000;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 4px 4px 0px #000;
    transform: translate(-2px, -2px);
}

/* --- MEETPRO GENERATED TABLES OVERRIDES --- */
/* MeetPro uses standard <table> tags. We must aggressively style them. */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 0.95rem;
    border: var(--border-thick);
}

/* Table Header Row */
thead tr {
    background-color: #000 !important;
}

thead th {
    color: var(--accent-yellow) !important;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    padding: 15px;
    text-align: left;
    border: var(--border-thin);
    font-weight: normal;
}

/* Table Body Cells */
tbody td {
    border: var(--border-thin);
    padding: 10px;
    font-weight: bold;
    color: #000;
}

/* Alternating Rows */
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Hover Effect on Rows */
tbody tr:hover {
    background-color: var(--accent-red) !important;
    color: #fff !important;
    cursor: crosshair;
}

/* Fix text color on hover */
tbody tr:hover td {
    color: #fff;
    border-color: #fff; /* Changes border to white on hover for cool effect */
}

/* --- SPECIFIC MEETPRO HEADERS (Event Titles) --- */
/* These are the <h3> or <h4> tags MeetPro puts above each event result */
h3, h4 {
    background: var(--accent-yellow);
    border: var(--border-thick);
    display: block;
    padding: 10px;
    margin-top: 40px;
    margin-bottom: 0; /* Attach to table below */
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #000;
    width: fit-content;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: var(--border-thick);
}

.footer-bar {
    font-weight: bold;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    display: inline-block;
    padding: 5px 20px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .report-header {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .header-left {
        width: 100%;
    }

    .container {
        padding: 10px;
        border-width: 2px;
    }

    /* Force tables to scroll horizontally on phones so they don't break layout */
    .container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px; /* Ensures table keeps shape and user scrolls */
    }
}