/* ============================================
   FPLBET v3 - Professional UK Betting Reviews
   Inspired by bestbettingsites.co.uk
   ============================================ */

:root {
    --primary: #1B6B3A;
    --primary-dark: #145a2e;
    --primary-light: #e8f5e9;
    --cta: #28a745;
    --cta-hover: #218838;
    --gold: #D4A843;
    --navy: #1a1a2e;
    --bg: #f5f6f8;
    --white: #ffffff;
    --card: #ffffff;
    --text: #374151;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --star: #ffc107;
    --red: #dc3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-sm: 6px;
}

body.fplbet-theme {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 16px;
    line-height: 1.75;
}

body.fplbet-theme a { color: var(--primary); text-decoration: none; }
body.fplbet-theme a:hover { color: var(--cta); text-decoration: underline; }

body.fplbet-theme h1, body.fplbet-theme h2, body.fplbet-theme h3, body.fplbet-theme h4 {
    color: var(--navy) !important;
    font-weight: 700;
    line-height: 1.3;
}
body.fplbet-theme h1 { font-size: 2rem; }
body.fplbet-theme h2 { font-size: 1.5rem; margin-top: 2rem; }
body.fplbet-theme h3 { font-size: 1.2rem; }

/* === HEADER === */
body.fplbet-theme .site-header,
body.fplbet-theme header#masthead {
    background: var(--white) !important;
    border-bottom: 3px solid var(--primary) !important;
    box-shadow: var(--shadow);
}

body.fplbet-theme .site-branding .main-title,
body.fplbet-theme .site-title { display: none !important; }

body.fplbet-theme .header-image,
body.fplbet-theme .custom-logo,
body.fplbet-theme .site-logo img {
    max-height: 65px !important;
    height: 65px !important;
    width: auto !important;
}

body.fplbet-theme .main-navigation a,
body.fplbet-theme .menu a {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 12px !important;
    border-radius: var(--radius-sm);
}
body.fplbet-theme .main-navigation a:hover,
body.fplbet-theme .menu a:hover {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
    text-decoration: none;
}
body.fplbet-theme .current-menu-item > a {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* === STICKY TOC BAR === */
.sticky-toc {
    position: sticky;
    top: 0;
    z-index: 997;
    background: #1a1a2e;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 100%;
}
.sticky-toc__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sticky-toc__inner::-webkit-scrollbar { display: none; }
.sticky-toc a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 16px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.sticky-toc a:hover,
.sticky-toc a.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--gold);
}

/* === HOMEPAGE NO SIDEBAR === */
body.home .site-content .content-area,
body.page-id-14 .site-content .content-area { width: 100% !important; }
body.home .is-right-sidebar,
body.page-id-14 .is-right-sidebar,
body.home .sidebar,
body.page-id-14 .sidebar { display: none !important; }
body.home .inside-article,
body.page-id-14 .inside-article {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: 1100px;
    margin: 0 auto;
}
.home .entry-title, .home .entry-header,
.page-id-14 .entry-title, .page-id-14 .entry-header { display: none !important; }

/* === CONTENT CARDS (other pages) === */
body.fplbet-theme .separate-containers .inside-article {
    background: var(--card) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
}
body.fplbet-theme .sidebar .widget {
    background: var(--card) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
}

/* === HERO === */
.hero {
    background: #ffffff;
    color: #212529;
    padding: 2.5rem 2rem 2rem;
    border-radius: 0;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}
