/* =================
   CSS VARIABLES
   ================= */
:root {
    /* Brand Colors */
    --amaranth-red: #d22631;
    --black: #000000;
    --white: #FFFFFF;
    --spanish-pink: #F3BABD;
    --jonquil: #FFCD00;
    --spanish-viridian: #008264;
    --yale-blue: #004b87;
    
    /* Extended Palette */
    --off-white: #F8F8F8;
    --gray-100: #F3F3F3;
    --gray-200: #E5E5E5;
    --gray-300: #CCCCCC;
    --gray-700: #333333;
    
    /* Typography */
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Open Sans', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
    --card-gap: 30px;
}

/* =================
   RESET & BASE
   ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =================
   UTILITIES
   ================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
}

/* =================
   HEADER & NAVIGATION
   ================= */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--amaranth-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-not {
    color: var(--amaranth-red);
}

.logo-casual {
    color: var(--black);
}

.logo-fan {
    color: var(--yale-blue);
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amaranth-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    transition: all 0.3s ease;
}

/* =================
   HERO SECTION
   ================= */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--amaranth-red) 0%, var(--yale-blue) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-line {
    display: block;
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

.hero-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    pointer-events: none;
}

/* =================
   ATHLETES SECTION
   ================= */
.athletes-section {
    padding: var(--section-padding) 0;
}

.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-bar {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--amaranth-red);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
}

.view-toggle {
    display: flex;
    gap: 10px;
    background: var(--gray-100);
    padding: 5px;
    border-radius: 30px;
}

.toggle-btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--amaranth-red);
    color: var(--white);
}

.toggle-btn:hover:not(.active) {
    background: var(--gray-200);
}

/* Athletes Grid */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--card-gap);
}

.athlete-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.athlete-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(210, 38, 49, 0.15);
    border-color: var(--amaranth-red);
}

.athlete-card-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.athlete-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.athlete-card:hover .athlete-card-image img {
    transform: scale(1.05);
}

.athlete-card-content {
    padding: 25px;
}

.athlete-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.athlete-card-position {
    background: var(--yale-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.athlete-card-date {
    color: var(--gray-700);
}

.athlete-card-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.athlete-card-excerpt {
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.5;
}

.athlete-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amaranth-red);
    font-weight: 600;
}

.athlete-card-link svg {
    transition: transform 0.3s ease;
}

.athlete-card:hover .athlete-card-link svg {
    transform: translateX(5px);
}

/* =================
   ATHLETE PAGE
   ================= */
.athlete-hero {
    background: linear-gradient(135deg, var(--yale-blue) 0%, var(--spanish-viridian) 100%);
    color: var(--white);
    padding: 80px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.athlete-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.athlete-meta span {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.athlete-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.athlete-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.athlete-hero-image {
    height: 400px;
}

/* Athlete Navigation Tabs */
.athlete-nav {
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 73px;
    z-index: 50;
}

.athlete-nav .container {
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 20px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-700);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--amaranth-red);
    background: var(--gray-100);
}

.tab-btn.active {
    color: var(--amaranth-red);
    border-bottom-color: var(--amaranth-red);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 60px 0;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 40px;
}

/* Ode Section */
.ode-content {
    max-width: 800px;
    margin: 0 auto;
}

.ode-text {
    font-size: 1.15rem;
    line-height: 1.8;
}

.ode-text p {
    margin-bottom: 25px;
}

.ode-quote {
    background: var(--gray-100);
    border-left: 5px solid var(--amaranth-red);
    padding: 30px 40px;
    margin: 40px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gray-700);
}

/* Articles Section */
.articles-grid {
    display: grid;
    gap: 25px;
}

.article-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--amaranth-red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.article-date {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.article-excerpt {
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-source {
    font-size: 0.9rem;
    color: var(--yale-blue);
    font-weight: 600;
}

.article-link {
    color: var(--amaranth-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-link:hover {
    text-decoration: underline;
}

/* Shop Section */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.shop-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--amaranth-red);
}

.shop-image {
    height: 250px;
}

.shop-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--black);
}

.shop-description {
    padding: 0 20px 15px;
    color: var(--gray-700);
}

.shop-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--gray-100);
    color: var(--amaranth-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.shop-card:hover .shop-link {
    background: var(--amaranth-red);
    color: var(--white);
}

/* =================
   ABOUT PAGE
   ================= */
.about-hero {
    background: linear-gradient(135deg, var(--spanish-viridian) 0%, var(--yale-blue) 100%);
    color: var(--white);
    padding: 100px 20px 60px;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.about-content {
    padding: var(--section-padding) 0;
}

.about-story {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-story h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--black);
}

.about-story p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-700);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--amaranth-red);
}

.value-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

.about-approach,
.about-community {
    max-width: 800px;
    margin: 60px auto;
}

.about-approach h2,
.about-community h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--black);
    text-align: center;
}

.about-approach p,
.about-community p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-700);
}

.newsletter-form-large {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form-large input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form-large input:focus {
    outline: none;
    border-color: var(--amaranth-red);
}

.newsletter-form-large button {
    padding: 15px 35px;
    background: var(--amaranth-red);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form-large button:hover {
    background: var(--yale-blue);
    transform: translateY(-2px);
}

/* =================
   BLOG PAGE
   ================= */
.blog-hero {
    background: linear-gradient(135deg, var(--amaranth-red) 0%, var(--yale-blue) 100%);
    color: var(--white);
    padding: 100px 20px 60px;
    text-align: center;
}

.blog-content {
    padding: var(--section-padding) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--card-gap);
}

.blog-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--amaranth-red);
}

.blog-card-image {
    height: 280px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.blog-card-date {
    color: var(--gray-700);
}

.blog-card-category {
    background: var(--yale-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.blog-card-excerpt {
    color: var(--gray-700);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amaranth-red);
    font-weight: 600;
}

.blog-card-link svg {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(5px);
}

/* =================
   FOOTER
   ================= */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-bottom: 15px;
}

.footer-logo .logo-not {
    color: var(--amaranth-red);
}

.footer-logo .logo-casual {
    color: var(--white);
}

.footer-logo .logo-fan {
    color: var(--jonquil);
}

.footer-tagline {
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-nav h3,
.footer-newsletter h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--jonquil);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--gray-300);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--amaranth-red);
}

.footer-newsletter p {
    color: var(--gray-300);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--gray-700);
    border-radius: 5px;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--amaranth-red);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--amaranth-red);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--jonquil);
    color: var(--black);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-300);
}

.footer-links a:hover {
    color: var(--amaranth-red);
}

/* =================
   RESPONSIVE
   ================= */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px;
    }
    
    .athlete-hero {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tab-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 73px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .athletes-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .athlete-nav .container {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .newsletter-form-large {
        flex-direction: column;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .toggle-btn {
        flex: 1;
    }
}