
/* 
    Gridiron Unfiltered – CIS133DA Final Project
    Layout: clean white NFL-inspired look with subtle animated team-logo background.
    Extra technique (not covered in class): CSS keyframe animation for scrolling logo backdrop
    and glowing gradient border around the page frame.
*/

:root {
    --page-bg: #e5edf6;
    --shell-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #4b5563;
    --accent-blue: #013369;  /* NFL blue */
    --accent-red: #d71920;   /* NFL red */
    --accent-soft: #eff6ff;
    --border-soft: #cbd5f5;
    --card-radius: 1.25rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* RESET + GLOBAL TAG STYLES */

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
    position: relative;
    overflow-x: hidden;
}

/* Animated NFL team logo backdrop – extra concept/technique */
body::before {
    content: "";
    position: fixed;
    inset: -40vh 0 0;
    background-image: url("images/nfl-teams.png");
    background-repeat: repeat-y;
    background-position: center bottom;
    background-size: 1100px auto;
    opacity: 0.12;
    filter: saturate(1.1);
    pointer-events: none;
    animation: scrollTeams 80s linear infinite;
    z-index: 0;
}

@keyframes scrollTeams {
    from { background-position: center 110%; }
    to   { background-position: center 0%; }
}

/* Glowing red/blue outline around each page */

body::after {
    content: "";
    position: fixed;
    inset: 14px;
    border-radius: 28px;
    border: 2px solid rgba(1, 51, 105, 0.7); /* blue base */
    box-shadow:
        0 0 16px rgba(1, 51, 105, 0.7),
        0 0 26px rgba(215, 25, 32, 0.55);
    pointer-events: none;
    z-index: 1;
}

/* MAIN WRAPPER */

#wrapper.site-shell {
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 28px 28px 40px;
    background: var(--shell-bg);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* HEADINGS */

h1, h2, h3 {
    margin: 0;
    color: var(--text-main);
}

p {
    line-height: 1.6;
}

/* NAVIGATION */

.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(16px);
    background: rgba(229, 237, 246, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 35%;
    background: radial-gradient(circle at 20% 15%, #ffffff, #60a5fa 40%, #1d4ed8 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text-main {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
}

.brand-text-sub {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nav-links a {
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #4b5563;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

/* Pseudo-class style requirement */
.nav-links a:hover,
.nav-links a:focus-visible {
    border-color: rgba(1, 51, 105, 0.3);
    background: rgba(239, 246, 255, 0.95);
    color: #111827;
}

.nav-links a[aria-current="page"] {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    color: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

/* HERO – HOME PAGE */

.hero {
    margin-top: 4px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
    margin-bottom: 0.7rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 3.5vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.hero h1 span:nth-child(1) {
    color: var(--accent-blue);
}

.hero h1 span:nth-child(2) {
    color: var(--accent-red);
}

.hero-sub {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.4rem 0 1rem;
}

.hero-tags span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: var(--accent-soft);
    color: #1f2937;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    color: #f9fafb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
}

.btn-ghost {
    border-color: rgba(148, 163, 184, 0.8);
    color: #111827;
    background: #ffffff;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

.hero-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Hero visual with NFL logo */

.hero-visual {
    border-radius: 22px;
    padding: 18px;
    background: radial-gradient(circle at top, #eff6ff, #dbeafe);
    box-shadow: var(--shadow-soft);
    border: 1px solid #bfdbfe;
    position: relative;
    overflow: hidden;
}

.hero-logo-main {
    border-radius: 18px;
    background: #ffffff;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-logo-main img {
    max-width: 210px;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 30px rgba(15, 23, 42, 0.35));
    transition: transform 0.25s ease;
}

.hero-logo-main:hover img {
    transform: translateY(-4px);
}

.hero-logo-caption {
    font-size: 0.78rem;
    color: #4b5563;
    text-align: center;
}

.hero-badge {
    position: absolute;
    right: 16px;
    bottom: 14px;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.94);
    color: #e5e7eb;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-badge span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Sections & cards */

.section {
    margin-top: 2.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.4rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 30rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.card {
    background: #f9fafb;
    border-radius: var(--card-radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.card-header {
    margin-bottom: 0.6rem;
}

.card-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #ffffff;
}

.card-title {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
}

.card-body {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.card-footer {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

/* Lists and split layout */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.panel {
    background: #f9fafb;
    border-radius: var(--card-radius);
    padding: 1.35rem 1.4rem;
    border: 1px solid #dbe2f0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.panel-alt {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.panel h3 {
    margin-bottom: 0.75rem;
}

.list {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.list li {
    margin-bottom: 0.35rem;
}

/* TABLE – used on Business page */

.table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.88rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.data-table th,
.data-table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.data-table thead {
    background: #eff6ff;
}

.data-table th {
    font-weight: 600;
}

/* Subpage heroes – descendant selector example */

main h2 {
    color: var(--accent-blue);
}

.page-hero {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.page-hero .ribbon {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.page-hero p {
    font-size: 0.93rem;
    color: var(--text-muted);
}

.page-hero-media {
    border-radius: 20px;
    padding: 14px;
    background: radial-gradient(circle at top, #eff6ff, #e0ecff);
    border: 1px solid #bfdbfe;
    box-shadow: var(--shadow-soft);
}

.page-hero-media img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* Footer */

.footer {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sidebar-style nav or blocks can be created using this detail class */
.details {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Responsive adjustments */

@media (max-width: 900px) {
    .hero,
    .page-hero,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    #wrapper.site-shell {
        margin: 20px 16px 32px;
        padding-inline: 18px;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 18px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
