@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=News+Cycle:wght@400;700&display=swap');

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

body {
    font-family: 'Josefin Sans', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1a5276;
}

/* Header */
.header {
    background: linear-gradient(135deg, #233039  0%, #233039 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(12, 14, 44, 0.3);
}

.header-content {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #82c214;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-bottom: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #82c214;
}

/* Main Layout */
.main-container {
    max-width: 1380px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.main-container .grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: #82c214;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.close-sidebar:hover {
    color: #333;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: static;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar h3 {
    color: #233039 ;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #82c214;
    padding-bottom: 0.5rem;
}

.sports-list {
    list-style: none;
}

.sports-list li {
    margin-bottom: 0.5rem;
}

.sports-list a {
    display: block;
    padding: 0.75rem;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: capitalize;
}

.sports-list a:hover,
.sports-list a.active {
    background-color: #82c214;
    color: white;
    transform: translateX(5px);
}

/* Odds Content */
.odds-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
    flex-direction: column;
}

.market-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 25px;
}

.content-title {
    color: #233039 ;
    font-size: 1.8rem;
    font-weight: bold;
}

.refresh-btn {
    background: #82c214;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.refresh-btn:hover {
    background: #6ba00f;
}

/* Match Cards */
.match-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.match-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.match-header {
    background: linear-gradient(135deg, #233039  0%, #233039 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-teams {
    font-weight: bold;
    font-size: 1.1rem;
}

.match-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.bookmaker-odds {
    text-align: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.bookmaker-odds:hover {
    border-color: #82c214;
    background-color: #f8fff0;
}

.bookmaker-name {
    font-weight: bold;
    color: #233039 ;
    margin-bottom: 0.5rem;
}

.odds-values {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
}

.odd-value {
    background: #82c214;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    flex: 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

.odd-value:hover {
    background: #6ba00f;
}

/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    max-width: 350px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.newsletter-popup.show {
    transform: translateY(0);
}

.newsletter-popup h4 {
    color: #233039 ;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #82c214;
}

.newsletter-form button {
    background: #82c214;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: #6ba00f;
}

.close-newsletter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 300;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #82c214;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #82c214;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
/* Sport Page Specific Styles */
.match-hero {
    background: linear-gradient(135deg, #233039  0%, #233039 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.match-teams-hero {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.match-detail {
    text-align: center;
    min-width: 120px;
}

.match-detail-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

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

/* Market Tabs */
.market-tabs {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
    width: 1024px;
}

/* Webkit scrollbar styling */
.market-tabs::-webkit-scrollbar {
    height: 8px;
}

.market-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.market-tabs::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}

.market-tabs::-webkit-scrollbar-thumb:hover {
    background-color: #ccc;
}

.market-tab-list {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
    padding: 0.5rem 0.25rem;
    margin: 0;
}

.market-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.market-tab i {
    font-size: 1rem;
}

.market-tab:hover {
    background: #e9ecef;
    color: #233039 ;
    transform: translateY(-2px);
}

.market-tab.active {
    background: #82c214;
    color: white;
    border-color: #82c214;
    box-shadow: 0 4px 12px rgba(130, 194, 20, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: #82c214;
    margin-bottom: 0.75rem;
}

.stat-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #233039 ;
}

/* Odds Sections */
.odds-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.odds-section h3 {
    color: #233039 ;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 0.75rem;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
}

.odds-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.odds-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f2f5;
}

.odds-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.odds-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #233039 ;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.odds-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.odds-button[style*="background: #007bff"] {
    background: #007bff !important;
    color: white;
    border-color: #0073e6;
}

.odds-button[style*="background: #007bff"]:hover {
    background: #0069d9 !important;
    transform: translateY(-1px);
}

.bookmaker-logo {
    font-weight: 600;
    color: #233039 ;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-data i {
    font-size: 2.5rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.no-data h3 {
    margin-bottom: 0.5rem;
    color: #233039 ;
}

.sports-list {
    padding-left: 0px;
}

@media (max-width: 992px) {
    .main-container .grid {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .sidebar {
        padding-top: 2.5rem;
    }
    
    .odds-content {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        position: fixed;
        order: 2;
    }
    
    .odds-content {
        order: 1;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newsletter-popup {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .main-container .grid {
        display: block;
    }

    .market-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .content-header {
        flex-direction: column;
    }

    .main-container .grid {
        padding-top: 0px;
    }

    .sports-list {
        padding-left: 0px;
    }
}