/**
 * PatsFans.com Front Page Styles
 * Version: 1.0.0
 * 
 * Table of Contents:
 * 1. CSS Variables
 * 2. Base & Reset
 * 3. Layout Containers
 * 4. Section Headers
 * 5. Hero Cards & News Grid
 * 6. Feed Items & Sidebar
 * 7. Forum Section
 * 8. Press/Transcripts Section
 * 9. Newsletter Section
 * 10. Stats Widget
 * 11. Ticker Overrides
 * 12. Utilities
 * 13. Responsive - Tablet (max-width: 1123px)
 * 14. Responsive - Mobile (max-width: 768px)
 * 15. Responsive - Small Mobile (max-width: 600px)
 */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
    /* Background Colors */
    --pf-bg-deep: #050507;
    --pf-bg-nav: #0a0a0e;
    --pf-bg-dark: #0d1117;
    --pf-bg-card: #161b22;
    --pf-bg-field: #1a2332;
    --pf-bg-body: #000012;

    /* Text Colors */
    --pf-text-main: #ffffff;
    --pf-text-muted: #a0a0b0;
    --pf-text-primary: #f0f6fc;
    --pf-text-secondary: #8b949e;
    --pf-text-dim: #484f58;

    /* Accent Colors */
    --pf-accent-pink: #B3003C;
    --pf-accent-purple: #7000ff;
    --pf-accent-orange: #ff5500;
    --pf-accent-medblue: #00ccff;
    --pf-accent-green: #00ff88;
    --pf-accent-neon: #ccff00;
    --pf-accent-blue: #3b82f6;
    --pf-accent-hot: #ff2a6d;
    --pf-accent-red: #ef4444;
    --pf-accent-primary: #22c55e;
    --pf-accent-gold: #fbbf24;

    /* Borders */
    --pf-border-subtle: rgba(255, 255, 255, 0.08);
    --pf-field-line: rgba(255, 255, 255, 0.04);

    /* Typography */
    --pf-font-sans: 'Inter', system-ui, sans-serif;
    --pf-font-serif: 'Inter', 'Helvetica Neue', sans-serif;
    --pf-font-display: 'Bebas Neue', sans-serif;
    --pf-font-condensed: 'Barlow Condensed', sans-serif;
    --pf-font-body: 'Barlow', sans-serif;

    /* Legacy aliases for inline styles */
    --accent-pink: var(--pf-accent-pink);
    --accent-purple: var(--pf-accent-purple);
    --accent-orange: var(--pf-accent-orange);
    --accent-blue: var(--pf-accent-blue);
    --accent-green: var(--pf-accent-green);
    --accent-red: var(--pf-accent-red);
    --accent-hot: var(--pf-accent-hot);
    --accent-neon: var(--pf-accent-neon);
    --text-main: var(--pf-text-main);
    --text-muted: var(--pf-text-muted);
}


/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

body {
    background-color: var(--pf-bg-body) !important;
    color: var(--pf-text-main);
    font-family: var(--pf-font-sans);
    overflow-x: hidden;
}


/* ==========================================================================
   3. LAYOUT CONTAINERS
   ========================================================================== */

.pf-front-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.main-container {
    width: 100%;
    padding: 0 2rem 2rem 2rem;
}


/* ==========================================================================
   4. SECTION HEADERS
   ========================================================================== */

.pf-mainwindow-section-header {
    padding: 0 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.pf-mainwindow-section-header h1 {
    font-size: clamp(0.75rem, 3vw, 1.35rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    margin: 0;
    white-space: nowrap;
}

.pf-mainwindow-section-header .line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pf-front-section-header {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--pf-text-main);
    border-bottom: 2px solid var(--pf-text-muted);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}


/* ==========================================================================
   5. HERO CARDS & NEWS GRID
   ========================================================================== */

/* Shared Card Styles */
.pf-mainwindow-card,
.pf-mainwindow-hero-card {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    border: 0 !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pf-mainwindow-card:hover,
.pf-mainwindow-hero-card:hover {
    transform: translateY(-5px);
}

/* Card Background Image */
.pf-mainwindow-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pf-mainwindow-card:hover .pf-mainwindow-card-bg,
.pf-mainwindow-hero-card:hover .pf-mainwindow-card-bg {
    transform: scale(1.05);
}

/* Card Overlay */
.pf-mainwindow-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
}

/* Category Pill */
.category-pill {
    align-self: flex-start;
    padding: 6px 14px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Card Typography */
.pf-mainwindow-card h2,
.pf-mainwindow-hero-card h2,
.pf-mainwindow-card h3,
.pf-mainwindow-hero-card h3 {
    font-family: var(--pf-font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px black;
    font-weight: 600;
    color: white;
}

/* Meta Row */
.meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--pf-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid white;
}

.icon {
    opacity: 0.7;
    margin-right: 5px;
}

/* Feed Scroll Wrapper */
.feed-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.feed-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Tags */
.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    background: var(--pf-accent-blue);
    color: white;
    display: inline-block;
    margin-bottom: 10px;
}

.tag.hot {
    background: var(--pf-accent-hot);
}

.tag.tech {
    background: var(--pf-accent-neon);
    color: black;
}


/* ==========================================================================
   6. FEED ITEMS & SIDEBAR
   ========================================================================== */

/* Feed Items */
.pf-front-feed-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--pf-text-muted);
    align-items: start;
}

