/* Custom Properties / Variables */
:root {
    --bg-dark: #0a0b10;
    --bg-card: #161821;
    --bg-hover: #222533;
    --primary-orange: #ff4500;
    --primary-orange-hover: #ff6a00;
    --primary-glow: 0 0 15px rgba(255, 69, 0, 0.6);
    --secondary-glow: 0 0 10px rgba(0, 202, 101, 0.4);
    --text-white: #ffffff;
    --text-muted: #8d93a5;
    --text-dark: #121212;
    --border-color: #262a38;
    
    --success: #00e676;
    --danger: #ff1744;
    --warning: #ffb300;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--primary-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

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

.brand-logo {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.admin-link {
    color: var(--warning);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a:hover {
    color: var(--primary-orange);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-hover);
    border-radius: 50%;
    font-size: 18px;
}

.social-icons a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Loader */
.loader-container {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilities */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    will-change: transform, box-shadow; /* Performance opt for animations */
}

.card:hover {
    border-color: rgba(255, 69, 0, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6), var(--primary-glow);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background-color: var(--primary-orange);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        border-bottom: 2px solid var(--primary-orange);
    }
    
    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Color Variables Zaroori Hain */
:root {
    --bg-dark: #0f1115;
    --bg-card: #1c1f26;
    --primary-orange: #ff6b00;
    --text-muted: #a0a5b1;
    --border-color: #2a2e38;
    --danger: #ff3b30;
    --success: #00ca65;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}
.hero-live-card {
    background: linear-gradient(135deg, #161821 0%, #0a0b10 100%);
    border-top: 4px solid var(--danger);
    box-shadow: 0 10px 40px rgba(255, 23, 68, 0.15);
    color: white;
}

/* Animations for LIVE text */
.card-header { display: flex; align-items: center; color: var(--danger); font-weight: 700; margin-bottom: 20px;}
.pulse-live {
    width: 10px; height: 10px; background-color: var(--danger); 
    border-radius: 50%; display: inline-block; margin-right: 8px; 
    animation: pulse 1.5s infinite; 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Team Standings / Score text */
.match-teams-score { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.team-score { display: flex; align-items: center; gap: 15px; }
.team-logo {
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
    font-size: 24px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.score { font-size: 40px; font-weight: 700; }
.overs { font-size: 18px; color: var(--text-muted); font-weight: 400; }
.vs-badge { background: var(--bg-dark); padding: 5px 15px; border-radius: 20px; font-weight: 700; border: 1px solid var(--border-color); }
.match-status-text { color: var(--primary-orange); font-weight: 600; margin-bottom: 20px; }

/* Grid blocks for players stats */
.live-stats-row { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-box { 
    background: var(--bg-dark); padding: 12px 15px; border-radius: 8px;
    flex: 1; display: flex; flex-direction: column; 
    border: 1px solid transparent; transition: all 0.3s ease;
}
.stat-box:hover { border-color: var(--primary-orange); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px;}
.stat-value { font-weight: 700; font-size: 18px; }

/* Timeline Ball graphic styles */
.recent-balls { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; background: var(--bg-dark); padding: 10px 15px; border-radius: 8px; }
.ball-timeline { display: flex; gap: 8px; }
.ball { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2a2e38; font-weight: 700; }
.ball-w { background: var(--danger); color: white; }
.ball-bound { background: var(--success); color: white; }

.btn-primary { 
    background: linear-gradient(90deg, var(--primary-orange), #ff2a00);
    color: white; 
    border: none; padding: 12px 28px; border-radius: 8px; 
    font-weight: 700; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
    transition: var(--transition);
}
.btn-primary:hover { 
    background: linear-gradient(90deg, #ff6a00, #ff4500);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.5), var(--primary-glow);
}
