/* Contests module styles
   Keep this file portable so /contests can be deployed standalone.
*/

/* Ensure content starts below the fixed navbar (no overlap). */
body.contests-page,
body.contests-table-page,
body.contests-report-page {
    padding-top: 76px;
}

.contest-source-badge {
    font-weight: 700;
    letter-spacing: .02em;
}

.contest-source-badge i {
    opacity: 0.9;
}

/* Moved from contests/index.php */
:root {
    /* Fall back to the club palette when theme variables are unavailable. */
    --primary-blue: var(--w5obm-primary, #031a54);
    --secondary-blue: var(--w5obm-secondary, #145eff);
    --accent-gold: var(--w5obm-accent-gold, #f0b343);
    --dark-gray: #2c3e50;
    --light-gray: #f8f9fa;
}

.contest-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.hero-callsign {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.contest-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contest-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contest-date {
    color: var(--secondary-blue);
    font-weight: 600;
}

.btn-contest {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-contest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 94, 255, 0.3);
    color: white;
    text-decoration: none;
}