/* Sooner Spectator Magazine - Main Stylesheet */

/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #9d2235;
    --dark-red: #7d1b2a;
    --light-red: #b8384d;
    --light-gray: #f5f5f5;
    --medium-gray: #666;
    --dark-gray: #333;
    --white: #ffffff;
    --black: #000000;

    /* Light Theme Colors (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-elevated: #f9f9f9;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --header-bg: rgba(255, 255, 255, 0.98);
}

/* Dark Theme Colors */
body.dark-theme {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-elevated: #242424;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
    --header-bg: rgba(26, 26, 26, 0.98);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Header and Navigation */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Swap logo based on theme */
.logo .logo-dark {
    display: none;
}

body.dark-theme .logo .logo-light {
    display: none;
}

body.dark-theme .logo .logo-dark {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    margin-top: 0;
    z-index: 1000;
}

/* Invisible bridge so mouse doesn't lose hover crossing the gap */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--primary-red);
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Shared Header Action Button Base */
.header-action-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-action-btn:hover {
    background-color: var(--bg-elevated);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.login-btn {
    padding: 0.6rem 1.5rem;
    gap: 0.5rem;
}


.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn::before {
    content: '\2630';
}

.mobile-menu-btn[aria-expanded="true"]::before {
    content: '\2715';
}

/* Theme Toggle Button */
.theme-toggle {
    gap: 0.5rem;
}

.theme-toggle .theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.theme-toggle .theme-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.4s ease;
}

.theme-toggle:active .theme-icon svg {
    transform: rotate(30deg);
}

/* Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .logo-large {
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Magazine Grid */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.magazine-cover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.magazine-cover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(157, 34, 53, 0.3);
}

.magazine-cover img {
    width: 100%;
    display: block;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

/* Sponsor Sections */
.sponsor-section {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.sponsor-section .container {
    padding: 4rem 1rem;
    max-width: 100%;
}

.sponsor-section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.sponsor-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.sponsor-slide {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.sponsor-slide.active {
    display: grid;
    opacity: 1;
}

.sponsor-logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(157, 34, 53, 0.3);
    border-color: var(--primary-red);
}

.sponsor-logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: grayscale(0%);
    transition: transform 0.3s ease;
}

/* Scale up main sponsor ads on homepage */
.two-column .sponsor-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Carousel/Slideshow */
.slideshow {
    position: relative;
    max-width: 100%;
    margin: 3rem 0;
    overflow: hidden;
    background-color: var(--dark-gray);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.slideshow-container {
    position: relative;
    height: 400px;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.slide-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 30px; /* Modern pill shape */
    border: 2px solid var(--primary-red);
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 34, 53, 0.5);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.3);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--primary-red);
    border-color: white;
}

.dot:hover {
    background-color: rgba(255,255,255,0.6);
}

/* About Section */
.about-section {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(157, 34, 53, 0.3);
}

.about-section h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background-color: white;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--dark-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.contact-form h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-form p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(157, 34, 53, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 34, 53, 0.3);
}

/* Blog/Features */
.blog-header {
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.blog-header h1 {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}

.blog-header h1 span {
    color: var(--primary-red);
}

.blog-header p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    margin-top: 1rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-filters button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.blog-filters button:hover,
.blog-filters button.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}

