/*
Theme Name: IPL 2026 Cricket
Theme URI: https://ipl2026cricket.com
Description: IPL 2026 Cricket theme - dark green and gold
Version: 1.0
Author: ipl2026cricket.com
Text Domain: ipl2026cricket
*/

/* =============================================
   IPL 2026 Cricket — style.css v1
   ============================================= */

:root {
    --bg-body:    #0d1f0d;
    --bg-header:  #0a1a0a;
    --bg-card:    #152015;
    --bg-section: #111e11;
    --accent:     #c8a84b;
    --accent-dark:#a07830;
    --text:       #ffffff;
    --text-muted: #8aab8a;
    --border:     #1e3a1e;
    --green-light:#1a3a1a;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    font-size: 15px;
    padding-bottom: 62px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

/* TOP BAR */
.top-bar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-muted);
}
.top-bar-label {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}
.top-bar-link { color: var(--accent); font-weight: 600; font-size: 12px; }
.top-bar-link:hover { color: #fff; }

/* NAVBAR */
.navbar {
    background: var(--bg-header) !important;
    border-bottom: 2px solid var(--accent);
    padding: 10px 0;
    z-index: 1040;
}
.site-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
}
.navbar-nav .nav-link {
    color: #ccc !important;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 14px !important;
    transition: color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--accent); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(200,168,75,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    min-width: 150px;
    z-index: 1050;
}
.dropdown-menu li a { color: #ccc; padding: 6px 12px; display: block; font-size: 13px; }
.dropdown-menu li a:hover { background: var(--green-light); color: var(--accent); }

/* BUTTONS */
.btn-accent {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    transition: background .2s;
}
.btn-accent:hover { background: #fff; color: #000; }
.btn-outline-light {
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* SEO ONLY */
.seo-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* HERO */
.hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, #0a1a0a 0%, #1a3a1a 50%, #0d2a0d 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/wp-content/themes/ipl2026cricket/img/hero-bg.jpg') center/cover no-repeat;
    opacity: .18;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.8) 40%, transparent);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 15px;
}
.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}
.hero-subtitle { font-size: 16px; color: var(--text-muted); }

/* STATS BAR */
.stats-bar { background: var(--accent); padding: 0; }
.stat-item {
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid rgba(0,0,0,.15);
    color: #000;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: .7; margin-top: 2px; }

/* SECTION TITLE */
.section-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* QUICK LINKS */
.quick-links-section { padding: 40px 0 20px; }
.quick-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: border-color .2s, transform .2s;
    color: var(--text);
}
.quick-card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.quick-icon { font-size: 28px; margin-bottom: 8px; }
.quick-name { font-weight: 700; font-size: 15px; }
.quick-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* TEAMS */
.teams-section { padding: 30px 0 40px; }
.team-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: border-color .2s;
    color: var(--text);
}
.team-card:hover { border-color: var(--accent); color: var(--text); }
.team-short { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.team-name { font-size: 11px; color: var(--text-muted); }
.mi   { color: #004BA0; } .csk  { color: #F9CD05; } .rcb  { color: #EC1C24; }
.kkr  { color: #3A225D; } .dc   { color: #004C93; } .srh  { color: #F26522; }
.rr   { color: #EA1A85; } .pbks { color: #ED1B24; } .lsg  { color: #A4C639; } .gt { color: #1C4494; }

/* PAGE CONTENT (WP pages) */
.page-header {
    background: linear-gradient(135deg, var(--bg-header), var(--green-light));
    border-bottom: 2px solid var(--accent);
    padding: 40px 0 30px;
}
.page-header h1 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 8px;
}
.page-content-wrap { padding: 40px 0 50px; }
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}
.content-card h2 { color: var(--accent); font-size: 1.4rem; margin-top: 1.5rem; }
.content-card h3 { color: #ccc; font-size: 1.1rem; margin-top: 1.2rem; }
.content-card p  { color: #bbb; line-height: 1.7; }
.content-card ul, .content-card ol { color: #bbb; padding-left: 1.5rem; }
.content-card table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.content-card table th {
    background: var(--bg-header);
    color: var(--accent);
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}
.content-card table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: #bbb;
    font-size: 14px;
}
.content-card table tr:hover td { background: var(--bg-section); }

/* SEO CONTENT */
.seo-section {
    background: var(--bg-section);
    padding: 40px 0 50px;
    border-top: 1px solid var(--border);
}
.seo-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; color: var(--accent); }
.seo-content h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; color: #ccc; }
.seo-content p  { line-height: 1.7; margin-bottom: 1rem; color: #bbb; }
.seo-content ul, .seo-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: #bbb; }

/* FOOTER */
.footer {
    background: var(--bg-header);
    border-top: 2px solid var(--accent);
    padding: 40px 0 20px;
}
.footer-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links li a { color: #888; font-size: 13px; }
.footer-links li a:hover { color: var(--accent); }
.footer-copy { color: #555; font-size: 12px; margin-top: 8px; }
.footer select {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    width: 100%;
}

/* MOBILE STICKY */
.sticky-bottom-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    background: linear-gradient(180deg, transparent 0%, var(--bg-header) 20%);
    padding: 10px 16px 12px;
    display: flex;
    gap: 8px;
}
@media (min-width: 768px) {
    .sticky-bottom-panel { display: none !important; }
    body { padding-bottom: 0; }
}

/* SIDEBAR */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: #bbb;
}
.sidebar-nav li:last-child a { border-bottom: none; }
.sidebar-nav li a:hover { color: var(--accent); padding-left: 6px; }
