/*
Author: Sioto Fine
Filename and location: tongatapu_rugby/assets/css/style.css
*/

:root {
    --red: #c8102e;
    --dark: #07111f;
    --blue: #0756a8;
    --green: #16852f;
    --purple: #6d2c91;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(6, 13, 25, 0.45), rgba(6, 13, 25, 0.65)),
        url("../images/rugby-bg.jpg") center center / cover fixed no-repeat;
    font-family: Arial, Helvetica, sans-serif;
}

.app-navbar {
    background: linear-gradient(90deg, #740000, #c8102e, #730000);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.navbar .nav-link {
    font-weight: 700;
    border-radius: 999px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: white;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fw-black {
    font-weight: 950;
}

.poster-hero,
.page-hero {
    border-radius: 28px;
    color: white;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.poster-hero {
    background:
        linear-gradient(120deg, rgba(9, 18, 32, 0.88), rgba(200, 16, 46, 0.65)),
        url("../images/rugby-bg.jpg") center / cover no-repeat;
}

.poster-overlay {
    padding: 42px;
}

.hero-strip {
    display: inline-block;
    background: linear-gradient(90deg, #b70000, #ff1d25, #b70000);
    padding: 10px 24px;
    border-radius: 999px;
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.rugby-ball-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    padding: 26px;
    border-radius: 24px;
    min-width: 240px;
    text-align: center;
}

.draw-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(4, 17, 8, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.draw-card-header {
    color: white;
    font-size: 1.25rem;
    font-weight: 950;
    text-transform: uppercase;
    padding: 16px 18px;
    letter-spacing: 0.4px;
}

.draw-blue .draw-card-header {
    background: linear-gradient(90deg, #064c9d, #0877d8);
}

.draw-green .draw-card-header {
    background: linear-gradient(90deg, #0b721f, #19a43a);
}

.draw-purple .draw-card-header {
    background: linear-gradient(90deg, #4b1970, #7b2cbf);
}

.draw-card-body {
    padding: 0 16px;
}

.match-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.match-row:last-child {
    border-bottom: none;
}

.match-time {
    color: white;
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.05;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 10px 6px;
}

.draw-blue .match-time {
    background: #0756a8;
}

.draw-green .match-time {
    background: #16852f;
}

.draw-purple .match-time {
    background: #6d2c91;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    gap: 8px;
    align-items: center;
    color: white;
    text-transform: uppercase;
    font-size: 1.05rem;
    font-weight: 950;
}

.match-teams strong {
    color: #ff2b2b;
    text-align: center;
}

.match-teams span:last-child {
    text-align: right;
}

.bottom-slogan {
    background: linear-gradient(90deg, #9b0000, #e01a1a, #9b0000);
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: 950;
    font-style: italic;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.page-hero {
    background: linear-gradient(120deg, #061424, #c8102e);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.app-card,
.login-card,
.stat-card {
    border: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.login-card {
    padding: 32px;
}

.login-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #c8102e, #ff4545);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-purple {
    background: var(--purple) !important;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 950;
}

.stat-label {
    color: #6c757d;
    font-weight: 700;
}

.table thead th {
    background: #f8f9fa;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-footer {
    background: rgba(4, 10, 20, 0.92);
    color: white;
}

@media (max-width: 768px) {
    .poster-overlay {
        padding: 28px;
    }

    .match-row {
        grid-template-columns: 1fr;
    }

    .match-teams {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .match-teams span:last-child {
        text-align: center;
    }

    .bottom-slogan {
        font-size: 1.3rem;
    }
}