/* No-Tegridy Fantasy Football - Main Stylesheet */

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

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f0ad4e;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(-45deg, #000000, #1a1a1a, #2d1b69, #1e3c72, #2a5298);
    background-size: 400% 400%;
    animation: epicGradient 15s ease infinite;
    color: white;
    overflow-x: hidden;
}

@keyframes epicGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f0ad4e;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.7;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Header with logo */
.hero-header {
    text-align: center;
    padding: 50px 20px;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b35, #f0ad4e, #ff6b35);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 50px rgba(240, 173, 78, 0.5);
    margin-bottom: 20px;
}

@keyframes logoGlow {
    0% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    100% {
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #f0ad4e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #ff6b35;
    margin-bottom: 30px;
}

/* Enhanced Navigation */
nav {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #f0ad4e;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
    margin: 0;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 173, 78, 0.3), transparent);
    transition: left 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: linear-gradient(45deg, #f0ad4e, #ff6b35);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.4);
}

nav ul li a[aria-current="page"] {
    background: linear-gradient(45deg, #f0ad4e, #ff6b35);
    color: #000;
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.5);
}

/* Hamburger menu button (hidden on desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #f0ad4e;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: #ff6b35;
}

.hamburger:focus {
    outline: 2px solid #f0ad4e;
    outline-offset: 4px;
}

/* Main content areas */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-card {
    background: rgba(52, 58, 64, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(240, 173, 78, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(240, 173, 78, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.content-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: #f0ad4e;
    box-shadow: 0 20px 40px rgba(240, 173, 78, 0.2);
}

.card-header {
    font-size: 2rem;
    color: #f0ad4e;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Game Lines Styles */
.game-lines-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.game-lines-table th {
    background: rgba(240, 173, 78, 0.2);
    color: #f0ad4e;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #f0ad4e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-lines-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(240, 173, 78, 0.2);
}

.away-team, .home-team {
    font-weight: bold;
    color: #f0ad4e;
    text-align: left;
    font-size: 0.95rem;
}

.projection {
    color: #28a745;
    font-weight: bold;
}

.line-favorite {
    color: #28a745;
    font-weight: bold;
}

.line-underdog {
    color: #dc3545;
    font-weight: bold;
}

.box-score-link {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.box-score-link:hover {
    background: linear-gradient(45deg, #138496, #1e7e34);
    transform: scale(1.05);
}

.week-header {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Stream section */
.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #f0ad4e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Twitter feed */
.twitter-container {
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #1da1f2;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529, #000);
    padding: 40px 20px;
    text-align: center;
    color: #f0ad4e;
    border-top: 3px solid #f0ad4e;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0ad4e, #ff6b35, #f0ad4e);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

footer p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 20px;
    }

    .content-card {
        padding: 20px;
    }

    nav {
        padding: 12px 0;
    }

    nav ul {
        gap: 15px;
        padding: 0 10px;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .game-lines-table {
        font-size: 0.85rem;
    }

    .game-lines-table th,
    .game-lines-table td {
        padding: 8px 4px;
    }

    .away-team, .home-team {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 10px 0;
        position: relative;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
        padding: 10px 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav ul.active {
        max-height: 500px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 12px 20px;
        letter-spacing: 0.5px;
        display: block;
        width: 100%;
    }

    .hero-header {
        padding: 30px 10px;
    }

    .logo {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    /* Make tables scrollable on mobile */
    .game-lines-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        display: table;
        min-width: 100%;
    }
}

/* Table container for responsive scrolling */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(240, 173, 78, 0.3);
    border-radius: 50%;
    border-top-color: #f0ad4e;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility helper classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #f0ad4e;
    color: #000;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}
