@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f1f1f;
    background-color: #f5f5f5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #1f1f1f;
}

a {
    color: #B11E2D;
}

a:hover {
    color: #1f1f1f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #B11E2D;
    color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
    color: #ffffff;
}

.navbar-brand {
    flex-grow: 1;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.4rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.navbar a:hover {
    opacity: 0.8;
}

/* Subnav */
.subnav {
    background: #8C1422;
    border-bottom: 1px solid rgba(177, 30, 45, 0.2);
}

.subnav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    padding: 0.75rem 0;
    justify-content: flex-end;
}

.subnav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.subnav-menu a:hover {
    color: #fbe9ec;
}

.subnav-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.navbar a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: #8C1422;
    color: #ffffff;
    padding: 4rem 0 4.5rem;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p {
    color: #ffffff;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-copy h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-copy p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 520px;
}

.hero-kicker {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.hero-highlights {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.highlight-chip {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #ffffff;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.hero-card-header {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.hero-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-card-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card h3 {
    margin-bottom: 1.5rem;
    color: #1f1f1f;
    font-size: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B11E2D;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #B11E2D;
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 30, 45, 0.4);
    color: #ffffff;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #8C1422;
    color: #ffffff;
}

.btn-danger:hover {
    background: #6f101b;
    color: #ffffff;
}

.btn-secondary {
    background: #5a5a5a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #444444;
    color: #ffffff;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-buttons .btn {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Games List */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #B11E2D;
}

.game-date {
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
}

.game-teams {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-teams .team {
    font-weight: 600;
}

.game-teams .vs {
    color: #999;
    margin: 0 0.5rem;
}

.game-location {
    color: #666;
}

.game-score {
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 0.4rem;
}

.game-winner {
    font-weight: 600;
    color: #B11E2D;
    margin-bottom: 0.4rem;
}

.game-winner.tie {
    color: #6c757d;
}

.game-status {
    font-weight: 600;
    color: #d63031;
    margin-bottom: 0.4rem;
}

.section-link {
    text-align: right;
    margin-top: 1rem;
}

.no-games {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Keep wide tables scrollable within their card/container */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .data-table {
    min-width: 640px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1f1f1f;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.standings-table .standings-team {
    font-weight: 600;
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.news-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.85rem;
    color: #B11E2D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1f1f1f;
}

.news-content {
    line-height: 1.8;
    color: #555;
    font-size: 0.95rem;
}

.news-widget {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-widget-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #B11E2D;
    border-radius: 4px;
}

.news-widget-date {
    font-size: 0.75rem;
    color: #B11E2D;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-widget-title {
    font-size: 0.9rem;
    color: #1f1f1f;
    font-weight: 600;
    line-height: 1.3;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-scheduled {
    background-color: #ffeaa7;
    color: #d63031;
}

.badge-completed {
    background-color: #55efc4;
    color: #00b894;
}

.badge-cancelled {
    background-color: #fab1a0;
    color: #d63031;
}

.badge-win {
    background-color: #d1f2eb;
    color: #1f7a66;
}

.badge-loss {
    background-color: #f8d7da;
    color: #842029;
}

.badge-tie {
    background-color: #e2e3e5;
    color: #495057;
}

/* Team Logo */
.team-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.team-logo img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-logo {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    color: #999;
    font-style: italic;
}

.team-details {
    margin-top: 1.5rem;
}

.team-details p {
    margin-bottom: 0.5rem;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #8C1422 0%, #B11E2D 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(177, 30, 45, 0.35);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.score-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Login Wrapper */
.login-wrapper {
    max-width: 500px;
    margin: 2rem auto;
}

.info-box {
    background-color: #fbe9ec;
    border: 1px solid #f3c2c8;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1.5rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer, .footer {
    background-color: #8C1422;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fbe9ec;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

/* Home Page Layout */
.home-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar-container {
        flex-direction: row;
    }

    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #B11E2D;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        list-style: none;
        z-index: 1000;
    }

    .navbar-menu.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    .navbar-menu li {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(177, 30, 45, 0.2);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
    }

    .navbar {
        position: relative;
        padding: 1rem 0;
    }

    .navbar-container {
        gap: 0;
        align-items: center;
        padding: 0 20px;
        max-width: 100%;
    }

    .navbar h1 {
        font-size: 1.2rem;
    }

    .subnav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1.5rem;
        width: calc(100% - 3rem);
    }

    .subnav-menu li {
        width: 100%;
        padding: 0.5rem;
    }

    .subnav-label {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 4rem 0 3rem 0;
        margin-bottom: 20px;
    }

    .main-content {
        padding: 2rem 20px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-layout,
    .home-main,
    .home-sidebar,
    .home-layout > *,
    .card {
        min-width: 0;
    }

    .card {
        overflow-x: hidden;
    }

    .table-responsive {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .table-responsive .data-table {
        width: max-content;
        min-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .banner {
        padding: 1.5rem;
    }

    .navbar-brand h1 {
        font-size: 1rem;
    }
}