.pf-front-feed-img {
    height: 130px;
    background: #222;
}

.pf-front-feed-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-front-feed-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pf-front-feed-text p {
    color: var(--pf-text-muted);
    font-family: var(--pf-font-serif);
    margin-bottom: 1rem;
}

.pf-front-feed-meta {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 700;
}

/* Sidebar */
.pf-front-sidebar-section {
    margin-bottom: 3rem;
}

.pf-front-container-popular-list {
    list-style: none;
    counter-reset: pop-counter;
    padding: 0;
    margin: 0;
}

.pf-front-popular-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: baseline;
}

.pf-front-popular-item::before {
    counter-increment: pop-counter;
    content: counter(pop-counter);
    font-size: 3rem;
    font-weight: 900;
    color: var(--pf-text-muted);
    line-height: 1;
}

.pf-front-popular-text h4 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 5px 0;
    color: white;
}

.pf-front-popular-text span {
    font-size: 0.8rem;
    color: var(--pf-accent-orange);
    font-weight: bold;
}


/* ==========================================================================
   7. FORUM SECTION
   ========================================================================== */

.pf-forum-wrapper {
    width: 100%;
    background-color: #220000;
    background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 4rem 0;
    position: relative;
    border-top: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.pf-forum-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--pf-accent-red), var(--pf-accent-blue));
    z-index: 2;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.4);
}

.pf-forum-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
}

.pf-forum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-forum-header h3 {
    font-size: 1.8rem;
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-forum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pf-forum-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pf-forum-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--pf-accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 204, 255, 0.3);
}

.pf-forum-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--pf-accent-orange);
    opacity: 0.5;
    transition: 0.3s;
}

.pf-forum-card:hover::after {
    opacity: 1;
}

.pf-forum-card h4 {
    color: white;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pf-forum-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-pill {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.pf-forum-card:hover .stat-pill {
    background: var(--pf-accent-blue);
    color: black;
}

/* Forum List (Wire) */
.pf-forum-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pf-forum-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
}

.pf-forum-row:hover {
    background: #111;
    border-color: var(--pf-accent-green);
}

.pf-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #222;
    flex-shrink: 0;
}

.pf-forum-row:hover .pf-user-avatar {
    border-color: var(--pf-accent-green);
}

.pf-forum-row-content {
    flex: 1;
    min-width: 0;
}

.pf-forum-row-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-forum-row-meta {
    color: #666;
    font-size: 0.8rem;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pf-accent-green);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 136, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--pf-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--pf-accent-green);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}


/* ==========================================================================
   8. PRESS/TRANSCRIPTS SECTION
   ========================================================================== */

.pf-press-wrapper {
    width: 100%;
    padding: 4rem 0;
    position: relative;
}

.pf-press-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pf-press-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pf-press-header h3 {
    color: white;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.pf-press-header .line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pf-press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pf-press-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pf-press-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-press-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    opacity: 0.9;
    filter: grayscale(20%);
}

.pf-press-card:hover .pf-press-thumb img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

.pf-read-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.pf-read-icon::before {
    content: '';
    width: 20px;
    height: 2px;
    background: white;
    box-shadow: 0 5px 0 white, 0 10px 0 white;
}

