/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', 'Sukhumvit Set', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Loading Overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loader-logo .highlight {
    background: linear-gradient(45deg, #ff6b35, #ff4500, #ff6b35);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 2s ease-in-out infinite;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin-bottom: 1rem;
}

.loader-text {
    color: #ff6b35;
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(255, 107, 53, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 107, 53, 1), 0 0 40px rgba(255, 107, 53, 0.8); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Page Transition Effects */
.page-transition {
    opacity: 0;
    transform: translateY(30px);
    animation: pageIn 0.8s ease-out forwards;
}

@keyframes pageIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-fade-in {
    animation: contentFadeIn 1.2s ease-out forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.header {
    background: #000000;
    border-bottom: 2px solid #ff6b35;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
}

.logo h1 a {
    text-decoration: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.logo h1 a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

.logo h1 a .highlight {
    background: linear-gradient(45deg, #ff6b35, #ff4500);
    color: #000000;
    padding: 0.2rem 0.8rem;
    border-radius: 25px;
    font-size: 1.8rem;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    animation: logoHighlight 3s ease-in-out infinite;
}

@keyframes logoHighlight {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
        background: linear-gradient(45deg, #ff6b35, #ff4500);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.8), 0 0 35px rgba(255, 107, 53, 0.6);
        background: linear-gradient(45deg, #ff4500, #ff6b35);
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    background: #333333;
    border-right: 1px solid #555555;
    font-size: 0.9rem;
}

.main-nav a:hover, .main-nav a.active {
    background: #ff6b35;
    color: #000000;
}

.main-nav a:first-child {
    border-radius: 5px 0 0 5px;
}

.main-nav a:last-child {
    border-radius: 0 5px 5px 0;
    border-right: none;
}

.menu-toggle {
    display: none;
    background: #ff6b35;
    border: none;
    color: #000000;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Top Banner Ad */
.top-banner-ad {
    background: #1a1a1a;
    text-align: center;
    padding: 0.5rem;
    border-bottom: 1px solid #333333;
}

.top-banner-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Main Container Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 1rem;
    padding: 1rem;
    min-height: calc(100vh - 200px);
}

/* Left Sidebar */
.left-sidebar {
    background: #1a1a1a;
    border-radius: 8px;
    height: fit-content;
    border: 1px solid #333333;
}

.sports-menu-container {
    padding: 1rem;
}

.sidebar-title {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.sports-menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #2a2a2a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #333333;
    font-size: 0.9rem;
}

.sport-item:hover, .sport-item.active {
    background: #ff6b35;
    color: #000000;
    border-color: #ff6b35;
}

.sport-icon {
    font-size: 1.2rem;
    width: 20px;
}

.sport-name {
    flex: 1;
    font-weight: 500;
}

.sport-count {
    background: #ff6b35;
    color: #000000;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.sport-item.active .sport-count {
    background: #000000;
    color: #ff6b35;
}

/* Main Content */
.main-content {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #333333;
}

/* Featured Content */
.featured-content {
    margin-bottom: 2rem;
}

.featured-banner {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.featured-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-banner:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(255,107,53,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 2;
}

.banner-overlay h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Promotional Banners */
.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.promo-banner {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.promo-banner img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.promo-banner:hover img {
    transform: scale(1.1);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6b35;
}

.section-header h2 {
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-tabs {
    display: flex;
    gap: 0.5rem;
}

.date-tab {
    background: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.date-tab:hover, .date-tab.active {
    background: #ff6b35;
    color: #000000;
    border-color: #ff6b35;
}

/* Matches Grid */
.matches-grid, .schedule-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.match-card {
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.match-card:hover {
    border-color: #ff6b35;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4), 
                0 0 20px rgba(255, 107, 53, 0.2);
}

.match-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.match-card.live {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: #000000;
}

.match-time {
    background: #ff6b35;
    color: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.match-card.live .match-time {
    background: #000000;
    color: #ff6b35;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-name {
    font-weight: bold;
    flex: 1;
}

.vs {
    color: #ff6b35;
    font-weight: bold;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.match-card.live .vs {
    color: #000000;
}

.watch-btn {
    background: #ff6b35;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

.watch-btn:hover {
    background: #ff8c42;
    transform: translateY(-1px);
}

.match-card.live .watch-btn {
    background: #000000;
    color: #ff6b35;
}

.match-card.live .watch-btn:hover {
    background: #333333;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.highlight-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #444444;
}

.highlight-card:hover {
    transform: translateY(-3px);
    border-color: #ff6b35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.highlight-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.highlight-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.highlight-card:hover .highlight-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 53, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background: #ff6b35;
    transform: translate(-50%, -50%) scale(1.1);
}

.highlight-info {
    padding: 1rem;
}

.highlight-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.highlight-teams {
    color: #ff6b35;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.highlight-date {
    color: #cccccc;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.watch-highlight-btn {
    background: #ff6b35;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.watch-highlight-btn:hover {
    background: #ff8c42;
    transform: translateY(-1px);
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-ad {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}

.sidebar-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.popular-leagues {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1rem;
}

.popular-leagues h3 {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333333;
}

.league-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.league-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #2a2a2a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #333333;
}

.league-item:hover {
    background: #ff6b35;
    color: #000000;
    border-color: #ff6b35;
}

.league-flag {
    font-size: 1.2rem;
    width: 20px;
}

.league-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer Banner */
.footer-banner-ad {
    background: #1a1a1a;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #333333;
}

.footer-banner-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 2rem 0;
    border-top: 2px solid #ff6b35;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff6b35;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #ff6b35;
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 200px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .left-sidebar, .right-sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: #1a1a1a;
        border-top: 1px solid #333333;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .main-nav.mobile-active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        border-right: none;
        border-bottom: 1px solid #555555;
        border-radius: 0;
    }

    .main-nav a:first-child,
    .main-nav a:last-child {
        border-radius: 0;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0.5rem;
    }

    .matches-grid, .schedule-matches {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .date-tabs {
        width: 100%;
        justify-content: center;
    }

    .logo h1 a {
        font-size: 1.5rem;
    }

    .logo h1 a .highlight {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.25rem;
    }

    .main-content, .left-sidebar, .popular-leagues {
        padding: 0.5rem;
    }

    .match-teams {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .vs {
        margin: 0;
    }

    .date-tabs {
        flex-wrap: wrap;
    }

    .date-tab {
        flex: 1;
        min-width: 80px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Selection Color */
::selection {
    background: #ff6b35;
    color: #000000;
}

::-moz-selection {
    background: #ff6b35;
    color: #000000;
}