.blog-post {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.blog-post-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.blog-post h2:hover {
    color: var(--primary-red);
}

.blog-post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.blog-post-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Product Grid (Subscribe Page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 3rem 0;
}

.product-card {
    text-align: center;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(157, 34, 53, 0.3);
    border-color: var(--primary-red);
}

.product-card img {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.product-price {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

[id^="paypal-button-"] {
    margin-top: auto;
    min-height: 55px;
}

/* Contact/Advertise Pages */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.page-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 3rem 0;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: white;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
}

.contact-info a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Form on Advertise Page */
.advertise-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

footer a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }

    /* Mobile Navigation Logic */
    .mobile-menu-btn {
        display: block;
        order: 3; /* Place after logo and right icons */
    }

    nav ul {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-card);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        border-top: 1px solid var(--border-color);
    }

    nav ul.mobile-open {
        display: flex;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1rem;
    }

    .hero .logo-large {
        max-width: 90%;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Football Stitching Detail */
.stitching-detail {
    position: relative;
    padding: 2rem;
}

.stitching-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        #9d2235 8px,
        #9d2235 10px,
        transparent 10px,
        transparent 12px,
        #9d2235 12px,
        #9d2235 20px
    );
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Content Containers */
.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.content-narrow p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-medium {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Like/Heart Button */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.like-btn:hover {
    color: var(--primary-red);
}

/* Search Filter Button */
.search-filter-btn {
    margin-left: auto;
}

/* Advertise Intro Text */
.advertise-intro {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Cover Archive Year Sections */
.year-section {
    margin-bottom: 4rem;
}

.year-header {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-red);
}

/* Accessibility: Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* Footer Navigation */
.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    margin: 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Read More Button - Small Variant */
.read-more-btn--small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Page-Specific Background Images */
.hero--palace { background-image: url('images/the_palace.jpg'); }
.blog-header--about { background-image: url('images/about-header.jpg'); }
.blog-header--features { background-image: url('images/features-header.jpg'); }

/* Article Header Backgrounds */
.blog-header--home-grown-talent { background-image: url('images/blog/home-grown-talent.jpg'); }
.blog-header--road-warrior { background-image: url('images/blog/road-warrior.jpg'); }
.blog-header--home-grown-2024 { background-image: url('images/blog/home-grown-ou.jpg'); }
.blog-header--return-to-florida { background-image: url('images/blog/return-to-florida.jpg'); }
.blog-header--common-thread { background-image: url('images/blog/common-thread.jpg'); }
.blog-header--to-the-point { background-image: url('images/blog/to-the-point.jpg'); }
.blog-header--hall-of-fame { background-image: url('images/blog/hall-of-fame.jpg'); }

/* Slideshow Slide Backgrounds */
.slide--mag-shop { background-image: url('images/slideshow/mag-shop.jpg'); }
.slide--schedule { background-image: url('images/slideshow/football-schedule.jpg'); }
.slide--promo { background-image: url('images/slideshow/spectator-promo.png'); }

/* Article Utility Classes */
.article-meta-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.article-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.article-footnote {
    font-style: italic;
    margin-top: 2rem;
}

.article-back-link {
    text-align: center;
    margin-top: 3rem;
}

/* Blog Post Filtering */
.blog-post[data-category].hidden {
    display: none;
}

/* Login Page */
.login-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem;
}

.login-form {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--primary-red);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-red);
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Sponsor Carousel Responsive */
@media (max-width: 768px) {
    .sponsor-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sponsor-slide {
        grid-template-columns: 1fr;
    }
}

/* Profile Page */
.profile-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-red);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-section-title:first-of-type {
    margin-top: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group--small {
    flex: 0 0 100px;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group--small {
        flex: 1;
    }
}

/* Subscription Status Cards */
.subscription-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.subscription-status-card--active {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.05);
}

.subscription-status-card--expired {
    border-color: var(--primary-red);
    background: rgba(157, 34, 53, 0.05);
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 1rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.theme-option input[type="radio"] {
    accent-color: var(--primary-red);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.7rem;
    border: none;
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.auth-tab.active {
    border-bottom-color: var(--primary-red);
    color: var(--primary-red);
}

.auth-tab:hover {
    color: var(--primary-red);
}

/* Auth Message Banners */
.auth-message {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Auth Form Sections */
.auth-section {
    display: none;
}

.auth-section.active {
    display: block;
}

/* Logged-In User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu-toggle {
    font-size: 0.85rem;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.user-menu-dropdown a:hover {
    background: var(--bg-elevated);
    color: var(--primary-red);
}

.admin-panel-link {
    border-bottom: 1px solid var(--border-color);
}

/* Admin Panel */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-search {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 280px;
    max-width: 100%;
}

.admin-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-table th,
.admin-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-elevated);
}

.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-badge--standard {
    background: var(--border-color);
    color: var(--text-secondary);
}

.admin-badge--admin {
    background: var(--primary-red);
    color: var(--white);
}

.admin-badge--inactive {
    background: #6c757d;
    color: var(--white);
}

.admin-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-actions button {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-actions button:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.admin-actions button.danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.admin-actions button.danger:hover {
    background: var(--primary-red);
    color: var(--white);
}

.admin-detail-row {
    background: var(--bg-elevated);
}

.admin-detail-cell {
    padding: 1rem 1.5rem !important;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
}

.admin-detail-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.admin-detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.admin-modal {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.admin-modal h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.admin-modal .form-group {
    margin-bottom: 1rem;
}

.admin-modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.admin-modal-actions button {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-modal-actions .btn-cancel {
    background: var(--bg-card);
    color: var(--text-primary);
}

.admin-modal-actions .btn-confirm {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search {
        width: 100%;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .admin-actions {
        flex-direction: column;
    }
}