.pf-press-card:hover .pf-read-icon {
    background: var(--pf-accent-blue);
    border-color: var(--pf-accent-blue);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.pf-press-card:hover .pf-read-icon::before {
    background: black;
    box-shadow: 0 5px 0 black, 0 10px 0 black;
}

.pf-press-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--pf-accent-pink);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.pf-press-card h4 {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.pf-press-card:hover h4 {
    color: var(--pf-accent-blue);
}

.pf-press-date {
    font-size: 0.8rem;
    color: var(--pf-text-muted);
}


/* ==========================================================================
   9. NEWSLETTER SECTION
   ========================================================================== */

.pf-newsletter-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #001f3f 0%, #000810 100%);
    position: relative;
    padding: 5rem 0;
    margin-top: 10px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-newsletter-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 204, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 85, 0.08) 0%, transparent 40%);
    z-index: 1;
}

.pf-newsletter-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.pf-newsletter-container h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
    letter-spacing: -1px;
}

.pf-newsletter-container p {
    font-size: 1.2rem;
    color: #b0b0c0;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.pf-newsletter-perks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.pf-perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-perk-icon {
    width: 20px;
    height: 20px;
    background: var(--pf-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 12px;
    font-weight: bold;
}

.pf-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-news-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    outline: none;
}

.pf-news-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pf-news-btn {
    background: var(--pf-accent-pink);
    color: white;
    border: none;
    padding: 0 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 1px;
}

.pf-news-btn:hover {
    background: white;
    color: var(--pf-accent-pink);
    transform: scale(1.02);
}

.pf-trust-text {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   10. STATS WIDGET
   ========================================================================== */

.pf-front-stats-widget-showcase {
    width: 100%;
    padding: 60px 0 70px;
    background: var(--pf-bg-dark);
    position: relative;
    overflow: hidden;
    font-family: var(--pf-font-body);
    color: var(--pf-text-primary);
    box-sizing: border-box;
}

.pf-front-stats-widget-showcase *,
.pf-front-stats-widget-showcase *::before,
.pf-front-stats-widget-showcase *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pf-front-stats-widget-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent calc(10% - 1px),
            var(--pf-field-line) calc(10% - 1px),
            var(--pf-field-line) 10%
        ),
        linear-gradient(180deg, rgba(34, 197, 94, 0.03) 0%, transparent 30%, transparent 70%, rgba(34, 197, 94, 0.03) 100%);
    pointer-events: none;
}

.pf-front-stats-widget-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Stats Widget Header */
.pf-front-stats-widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.pf-front-stats-widget-label {
    font-family: var(--pf-font-condensed);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pf-accent-primary);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.pf-front-stats-widget-label::before,
.pf-front-stats-widget-label::after {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pf-accent-primary));
}

.pf-front-stats-widget-label::after {
    background: linear-gradient(90deg, var(--pf-accent-primary), transparent);
}

.pf-front-stats-widget-title {
    font-family: var(--pf-font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pf-front-stats-widget-title .pf-front-stats-widget-highlight {
    color: var(--pf-accent-primary);
}

.pf-front-stats-widget-subtitle {
    font-family: var(--pf-font-body);
    color: var(--pf-text-secondary);
    font-size: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Stats Widget Grid */
.pf-front-stats-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Stats Widget Cards */
.pf-front-stats-widget-card {
    background: var(--pf-bg-card);
    border: 1px solid var(--pf-border-subtle);
    border-radius: 10px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pf-front-stats-widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pf-fsw-card-accent, var(--pf-accent-primary));
}

.pf-front-stats-widget-card:hover {
    transform: translateY(-4px);
    border-color: var(--pf-fsw-card-accent, var(--pf-accent-primary));
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6), 0 0 50px -25px var(--pf-fsw-card-accent, var(--pf-accent-primary));
}

.pf-front-stats-widget-card.pf-front-stats-widget-green {
    --pf-fsw-card-accent: var(--pf-accent-primary);
}

.pf-front-stats-widget-card.pf-front-stats-widget-gold {
    --pf-fsw-card-accent: var(--pf-accent-gold);
}

.pf-front-stats-widget-card.pf-front-stats-widget-red {
    --pf-fsw-card-accent: var(--pf-accent-red);
}

.pf-front-stats-widget-card.pf-front-stats-widget-blue {
    --pf-fsw-card-accent: var(--pf-accent-blue);
}

/* Stats Widget Card Header */
.pf-front-stats-widget-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pf-front-stats-widget-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pf-border-subtle);
}

