/* ============================================================
   CSS Custom Properties (Competition Theming)
   Overridden per-competition via inline <style> in base_competition.html
   ============================================================ */
:root {
    --primary-color: #5f7d46;
    --primary-hover: #4b6234;
    --primary-active: #394d28;
    --secondary-color: #004085;
    --bg-color: #c9d6b8;
    --bg-gradient-start: #7ba973;
    --bg-gradient-end: #c9d6b8;
    --card-bg: #f4f8f1;
    --info-bg: #e6efde;
    --info-border: #5f7d46;
    --heading-color: #2e4620;
    --label-color: #3e5632;
    --input-border: #9cb88a;
    --table-header-bg: #c9d6b8;
    --highlight-bg: #fff5e6;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
}

/* Heading Styles */
h1 {
    text-align: center;
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Container Styles */
.container {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
}

/* Button Styles */
button {
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    background: var(--primary-active);
}

button:disabled, button:disabled:hover, button:disabled:active {
    background: #9c9c9c;
    border-color: #9c9c9c;
    cursor: not-allowed;
}

/* Go Back and Info Button Styles */
.go-back-button, .popup-button {
    display: inline-block;
    margin: 20px 0 10px 0;
    padding: 10px 20px;
    background-color: var(--card-bg);
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.go-back-button:hover, .popup-button:hover {
    background-color: var(--highlight-bg);
}

.go-back-button:active, .popup-button:active {
    background-color: #e6d7c0;
}

/* Symbol Pictures Styles */
.symbol-picture {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Logo Styles */
.logo {
    display: block;
    max-width: 200px;
    max-height: 150px;
    height: auto;
}

/* Player Nickname Styles */
.player-nickname {
    font-weight: normal;
    font-size: 0.85em;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 75%;
        padding: 1.5rem;
    }
    .logo {
        max-width: 40%;
        max-height: 200px;
    }
    .go-back-button, .popup-button {
        padding: 0.75rem 1rem;
    }
}
