/*
Theme Name: IPL App Guide
Theme URI: https://iplappguide.com
Description: IPL App Guide - betting and fantasy app reviews
Version: 1.2
Author: iplappguide.com
Text Domain: iplappguide
*/

:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #eff6ff;
    --gold: #ca8a04;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text: #111827;
    --text-muted: #6b7280;
    --text-hint: #9ca3af;
    --border: rgba(0,0,0,0.08);
    --border-md: rgba(0,0,0,0.14);
    --radius: 8px;
    --radius-lg: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.top-bar { background: var(--text); padding: 7px 0; font-size: 11px; color: #9ca3af; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; align-items: center; gap: 6px; }
.top-bar-link { color: #d1d5db; font-size: 11px; }
.top-bar-link:hover { color: #fff; }

/* NAVBAR */
.main-nav {
    background: var(--bg);
    border-bottom: 0.5px solid var(--border-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
}
.nav-logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-right: 32px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text); }

/* NAV MENU WRAPPER */
.nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* NAV LINKS */
.nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 52px;
    width: 100%;
}
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 52px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav-link:hover, .nav-item.active .nav-link {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.nav-arrow { font-size: 10px; }

/* DROPDOWN */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 0.5px solid var(--border-md);
    border-radius: var(--radius);
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1050;
    list-style: none;
    padding: 6px 0;
    margin: 0;
}
.nav-item.has-children:hover .nav-dropdown { display: block; }
.nav-dropdown .nav-item { display: block; }
.nav-dropdown .nav-link {
    height: auto;
    padding: 8px 16px;
    border-bottom: none;
    font-size: 13px;
}
.nav-dropdown .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    border-bottom: none;
}

/* NAV RIGHT */
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.btn-compare {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius);
    transition: background .15s;
    white-space: nowrap;
}
.btn-compare:hover { background: var(--accent-dark); color: #fff; }
.btn-app {
    border: 0.5px solid var(--border-md);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all .15s;
}
.btn-app:hover { border-color: var(--text); color: var(--text); }

/* HAMBURGER */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; }