.pf-front-stats-widget-badge {
    font-family: var(--pf-font-condensed);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--pf-accent-primary);
    border-radius: 3px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pf-front-stats-widget-badge.pf-front-stats-widget-gold {
    background: rgba(251, 191, 36, 0.1);
    color: var(--pf-accent-gold);
    border-color: rgba(251, 191, 36, 0.2);
}

.pf-front-stats-widget-badge.pf-front-stats-widget-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--pf-accent-red);
    border-color: rgba(239, 68, 68, 0.2);
}

.pf-front-stats-widget-badge.pf-front-stats-widget-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--pf-accent-blue);
    border-color: rgba(59, 130, 246, 0.2);
}

.pf-front-stats-widget-badge.pf-front-stats-widget-live {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pf-front-stats-widget-badge.pf-front-stats-widget-live::before {
    content: '';
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    animation: pf-front-stats-widget-pulse 1.5s ease-in-out infinite;
}

@keyframes pf-front-stats-widget-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pf-front-stats-widget-card-title {
    font-family: var(--pf-font-condensed);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pf-text-secondary);
    margin-bottom: 6px;
}

/* Stats Widget Game Lines */
.pf-front-stats-widget-game-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pf-border-subtle);
}

.pf-front-stats-widget-stat-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-front-stats-widget-stat-label {
    font-family: var(--pf-font-condensed);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    min-width: 55px;
    text-align: center;
}

.pf-front-stats-widget-stat-label.pf-front-stats-widget-qb {
    background: rgba(34, 197, 94, 0.15);
    color: var(--pf-accent-primary);
}

.pf-front-stats-widget-stat-label.pf-front-stats-widget-rush {
    background: rgba(59, 130, 246, 0.15);
    color: var(--pf-accent-blue);
}

.pf-front-stats-widget-stat-label.pf-front-stats-widget-rec {
    background: rgba(251, 191, 36, 0.15);
    color: var(--pf-accent-gold);
}

.pf-front-stats-widget-stat-label.pf-front-stats-widget-third {
    background: rgba(239, 68, 68, 0.15);
    color: var(--pf-accent-red);
}

.pf-front-stats-widget-stat-text {
    font-size: 13px;
    color: var(--pf-text-primary);
    line-height: 1.3;
    flex: 1;
}

/* Stats Widget Player List */
.pf-front-stats-widget-player-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pf-border-subtle);
    min-height: 120px;
}

.pf-front-stats-widget-player-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-front-stats-widget-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-front-stats-widget-player-name {
    font-family: var(--pf-font-condensed);
    font-size: 18px;
    font-weight: 600;
    color: var(--pf-text-primary);
    letter-spacing: 0.5px;
}

.pf-front-stats-widget-player-delta {
    font-family: var(--pf-font-display);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.pf-front-stats-widget-player-delta.pf-front-stats-widget-rise {
    color: var(--pf-accent-primary);
}

.pf-front-stats-widget-player-delta.pf-front-stats-widget-fall {
    color: var(--pf-accent-red);
}

/* Stats Widget Progress Bars */
.pf-front-stats-widget-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.pf-front-stats-widget-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transform-origin: left;
}

.pf-front-stats-widget-bar-fill.pf-front-stats-widget-rise {
    background: var(--pf-accent-primary);
}

.pf-front-stats-widget-bar-fill.pf-front-stats-widget-fall {
    background: var(--pf-accent-red);
}

.pf-front-stats-widget-card.pf-front-stats-widget-in-view .pf-front-stats-widget-bar-fill {
    animation: pf-front-stats-widget-bar-grow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--pf-fsw-delay, 0s);
}

@keyframes pf-front-stats-widget-bar-grow {
    from { width: 0; }
    to { width: var(--pf-fsw-target-width, 50%); }
}

/* Stats Widget Context */
.pf-front-stats-widget-context {
    font-size: 14px;
    color: var(--pf-text-dim);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pf-front-stats-widget-context-label {
    color: var(--pf-text-secondary);
    font-weight: 500;
}

/* Stats Widget Quick Links */
.pf-front-stats-widget-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pf-border-subtle);
}

.pf-front-stats-widget-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    text-decoration: none;
    color: var(--pf-text-primary);
    transition: all 0.2s ease;
}

.pf-front-stats-widget-quick-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.pf-front-stats-widget-quick-link-icon {
    font-size: 16px;
}

.pf-front-stats-widget-quick-link-text {
    font-family: var(--pf-font-condensed);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex: 1;
}

.pf-front-stats-widget-quick-link-arrow {
    color: var(--pf-text-dim);
    transition: color 0.2s ease;
}

