:root {
    --primary-color: #00a551;
    --primary-hover: #008a44;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --header-height: 56px;
    --bottom-nav-height: 60px;
    --content-top-margin: 24px; /* Reduced from 80px to 24px */
}

/* General styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* Add padding for entire body */
    text-rendering: optimizeLegibility;
}

/* Tabs */
.tab-active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Sports icons */
.sport-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    min-width: 60px;
    color: var(--text-secondary);
}

.sport-icon i {
    font-size: 1.5rem;
}

/* Banner */
.banner-carousel {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 2.67 / 1;
    width: 100%;
    height: auto;
    background: var(--bg-card);
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide .banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    border-radius: 0 0 0.5rem 0.5rem;
}

.banner-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Banner animations */
.banner-slide > div {
    transition: opacity 0.3s ease-in-out;
}

/* Match card */
.match-card {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    min-height: 120px; /* Fixed minimum height */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.teams {
    font-weight: 500;
    color: var(--text-primary);
}

.badges {
    display: flex;
    gap: 0.5rem;
    color: var(--primary-color);
}

.odds {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.odd-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 0.25rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.odd-btn:hover {
    background: var(--bg-sidebar);
    transform: scale(1.02);
    border-color: var(--primary-color);
}

/* Bottom navigation */
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    position: relative;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.tab-item i {
    font-size: 1.25rem;
}

.tab-item.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    display: none;
}

.tab-item.active .tab-indicator {
    display: block;
}

.tab-item .relative {
    position: relative;
    display: inline-block;
}

/* Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: var(--bg-card);
}

/* Dark theme */
.dark {
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
}

.dark .match-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .odd-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .odd-btn:hover {
    background: var(--bg-sidebar);
    border-color: var(--primary-color);
}

.dark .nav-item:hover {
    background-color: var(--bg-card);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.sidebar-open {
    transform: translateX(0) !important;
    animation: slideIn 0.3s ease-out;
}

/* Fixed sizes for icons */
.sport-icon img,
.match-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Fixed height for bottom navigation */
.bottom-nav {
    height: 60px;
}

/* Main content container */
.content-wrapper {
    padding-top: var(--content-top-margin);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* Sidebar stabilization */
.sidebar {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

/* Sidebars stabilization */
.sidebar.sticky {
    top: calc(var(--header-height) + 12px); /* Reduced sidebar margin from 20px to 12px */
    height: calc(100vh - var(--header-height) - 24px);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

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

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

/* Filters */
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.filter-item:hover {
    background-color: var(--bg-card);
    color: var(--primary-color) !important;
}

.dark .filter-item:hover {
    background-color: var(--bg-card);
}

.filter-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
}

.sport-filters h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Content Visibility for large sections */
.cv {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

/* Tables styling */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

table th {
    font-weight: 600;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

table td {
    color: var(--text-secondary);
}

table tr:hover {
    background-color: rgba(0, 165, 81, 0.1);
}

.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile table styles */
@media (max-width: 1023px) {
    table th,
    table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
    
    table th {
        font-size: 0.75rem;
        font-weight: 600;
    }
}

@media (max-width: 640px) {
    table th,
    table td {
        padding: 0.4rem 0.35rem;
        font-size: 0.7rem;
    }
    
    table th {
        font-size: 0.7rem;
    }
}

/* Games grid styling */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Game card styling */
.game-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-button {
    width: 100%;
    max-width: 200px;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.game-card-button:hover {
    transform: scale(1.05);
    background-color: var(--primary-hover) !important;
}

.game-card-title {
    margin-top: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
} 