/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header and Navigation */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: #dc2626;
    background-color: #f3f4f6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-secondary:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(59, 130, 246, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f1f5f9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.nba-card {
    border-left: 4px solid #1e40af;
}

.stat-card.mlb-card {
    border-left: 4px solid #dc2626;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nba-card .stat-icon {
    color: #1e40af;
}

.mlb-card .stat-icon {
    color: #dc2626;
}

.stat-card:not(.nba-card):not(.mlb-card) .stat-icon {
    color: #059669;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.nba-card .stat-number {
    color: #1e40af;
}

.mlb-card .stat-number {
    color: #dc2626;
}

.stat-card:not(.nba-card):not(.mlb-card) .stat-number {
    color: #059669;
}

.stat-label {
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-sublabel {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.nba-section .section-title {
    color: #1e40af;
}

.mlb-section .section-title {
    color: #dc2626;
}

.legends-section .section-title,
.schedule-section .section-title,
.news-section .section-title {
    color: #374151;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Sports Sections */
.nba-section {
    padding: 5rem 0;
    background: white;
}

.mlb-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.sports-showcase {
    text-align: center;
    margin-bottom: 3rem;
}

.sports-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Conference/League Tabs */
.conference-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nba-section .tab-button.active {
    background: #1e40af;
    color: white;
}

.mlb-section .tab-button.active {
    background: #dc2626;
    color: white;
}

.legends-section .tab-button.active,
.schedule-section .tab-button.active {
    background: #059669;
    color: white;
}

.tab-button:hover {
    background: #e5e7eb;
}

.tab-button.active:hover {
    opacity: 0.9;
}

.conference-content,
.legends-sport-content,
.schedule-sport-content {
    display: none;
}

.conference-content.active,
.legends-sport-content.active,
.schedule-sport-content.active {
    display: block;
}

/* Teams Grid */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.division-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.division-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.nba-division {
    border-left: 4px solid #1e40af;
}

.mlb-division {
    border-left: 4px solid #dc2626;
}

.division-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.nba-division .division-title {
    color: #1e40af;
}

.mlb-division .division-title {
    color: #dc2626;
}

.teams-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.team-item:hover {
    background: #e2e8f0;
}

.team-name {
    font-weight: 600;
    color: #1f2937;
}

.team-city {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Season Info */
.season-info {
    margin-top: 3rem;
}

.season-card {
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.nba-season {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.mlb-season {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.season-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.season-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Legends Section */
.legends-section {
    padding: 5rem 0;
    background: white;
}

.legends-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.legend-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.nba-legend {
    border-left: 4px solid #1e40af;
}

.mlb-legend {
    border-left: 4px solid #dc2626;
}

.legend-rank {
    font-size: 2rem;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nba-legend .legend-rank {
    color: #1e40af;
    background: #dbeafe;
}

.mlb-legend .legend-rank {
    color: #dc2626;
    background: #fee2e2;
}

.legend-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.legend-position {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.nba-legend .legend-position {
    color: #1e40af;
}

.mlb-legend .legend-position {
    color: #dc2626;
}

.legend-team {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legend-achievement {
    font-weight: 500;
    color: #059669;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.legend-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Schedule Section */
.schedule-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.schedule-showcase {
    text-align: center;
    margin-bottom: 3rem;
}

.schedule-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.current-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.current-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.status-text {
    font-size: 1.1rem;
    color: #6b7280;
}

.status-text strong {
    color: #dc2626;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.nba-game {
    border-left: 4px solid #1e40af;
}

.mlb-game {
    border-left: 4px solid #dc2626;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.game-week {
    font-weight: 600;
}

.nba-game .game-week {
    color: #1e40af;
}

.mlb-game .game-week {
    color: #dc2626;
}

.game-date {
    font-size: 0.9rem;
    color: #6b7280;
}

.game-matchup {
    margin-bottom: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: #1f2937;
}

.team-status {
    font-size: 0.9rem;
    color: #6b7280;
}

.game-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.game-time {
    font-weight: 600;
    color: #1f2937;
}

.game-network {
    font-size: 0.9rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 1.5rem;
}

.news-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.nba-category {
    background: #dbeafe;
    color: #1e40af;
}

.mlb-category {
    background: #fee2e2;
    color: #dc2626;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #f9fafb;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

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

    .legend-card {
        flex-direction: column;
        text-align: center;
    }

    .conference-tabs,
    .legends-tabs,
    .schedule-tabs {
        flex-direction: column;
    }

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

    .news-card.featured {
        grid-column: span 1;
    }

    .season-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .legend-rank {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-icon {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.stat-card,
.division-card,
.legend-card,
.game-card,
.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus,
.tab-button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .conference-tabs,
    .legends-tabs,
    .schedule-tabs {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        color: #000;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}