.pf-front-stats-widget-quick-link:hover .pf-front-stats-widget-quick-link-arrow {
    color: var(--pf-accent-blue);
}

/* Stats Widget CTA */
.pf-front-stats-widget-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pf-font-condensed);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--pf-text-primary);
    margin-top: auto;
    padding-top: 4px;
    transition: all 0.3s ease;
}

.pf-front-stats-widget-cta:hover {
    color: var(--pf-fsw-card-accent, var(--pf-accent-primary));
}

.pf-front-stats-widget-cta .pf-front-stats-widget-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.pf-front-stats-widget-cta:hover .pf-front-stats-widget-arrow {
    transform: translateX(4px);
}

/* Stats Widget Loading & Labels */
.pf-front-stats-widget-loading {
    color: var(--pf-text-dim);
    font-style: italic;
    font-size: 12px;
}

.pf-front-stats-widget-week-label {
    font-family: var(--pf-font-display);
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--pf-text-primary);
    margin-bottom: 12px;
}

.pf-front-stats-widget-counter {
    display: inline-block;
}


/* ==========================================================================
   11. TICKER OVERRIDES
   ========================================================================== */

.pf-ticker-tickerbar,
.pf-ticker-tickerinner,
.pf-ticker-ticker {
    max-width: 100%;
    overflow: hidden;
}


/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

/* None currently needed */


/* ==========================================================================
   13. RESPONSIVE - TABLET (max-width: 1123px)
   ========================================================================== */

@media (max-width: 1223px) {
    .main-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .pf-mainwindow-hero-card {
        width: 100%;
        height: 85vw;
    }

    .feed-scroll-wrapper .pf-mainwindow-card {
        flex: 0 0 85vw;
        height: 45vw;
        scroll-snap-align: center;
    }

    .pf-front-feed-item {
        grid-template-columns: 1fr;
    }

    .pf-front-feed-img {
        height: 240px;
        width: 100%;
    }

    .pf-mainwindow-section-header h1 {
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .pf-front-stats-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .pf-press-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1023px) {
    .pf-forum-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pf-forum-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   14. RESPONSIVE - DESKTOP (min-width: 1124px)
   ========================================================================== */

@media (min-width: 1224px) {
    .main-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        height: 85vh;
    }

    .pf-front-container {
        grid-template-columns: 2.5fr 1fr;
    }

    .feed-scroll-wrapper {
        display: contents;
    }

    .pf-mainwindow-hero-card,
    .card {
        width: 100%;
        height: 100%;
    }

    .feed-scroll-wrapper .pf-mainwindow-card:nth-child(n+3) {
        display: none;
    }
}


/* ==========================================================================
   15. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .main-container {
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding: 1rem;
    }

    .feed-scroll-wrapper {
        padding: 0;
        margin: 0;
    }

    .feed-scroll-wrapper .pf-mainwindow-card {
        flex: 0 0 75vw;
        height: 45vh;
        scroll-snap-align: center;
    }

    .nav-links {
        display: none;
    }

    .pf-mainwindow-section-header {
        width: 100%;
        padding: 0 1rem;
        margin-top: 0;
        margin-bottom: 0;
    }

    .pf-mainwindow-card h3,
    .pf-mainwindow-hero-card h3 {
        font-size: 18px !important;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .pf-front-feed-item {
        grid-template-columns: 1fr;
    }

    .pf-front-feed-img {
        height: 200px;
    }

    .meta-row {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .pf-forum-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pf-forum-header h3 {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .pf-forum-container,
    .pf-front-container {
        padding: 0 1rem;
    }

    .pf-press-grid {
        grid-template-columns: 1fr;
    }

    .pf-press-container {
        padding: 0 1rem;
    }

    .pf-newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }

    .pf-news-input {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }

    .pf-news-btn {
        padding: 1.2rem;
        width: 100%;
        letter-spacing: 0;
    }

    .pf-newsletter-perks {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}


/* ==========================================================================
   16. RESPONSIVE - SMALL MOBILE (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {
    .pf-front-stats-widget-grid {
        grid-template-columns: 1fr;
    }

    .pf-front-stats-widget-showcase {
        padding: 40px 0 50px;
    }

    .pf-front-stats-widget-container {
        padding: 0 16px;
    }

    .pf-front-stats-widget-card {
        padding: 20px;
    }

    .pf-front-stats-widget-header {
        margin-bottom: 30px;
    }
}