/*
    River Hawk Rockets - original.css
    ------------------------------------------------------------
    This version keeps the same layout and sizing as main.css,
    but moves the important design choices into CSS Variables.

    Students:
    1. Start by changing values in the :root section.
    2. Then look below to see where those variables are used.
    3. Do not change HTML class names unless you also update the CSS.
*/

/* ============================================================
   DESIGN VARIABLES
   Change these values to redesign the site quickly.
   ============================================================ */

:root {
    /* Main team colors */
    --primaryColor1: #0b2545;          /* Dark navy blue */
    --primaryColor2: #102033;          /* Dark text blue */

    /* Accent team colors */
    --accentColor1: #f26a21;           /* Rocket orange */
    --accentColor2: #ffb347;           /* Light orange highlight */

    /* Required shadow variable */
    --dropShadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    /* Extra color variables */
    --backgroundColor: #f4f6f8;        /* Page background */
    --surfaceColor: #ffffff;           /* Cards and content boxes */
    --lightTextColor: #ffffff;         /* White text */
    --borderColor: #d9dee5;            /* Table borders */

    /* Font variables */
    --headingFont: Arial, Helvetica, sans-serif;
    --bodyFont: Arial, Helvetica, sans-serif;

    /* Layout variables */
    --contentWidth: 1100px;
    --headerPadding: 24px;
    --mainPadding: 30px 20px;
    --cardRadius: 14px;
    --heroRadius: 16px;
}

/* ============================================================
   BASIC PAGE SETTINGS
   These rules affect the entire website.
   ============================================================ */

body {
    margin: 0;
    font-family: var(--bodyFont);
    background-color: var(--backgroundColor);
    color: var(--primaryColor2);
    line-height: 1.6;
}

/* ============================================================
   HEADER
   The header appears at the top of every page.
   ============================================================ */

header {
    background-color: var(--primaryColor1);
    color: var(--lightTextColor);
    padding: var(--headerPadding);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* This controls the size of the logo in the header. */
.site-logo {
    width: 120px;
    height: auto;
    background-color: var(--surfaceColor);
    border-radius: 12px;
    padding: 6px;
}

header h1 {
    margin: 0;
    font-family: var(--headingFont);
    font-size: 36px;
}

header p {
    margin: 6px 0 0 0;
    color: var(--accentColor1);
    font-weight: bold;
}

/* ============================================================
   NAVIGATION
   These links connect the pages together.
   ============================================================ */

nav {
    background-color: var(--accentColor1);
    padding: 14px 24px;
}

nav a {
    color: var(--lightTextColor);
    text-decoration: none;
    font-weight: bold;
    margin-right: 24px;
}

nav a:hover {
    text-decoration: underline;
}

/* ============================================================
   MAIN CONTENT AREA
   This keeps the page content from stretching too wide.
   ============================================================ */

main {
    max-width: var(--contentWidth);
    margin: 0 auto;
    padding: var(--mainPadding);
}

/* ============================================================
   LANDING PAGE HERO SECTION
   The hero is the large main section on index.html.
   ============================================================ */

.hero {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--surfaceColor);
    padding: 30px;
    border-radius: var(--heroRadius);
    box-shadow: var(--dropShadow);
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-family: var(--headingFont);
    font-size: 42px;
    margin-top: 0;
}

.hero-image {
    width: 50%;
    border-radius: var(--cardRadius);
}

/* ============================================================
   BUTTONS
   The button class is used for important links.
   ============================================================ */

.button {
    display: inline-block;
    background-color: var(--primaryColor1);
    color: var(--lightTextColor);
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background-color: var(--accentColor1);
}

/* ============================================================
   HOME PAGE FEATURE CARDS
   These are the three cards on index.html.
   ============================================================ */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

/* These shared rules keep cards, player cards, and schedule boxes consistent. */
.card,
.player-card,
.schedule-box {
    background-color: var(--surfaceColor);
    border-radius: var(--cardRadius);
    box-shadow: var(--dropShadow);
}

.card {
    padding: 22px;
}

.card h3,
.player-card h3 {
    color: var(--primaryColor1);
}

/* ============================================================
   INNER PAGE INTRO BOX
   Used at the top of players.html and schedule.html.
   ============================================================ */

.page-intro {
    background-color: var(--surfaceColor);
    padding: 24px;
    border-left: 8px solid var(--accentColor1);
    border-radius: 12px;
    margin-bottom: 25px;
}

.page-intro h2 {
    margin-top: 0;
}

/* ============================================================
   PLAYER PROFILE PAGE
   Each player is displayed in an individual card.
   ============================================================ */

.player-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.player-card {
    overflow: hidden;
}

.player-card img {
    width: 100%;
    display: block;
}

.player-card h3,
.player-card p {
    margin-left: 14px;
    margin-right: 14px;
}

.player-card p:last-child {
    margin-bottom: 18px;
}

/* ============================================================
   SCHEDULE PAGE
   This styles the fictitious match schedule table.
   ============================================================ */

.schedule-box {
    padding: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: var(--primaryColor1);
    color: var(--lightTextColor);
    text-align: left;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--borderColor);
}

tr:nth-child(even) {
    background-color: #f7f9fb;
}

/* ============================================================
   FOOTER
   The footer appears at the bottom of every page.
   ============================================================ */

footer {
    text-align: center;
    background-color: var(--primaryColor1);
    color: var(--lightTextColor);
    padding: 18px;
    margin-top: 30px;
}

/* ============================================================
   RESPONSIVE DESIGN
   These rules apply on smaller screens.
   Students can change 800px to experiment with breakpoints.
   ============================================================ */

@media (max-width: 800px) {
    header,
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }

    .cards,
    .player-grid {
        grid-template-columns: 1fr;
    }
}