/* HERO */
.hero-section { border-bottom: 0.5px solid var(--border-md); padding: 32px 0 28px; }
.hero-kicker { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.hero-grid { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: start; }
.hero-title { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 10px; }
.hero-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-download { background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: var(--radius); transition: background .15s; }
.btn-download:hover { background: var(--accent-dark); color: #fff; }
.btn-review { border: 0.5px solid var(--border-md); color: var(--text); font-size: 13px; padding: 10px 18px; border-radius: var(--radius); transition: border-color .15s; }
.btn-review:hover { border-color: var(--text); }

/* SCORE CARD */
.score-card { background: var(--bg-secondary); border: 0.5px solid var(--border-md); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.score-big { font-size: 42px; font-weight: 600; color: var(--text); line-height: 1; margin-bottom: 4px; }
.score-label { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
.score-rows { text-align: left; }
.score-row { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; border-bottom: 0.5px solid var(--border); }
.score-row:last-child { border-bottom: none; }
.score-row-label { color: var(--text-muted); }
.score-row-val { font-weight: 500; color: var(--text); }

/* APPS TABLE */
.section { padding: 24px 0; border-bottom: 0.5px solid var(--border); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.section-link { font-size: 12px; color: var(--accent); }
.apps-table { background: var(--bg); border: 0.5px solid var(--border-md); border-radius: var(--radius); overflow: hidden; width: 100%; }
.apps-table-head { display: grid; grid-template-columns: 2fr 1fr 80px 100px 80px; padding: 9px 16px; background: var(--bg-secondary); font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-hint); text-transform: uppercase; }
.apps-table-row { display: grid; grid-template-columns: 2fr 1fr 80px 100px 80px; padding: 13px 16px; border-top: 0.5px solid var(--border); align-items: center; transition: background .15s; }
.apps-table-row:hover { background: var(--bg-secondary); }
.app-name { font-size: 13px; font-weight: 500; color: var(--text); }
.app-tag { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.app-bonus { font-size: 12px; color: var(--text); }
.app-score-high { font-size: 13px; font-weight: 600; color: var(--accent); }
.app-score-mid { font-size: 13px; font-weight: 600; color: var(--gold); }
.app-type-badge { font-size: 10px; background: var(--bg-tertiary); color: var(--text-muted); padding: 3px 8px; border-radius: 4px; display: inline-block; }
.app-get { font-size: 12px; color: var(--accent); font-weight: 500; cursor: pointer; }
.app-get:hover { color: var(--accent-dark); }

/* CATEGORY CARDS */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-card { background: var(--bg); border: 0.5px solid var(--border-md); border-radius: var(--radius); padding: 18px; transition: border-color .15s; display: block; }
.cat-card:hover { border-color: var(--accent); }
.cat-card-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cat-card-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.cat-card-link { font-size: 12px; color: var(--accent); }

/* PAGE BANNER */
.page-banner { background: var(--bg-secondary); border-bottom: 0.5px solid var(--border-md); padding: 28px 0 20px; }
.page-banner-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.page-banner h1 { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.page-banner-sub { font-size: 13px; color: var(--text-muted); }

/* CONTENT + SIDEBAR */
.content-wrap { padding: 28px 0 48px; }
.content-grid { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.content-block { background: var(--bg); border: 0.5px solid var(--border-md); border-radius: var(--radius); padding: 28px; }
.content-block h2 { font-size: 16px; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.content-block h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 1.2rem 0 0.4rem; }
.content-block p { font-size: 13px; color: #444; line-height: 1.7; margin-bottom: 0.8rem; }
.content-block ul, .content-block ol { font-size: 13px; color: #444; padding-left: 1.4rem; margin-bottom: 0.8rem; line-height: 1.8; }
.content-block table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 13px; }
.content-block table th { background: var(--bg-secondary); padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); text-align: left; }
.content-block table td { padding: 8px 12px; border-bottom: 0.5px solid var(--border); color: #444; }

/* CTA */
.cta-block { margin-top: 24px; padding-top: 20px; border-top: 0.5px solid var(--border); text-align: center; }
.btn-cta { background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 32px; border-radius: var(--radius); display: inline-block; transition: background .15s; }
.btn-cta:hover { background: var(--accent-dark); color: #fff; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 12px; }
.sb-card { background: var(--bg); border: 0.5px solid var(--border-md); border-radius: var(--radius); overflow: hidden; }
.sb-card-header { padding: 10px 14px; border-bottom: 0.5px solid var(--border); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.sb-links { list-style: none; }
.sb-links li { border-bottom: 0.5px solid var(--border); }
.sb-links li:last-child { border-bottom: none; }
.sb-links li a { display: block; padding: 9px 14px; font-size: 13px; color: var(--text); transition: color .15s, padding-left .15s; }
.sb-links li a:hover { color: var(--accent); padding-left: 18px; }
.sb-app-list { }
.sb-app-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 0.5px solid var(--border); font-size: 12px; }
.sb-app-item:last-child { border-bottom: none; }
.sb-app-name { color: var(--text); font-weight: 500; }
.sb-app-score-high { color: var(--accent); font-weight: 600; font-size: 12px; }
.sb-app-score-mid { color: var(--gold); font-weight: 600; font-size: 12px; }

/* SEO */
.seo-section { background: var(--bg-secondary); padding: 36px 0 48px; border-top: 0.5px solid var(--border); }
.seo-content h2 { font-size: 16px; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.seo-content h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 1.2rem 0 0.4rem; }
.seo-content p { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 0.8rem; }
.seo-content ul, .seo-content ol { font-size: 13px; color: #555; padding-left: 1.4rem; margin-bottom: 0.8rem; }

/* FOOTER */
.site-footer { background: var(--text); padding: 36px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-logo { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 12px; color: #6b7280; line-height: 1.6; }
.footer-col-title { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: #6b7280; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { font-size: 12px; color: #9ca3af; transition: color .15s; }
.footer-links li a:hover { color: #fff; }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.08); padding-top: 16px; font-size: 11px; color: #4b5563; }

/* MOBILE STICKY */
.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); border-top: 0.5px solid rgba(255,255,255,0.1); padding: 10px 16px; gap: 10px; z-index: 2000; }
.ms-btn { flex: 1; text-align: center; padding: 10px; border-radius: var(--radius); font-weight: 600; font-size: 13px; display: block; }
.ms-btn-primary { background: rgba(255,255,255,0.08); color: #fff; }
.ms-btn-accent { background: var(--accent); color: #fff; }
.ms-btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .nav-hamburger { display: flex; }
    .nav-menu { display: none; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg); border-bottom: 0.5px solid var(--border-md); padding: 8px 0; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .nav-menu.open { display: block; }
    .nav-links { flex-direction: column !important; height: auto !important; align-items: flex-start; }
    .nav-link { height: auto; padding: 10px 20px; border-bottom: none; border-left: 2px solid transparent; }
    .nav-link:hover { border-left-color: var(--accent); border-bottom: none; }
    .nav-right { display: none; }
    .nav-inner { position: relative; flex-wrap: nowrap; }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .score-card { display: none; }
    .apps-table-head, .apps-table-row { grid-template-columns: 2fr 1fr 80px; }
    .apps-table-head span:nth-child(4), .apps-table-head span:nth-child(5),
    .apps-table-row > *:nth-child(4), .apps-table-row > *:nth-child(5) { display: none; }
    .cat-cards { grid-template-columns: 1fr 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .mobile-sticky { display: flex; }
    body { padding-bottom: 60px; }
}
@media (max-width: 575px) {
    .cat-cards { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
