/* =====================================================
   BLOWL - Global Stylesheet
   ===================================================== */

/* ========================
   Reset
======================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ========================
   Design System
======================== */

:root {
    --brand: #D2322C;
    --brand-dark: #A51F1A;

    --dark: #333333;
    --light: #FFFFFF;

    --bg: #F5F5F5;

    --success: #2E8B57;
    --warning: #D97706;
    --danger: #B91C1C;

    --radius: 10px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.10);
    --shadow-lg: 0 2px 15px rgba(0,0,0,0.20);

    --container: 1400px;
}

/* ========================
   Layout
======================== */

.container {
    width: min(var(--container), 95%);
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ========================
   Header
======================== */

.site-header {
    background: var(--brand);
    color: white;
    padding: 25px 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    box-shadow: var(--shadow-lg);
}

.liga-logo {
    max-height: 120px;
    object-fit: contain;
}

.site-title h1 {
    margin: 0 0 5px;
    font-size: 2.4rem;
}

.site-title p {
    margin: 0;
    font-style: italic;
}

/* ========================
   User Bar
======================== */

.user-bar {
    background: var(--brand);
    color: white;

    padding: 15px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-team {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-logo {
    width: 55px;
    height: 55px;

    border-radius: 50%;

    border: 3px solid white;

    object-fit: contain;

    background: white;
    padding: 3px;
}

.user-team strong {
    display: block;
}

.user-team span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================
   Buttons
======================== */

.btn {
    display: inline-block;

    padding: 12px 18px;

    border: none;
    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.logout-btn {
    background: var(--dark);

    color: white;

    padding: 10px 20px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;

    border: 2px solid white;

    transition: 0.2s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
}

/* ========================
   Team Banner
======================== */

.team-strip {
    width: min(var(--container), 95%);
    margin: 20px auto;
    padding: 15px;
}

.teams-row {
    display: flex;
    gap: 15px;

    overflow-x: auto;

    padding: 5px;
}

.teams-row a {
    text-decoration: none;
    flex: 0 0 auto;
}

.team-logo {
    width: 80px;
    height: 80px;

    border-radius: var(--radius-sm);

    object-fit: contain;

    background: white;

    padding: 5px;

    border: 2px solid #ddd;

    transition: 0.2s ease;
}

.team-logo:hover {
    transform: scale(1.05);
}

/* ========================
   Forms
======================== */

.form-label {
    display: block;

    margin-bottom: 6px;

    font-weight: bold;
}

.form-label-spaced {
    margin-top: 15px;
}

.form-control {
    width: 100%;

    padding: 12px;

    border-radius: 8px;

    border: 1px solid #ddd;

    font-size: 1rem;
}

.form-control:focus {
    outline: none;

    border-color: var(--brand);

    box-shadow: 0 0 0 3px rgba(210,50,44,0.15);
}

/* ========================
   Alerts
======================== */

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-error {
    background: #FFE9E9;
    border: 1px solid #FFBDBD;
    color: #8B0000;
}

/* ========================
   Footer
======================== */

.footer {
    background: var(--brand);

    color: white;

    text-align: center;

    margin-top: 50px;

    padding: 20px;
}

.footer p {
    margin: 5px 0;
}

/* ========================
   Responsive
======================== */

@media (max-width: 900px) {

    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .user-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logout-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .container,
    .team-strip {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header,
    .user-bar {
        width: 100%;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width: 900px) {
    .container,
    .team-strip {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    body {
        overflow-x: hidden;
    }
}