body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
header nav a {
    margin-left: 16px;
}

main {
    padding: 24px;
    max-width: 1200px;
    margin: auto;
}

footer {
    text-align: center;
    padding: 12px;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* Marketing section */
.marketing {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-bottom: 24px;
    background: white;
}
.marketing h1 {
    margin-bottom: 10px;
}
.marketing p {
    margin-bottom: 15px;
    opacity: 0.8;
}
.marketing .buttons .btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

/* Grid cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-3px);
}
.card h3 {
    margin: 0 0 6px;
}
.card p {
    margin: 0 0 10px;
    color: #777;
}
.card a.btn-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.site-header {
    background-color: #007bff;  /* błękitny pasek */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.site-header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.site-header .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .btn-header {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid white;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.site-header .btn-header:hover {
    background-color: white;
    color: #007bff;
}

/* Header */
.site-header {
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    position: relative;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    color: white;
    text-decoration: none;
}

.btn-header {
    padding: 6px 12px;
    border: 1px solid white;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-header:hover {
    background-color: white;
    color: #007bff;
}

/* Hamburger button */
.hamburger {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Grid responsywny dla głównej treści */
main {
    padding: 24px;
    max-width: 1200px;
    margin: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 12px;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* MEDIA QUERIES – responsywność */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        background-color: #007bff;
        position: absolute;
        top: 56px;
        right: 0;
        width: 200px;
        display: none;
        padding: 10px;
        border-radius: 0 0 0 8px;
    }

    .nav-menu.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-item {
        padding: 8px 0;
    }
}

/* ===============================
   TOURNAMENT PAGE
=================================*/

.tournament-header {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tournament-header h1 {
    margin: 0 0 10px;
}

.tournament-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.95em;
}

/* GROUP CARD */
.group-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.group-title {
    margin-bottom: 20px;
}

/* TABLE */
.table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.standings-table th {
    background-color: #f3f6fa;
    font-weight: 600;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.standings-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.standings-table tr:hover {
    background-color: #f9fbff;
}

.team-name {
    text-align: left;
    font-weight: 500;
}

.points {
    font-weight: bold;
    color: #007bff;
}

.empty-row {
    text-align: center;
    color: #777;
}

/* MATCHES */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8f9fb;
    transition: background 0.2s;
}

.match-card:hover {
    background: #eef4ff;
}

.team {
    font-weight: 500;
}

.home {
    text-align: right;
}

.away {
    text-align: left;
}

.match-score {
    padding: 0 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.finished {
    color: #333;
}

.live {
    color: #e63946;
}

.scheduled {
    color: #888;
}

.no-matches {
    color: #777;
    font-style: italic;
}

/* =========================
DASHBOARD
========================= */

.dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 28px;
}

.dashboard-header p {
    margin: 0;
    color: #666;
}

/* =========================
TURNIEJE
========================= */

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tournament-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.tournament-card h3 {
    margin-top: 0;
}

.date {
    color: #666;
    font-size: 14px;
}

/* =========================
BUTTONS
========================= */

.btn-panel {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.btn-panel:hover {
    background: #0056b3;
}

.btn-logout {
    padding: 8px 14px;
    background: #e53935;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.btn-logout:hover {
    background: #c62828;
}

/* =========================
DASHBOARD STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e5e5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.stat-card h3 {
    margin: 0;
    font-size: 32px;
    color: #007bff;
}

.stat-card p {
    margin: 5px 0 0;
    color: #666;
}

.stat-card.live h3 {
    color: #e53935;
}