.hero h1 { color: #1a1a2e !important; font-size: 2.2rem !important; margin-bottom: 0.5rem; font-weight: 800; }
.hero .hero-sub { color: #6c757d; font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.6; }
.hero .hero-badge { display: inline-block; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 4px 14px; border-radius: 50px; font-size: 0.82rem; color: #1B6B3A; margin-bottom: 0.75rem; font-weight: 600; }
.hero img.hero-logo { max-height: 100px !important; height: 100px !important; width: auto; margin-bottom: 1rem; }

/* === BUTTONS === */
.btn-cta, a.btn-cta {
    background: var(--cta) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 11px 24px !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem !important;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(40,167,69,0.25);
}
.btn-cta:hover, a.btn-cta:hover {
    background: var(--cta-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.35);
    text-decoration: none !important;
}
.btn-outline, a.btn-outline {
    background: transparent !important;
    color: #1B6B3A !important;
    border: 2px solid #1B6B3A !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none !important;
    transition: all 0.2s;
}
.btn-outline:hover { background: #f0fdf4 !important; color: #1B6B3A !important; text-decoration: none !important; }
.btn-sm { padding: 6px 14px !important; font-size: 0.78rem !important; }
.btn-review, a.btn-review {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.8rem !important;
    display: inline-block;
    text-decoration: none !important;
    transition: all 0.2s;
}
.btn-review:hover { background: var(--primary-light) !important; text-decoration: none !important; }

/* === BOOKMAKER CARD === */
.bm-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 40px 120px 1fr 180px 130px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.bm-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.bm-card__rank {
    font-size: 1.4rem; font-weight: 800; color: var(--primary); text-align: center;
    background: var(--primary-light); width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.bm-card__logo { text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 70px; }
.bm-card__logo img { max-width: 140px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.bm-card__info h3 { font-size: 1rem; margin: 0 0 0.2rem 0 !important; color: var(--navy) !important; }
.bm-card__info .stars { color: var(--star); font-size: 0.9rem; letter-spacing: 1px; }
.bm-card__info .score { font-weight: 700; color: var(--text-dark); font-size: 0.85rem; margin-left: 4px; }
.bm-card__info .tagline { color: var(--text-muted); font-size: 0.82rem; margin: 0.2rem 0 0; }
.bm-card__info .pros { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.bm-card__info .pros li { font-size: 0.8rem; color: var(--text); padding: 1px 0; }
.bm-card__info .pros li::before { content: "✓ "; color: var(--cta); font-weight: 700; }
.bm-card__bonus { text-align: center; background: #f0fdf4; border-radius: var(--radius-sm); padding: 0.75rem 0.5rem; }
.bm-card__bonus .bonus-label { font-size: 0.68rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.bm-card__bonus .bonus-text { font-size: 0.95rem; font-weight: 700; color: var(--primary); line-height: 1.3; margin: 0.2rem 0; }
.bm-card__bonus .bonus-tc { font-size: 0.65rem; color: var(--text-light); }
.bm-card__cta { text-align: center; display: flex; flex-direction: column; gap: 6px; }

/* === BADGE === */
.badge { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; margin-left: 6px; }
.badge-top { background: var(--primary-light); color: var(--primary); }
.badge-hot { background: #fef2f2; color: var(--red); }
.badge-new { background: #fffbeb; color: #92400e; }

/* === SECTION HEADERS === */
.sec-header {
    display: flex; align-items: center; justify-content: space-between;
    margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary);
}
.sec-header h2 { margin: 0 !important; padding: 0; border: none; }
.sec-header a { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

/* === INFO BOX === */
.info-box {
    background: #eff6ff; border-left: 4px solid #3b82f6;
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1rem 0 1.25rem; font-size: 0.9rem;
}
.info-box strong { color: var(--navy); }

/* === AUTHOR BAR === */
.author-bar {
    display: flex; align-items: center; gap: 1.5rem; font-size: 0.8rem;
    color: var(--text-muted); margin: 1rem 0; padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.author-bar strong { color: var(--text-dark); }
.age-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 0.65rem; padding: 2px 6px; border-radius: 3px; }

/* === COMPARE TABLE === */
.compare-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: var(--radius); overflow: hidden; margin: 1rem 0;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.compare-table thead { background: var(--primary); }
.compare-table th { color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.compare-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); background: var(--card); font-size: 0.88rem; }
.compare-table tbody tr:hover td { background: #f9fafb; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* === TIPS TABLE === */
.tips-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; margin: 1rem 0; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.tips-table thead { background: var(--primary); }
.tips-table th { color: #fff; padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; text-transform: uppercase; font-weight: 600; }
.tips-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); background: var(--card); font-size: 0.88rem; }
.tips-table tbody tr:hover td { background: #f9fafb; }
.tip-won { color: var(--cta); font-weight: 700; }
.tip-lost { color: var(--red); font-weight: 700; }
.tip-pending { color: var(--gold); font-weight: 600; }

/* === MATCH CARDS === */
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.match-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.match-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.match-card__league { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.match-card__teams { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.match-card__vs { color: var(--text-muted); font-weight: 400; padding: 0 0.25rem; font-size: 0.9rem; }
.match-card__time { font-size: 0.78rem; color: var(--text-muted); margin: 0.3rem 0 0.5rem; }
.match-card__pred { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 3px 12px; border-radius: 50px; font-weight: 700; font-size: 0.82rem; }

/* === FAQ === */
.faq-item {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 0.5rem; box-shadow: var(--shadow-sm);
}
.faq-item__q { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.faq-item__q .q-icon { background: var(--primary); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; }
.faq-item__a { color: var(--text); font-size: 0.92rem; margin-left: 42px; }

/* === RG BANNER === */
.rg-banner {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: 2rem 0;
}
.rg-banner strong { color: var(--text-dark); }
.rg-banner a { color: var(--primary); }

/* === FOOTER === */
body.fplbet-theme .site-info, body.fplbet-theme footer.site-info {
    background: var(--navy) !important;
    color: rgba(255,255,255,0.7) !important;
}
body.fplbet-theme .site-info a { color: var(--gold) !important; }

/* === GP OVERRIDES === */
body.fplbet-theme button, body.fplbet-theme input[type="submit"],
body.fplbet-theme a.wp-block-button__link:not(.has-background) {
    background: var(--cta) !important; color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important;
}


/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .bm-card {
        grid-template-columns: 40px 80px 1fr 150px 120px;
        gap: 0.75rem;
        padding: 1rem;
    }
    .bm-card__bonus .bonus-text { font-size: 0.85rem; }
}

/* Mobile */
@media (max-width: 768px) {
    body.fplbet-theme h1 { font-size: 1.5rem; }
    body.fplbet-theme h2 { font-size: 1.25rem; }

    .hero { padding: 1.5rem 0.75rem; }
    .hero h1 { font-size: 1.5rem !important; }
    .hero .hero-sub { font-size: 0.95rem; }
    .hero img.hero-logo { max-height: 70px !important; height: 70px !important; }
    .hero .btn-cta, .hero .btn-outline { display: block; margin: 0.4rem auto; max-width: 250px; }

    .sticky-toc a { font-size: 0.7rem; padding: 10px 10px; }

    .author-bar { flex-direction: column; align-items: flex-start; gap: 0.3rem; font-size: 0.75rem; }

    .bm-card {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
    }
    .bm-card__rank { margin: 0 auto; width: 32px; height: 32px; font-size: 1.1rem; }
    .bm-card__logo img { max-width: 100px; max-height: 50px; margin: 0 auto; display: block; }
    .bm-card__info h3 { font-size: 1.05rem; }
    .bm-card__info .tagline { font-size: 0.85rem; }
    .bm-card__info .pros { text-align: left; display: inline-block; }
    .bm-card__info .pros li { font-size: 0.82rem; }
    .bm-card__bonus { padding: 0.75rem; border-radius: 8px; max-width: 280px; margin: 0 auto; }
    .bm-card__bonus .bonus-text { font-size: 1rem; }
    .bm-card__cta { flex-direction: row !important; justify-content: center; gap: 10px; }
    .bm-card__cta .btn-cta { flex: 1; max-width: 160px; }
    .bm-card__cta .btn-review { flex: 1; max-width: 160px; }

    .sec-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }

    .compare-table, .tips-table { font-size: 0.82rem; }
    .compare-table th, .compare-table td, .tips-table th, .tips-table td { padding: 0.5rem 0.6rem; }

    .match-grid { grid-template-columns: 1fr; }
    .match-card__teams { font-size: 0.95rem; }

    .faq-item { padding: 1rem; }
    .faq-item__q { font-size: 0.92rem; }
    .faq-item__a { margin-left: 0; font-size: 0.85rem; margin-top: 0.5rem; }
    .faq-item__q .q-icon { width: 24px; height: 24px; font-size: 0.7rem; }

    .info-box-clean { padding: 0.85rem 1rem; font-size: 0.85rem; }

    body.fplbet-theme .inside-article { padding: 0.75rem !important; }
    body.fplbet-theme .site-content { padding: 0.75rem; }

    .rg-banner { padding: 1rem; font-size: 0.78rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero { padding: 1.25rem 0.75rem; border-bottom: 1px solid #e5e7eb; }
    .hero h1 { font-size: 1.3rem !important; line-height: 1.3; }
    .hero .hero-sub { font-size: 0.85rem; }
    .hero img.hero-logo { max-height: 55px !important; height: 55px !important; }
    .hero .hero-badge { font-size: 0.72rem; padding: 3px 10px; }

    .sticky-toc__inner { justify-content: flex-start; padding: 0 0.5rem; }
    .sticky-toc a { font-size: 0.65rem; padding: 8px 8px; }

    .bm-card { padding: 1rem 0.75rem; }
    .bm-card__info h3 { font-size: 0.95rem; }
    .bm-card__info .stars { font-size: 0.8rem; }
    .bm-card__info .tagline { font-size: 0.78rem; }
    .bm-card__info .pros li { font-size: 0.78rem; }
    .bm-card__bonus .bonus-text { font-size: 0.9rem; }
    .bm-card__cta .btn-cta, .bm-card__cta .btn-review { font-size: 0.75rem !important; padding: 8px 12px !important; }

    .compare-table, .tips-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .compare-table th, .compare-table td, .tips-table th, .tips-table td { padding: 0.4rem 0.5rem; font-size: 0.75rem; white-space: nowrap; }

    .match-card__teams { font-size: 0.9rem; }
    .match-card__pred { font-size: 0.78rem; padding: 2px 10px; }
}

@media (max-width: 768px) {
  .bm-card__logo { min-height: 64px; max-width: 180px; margin: 0 auto; }
  .bm-card__logo img { max-width: 130px; max-height: 44px; }
}

@media (max-width: 768px) {
  .bm-card__logo { min-height: 64px; max-width: 180px; margin: 0 auto; }
  .bm-card__logo img { max-width: 130px; max-height: 44px; }
}

/* final logo polish */
.bm-card__logo{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:76px}
.bm-card__logo img{max-width:150px;max-height:52px;width:auto;height:auto;object-fit:contain}
.bm-card__logo img[src*="ladbrokes"],.bm-card__logo img[src*="bet365"]{max-width:160px}
.bm-card__logo img[src*="betfair"],.bm-card__logo img[src*="paddypower"]{max-height:46px}
@media (max-width:768px){.bm-card__logo{max-width:190px;margin:0 auto;min-height:68px}.bm-card__logo img{max-width:140px;max-height:46px}}
