/*
Theme Name: BetScoreLive Indonesia
Theme URI: https://betscorelive.com
Author: BetScoreLive Team
Author URI: https://betscorelive.com
Description: Tema WordPress untuk situs bola88 dengan skor langsung dan berita sepak bola terkini di Indonesia. Dilengkapi dengan integrasi API-Football untuk data real-time dan fitur-fitur modern yang interaktif.
Version: 1.3.0
License: GPL v2 or later
Text Domain: betscorelive
Tags: bola88, sepak bola, skor langsung, indonesia, live score, football
*/

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

/* Ensure Tailwind utilities work properly */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* WordPress Required Classes */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Container fixes for WordPress */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animation for ticker */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
    display: flex;
}

/* Mobile menu styling */
#mobile-navigation {
    transition: all 0.3s ease;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Loading animation */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* Match display improvements */
.match-item {
    min-height: 80px;
}

.match-card {
    min-height: 150px;
}

/* Ensure team names don't overflow */
.team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
}

@media (min-width: 768px) {
    .team span {
        max-width: 300px;
    }
}

/* Fix image loading */
img[src=""],
img:not([src]) {
    display: none;
}

/* League header styling */
.league-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Match status badges */
.match-status {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Score display */
.score {
    min-width: 80px;
    text-align: center;
}

/* Better hover effects */
.match-item:hover,
.match-card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Pulse animation for live indicator */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Modal styles */
#standings-modal {
    z-index: 9999;
}

/* Standings table styles */
.standings-table table {
    border-collapse: collapse;
}

.standings-table th {
    white-space: nowrap;
    font-weight: 600;
}

.standings-table td {
    white-space: nowrap;
}

/* Form indicator styles */
.standings-table .form-indicator {
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
}

/* Responsive modal */
@media (max-width: 768px) {
    #standings-modal .max-w-4xl {
        margin: 1rem;
    }
    
    .standings-table {
        font-size: 0.875rem;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 0.5rem;
    }
}

/* League card hover effect */
.league-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Smooth modal animation */
#standings-modal {
    transition: opacity 0.3s ease;
}

#standings-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#standings-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
} 