/* 
   FreePicksAlways CSS Architecture
   Theme: Dark with Dull Golden accents
   Architecture: Variables -> Reset -> Base -> Typography -> Layout -> Components -> Utilities
*/

/* --- 1. CSS Variables --- */
:root {
    /* Colors */
    --bg-dark: #0a0b0e;
    --bg-surface: #12141a;
    --bg-surface-hover: #1a1c24;
    --bg-surface-light: #20232c;
    
    --gold-primary: #C9A66B;
    --gold-light: #e6cd98;
    --gold-dark: #9e804f;
    --gold-muted: rgba(201, 166, 107, 0.15);
    
    --text-main: #f0f2f5;
    --text-muted: #a0a6b5;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(201, 166, 107, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Shadows & Transitions */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(201, 166, 107, 0.1);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    
    /* Layout */
    --container-width: 1200px;
}

/* --- 2. Reset & Box Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px; /* Account for mobile header */
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, textarea, select {
    font: inherit;
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.text-gold {
    color: var(--gold-primary);
}

.text-small {
    font-size: 0.875rem;
}

/* --- 4. Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* --- 5. Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 14px rgba(201, 166, 107, 0.2);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 166, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-muted);
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base), padding var(--transition-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-accent {
    color: var(--gold-primary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--text-main);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width var(--transition-fast);
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    left: 0;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle span:first-child { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:last-child { top: 18px; }

/* Hero Section */
.hero {
    padding: calc(var(--space-md) + 100px) 0 var(--space-md);
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    /* overflow: hidden; Removed to allow gradient to flow down */
}

/* Background Gradient Fix */
body::before {
    content: '';
    position: fixed; /* Keep it fixed so it stays in place during scroll */
    top: -50%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    body::before {
        display: none;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    justify-content: center;
}

.filter-tab {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    color: var(--text-main);
    border-color: var(--border-gold);
    transform: scale(1.05);
    background-color: var(--bg-surface-hover);
}

.filter-tab.active {
    background-color: rgba(201, 166, 107, 0.15);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(201, 166, 107, 0.2);
}

/* Pick Cards Grid */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.pick-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Required for stretched-link */
}

.pick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-gold);
}

.pick-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sport-badge {
    background-color: var(--bg-surface-light);
    color: var(--gold-light);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem; /* Slightly smaller for better fit */
    letter-spacing: 0.05em;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.matchup {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.the-pick {
    background-color: var(--bg-surface-light);
    padding: var(--space-sm);
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    align-items: baseline;
}

.pick-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pick-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.pick-excerpt {
    font-size: 0.95rem;
    flex-grow: 1;
}

.pick-card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.read-more {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.read-more::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Experts Section */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.expert-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    border: 2px solid var(--gold-primary);
}

.expert-title {
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.expert-bio {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-about p {
    font-size: 0.9rem;
    max-width: 300px;
    margin-top: var(--space-sm);
}

.footer-links h4, .footer-legal h4 {
    color: var(--text-main);
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: var(--space-sm);
}

.footer-links a, .footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* --- 6. Responsive --- */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .site-header {
        background-color: var(--bg-dark);
        backdrop-filter: none;
    }
    
    .logo {
        font-size: 1.25rem;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: calc(var(--space-md) + 80px) 0 var(--space-md);
    }

    h1 {
        font-size: 2.5rem;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-about p {
        margin: var(--space-sm) auto;
    }
}

/* Social Sharing */
.social-share {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.share-btn:hover {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    border-color: var(--gold-primary);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copy-success {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* Affiliate CTA */
.stake-cta {
    background: linear-gradient(145deg, #0f1115 0%, #050608 100%);
    border: 1px solid rgba(201, 166, 107, 0.3);
    border-radius: 12px;
    padding: var(--space-2xl) var(--space-xl);
    margin: var(--space-2xl) 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 166, 107, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.stake-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Floating Navigation Widget */
.floating-nav-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.floating-nav-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-widget-btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 0 10px 25px rgba(201, 166, 107, 0.4);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-widget-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    box-shadow: 0 15px 30px rgba(201, 166, 107, 0.5);
}

.nav-widget-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .floating-nav-widget {
        bottom: 1.5rem;
        right: 50%;
        transform: translateX(50%) translateY(20px);
    }
    
    .floating-nav-widget.visible {
        transform: translateX(50%) translateY(0);
    }
}

.stake-cta-label {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stake-cta-promo {
    color: var(--gold-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.stake-cta-btn {
    width: 100%;
    max-width: 320px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    color: #000;
    box-shadow: 0 10px 20px rgba(201, 166, 107, 0.2);
    transition: all var(--transition-base);
    animation: goldPulse Premium 4s infinite;
}

.stake-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(201, 166, 107, 0.4);
    filter: brightness(1.1);
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 166, 107, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(201, 166, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 166, 107, 0); }
}
