/*
Theme Name: Astra Child
Theme URI: https://cricketenthusiast.com
Description: Cricket Enthusiast child theme for Astra. All site-specific CSS lives here.
Author: Cricket Enthusiast
Author URI: https://cricketenthusiast.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ============================================
   CRICKET ENTHUSIAST — DESIGN TOKENS v1.0
   ============================================ */

:root {
  /* Backgrounds — 4 layers, darkest to lightest */
  --ce-bg-base:      #0a0a0a;   /* page body */
  --ce-bg-raised:    #111111;   /* cards, section panels */
  --ce-bg-surface:   #1a1a1a;   /* inner cards, table wrappers */
  --ce-bg-overlay:   #0f0f0f;   /* table headers, dark overlays */

  /* Borders */
  --ce-border:        #262626;  /* standard border */
  --ce-border-subtle: #1f1f1f;  /* row dividers, very subtle lines */

  /* Text — 4 levels */
  --ce-text-strong:  #f0f0f0;   /* H1/H2, key labels */
  --ce-text-body:    #d0d0d0;   /* body paragraphs */
  --ce-text-muted:   #999999;   /* secondary info, metadata */
  --ce-text-subtle:  #666666;   /* timestamps, fine print */

  /* Accent */
  --ce-accent:       #CC0000;   /* red */
  --ce-accent-hover: #e60000;   /* red hover */
}

/* Update guide-card to use tokens */
.guide-card {
  background-color: var(--ce-bg-raised) !important;
  border: 1px solid var(--ce-border) !important;
}

/* ============================================
   GLOBAL CSS — migrated from WordPress Additional CSS
   (database wp_posts post ID 72, migrated 2026-03-09)
   Source of truth is now this file — database copy
   retained until child theme is activated and verified.
   ============================================ */

.ast-primary-header-bar {
  background-color: #000000!important;
}

/* Remove Astra header spacing so content starts at top */
.site-content,
.entry-content,
.content-area,
.site-main {
    margin-top:0 !important;
    padding-top:0 !important;
}

/* Mobile layout: restructures hero, hides extended text,
   reduces cover height and fixes hero wrapper indent */
@media (max-width: 600px) {
  .hero-title-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }
  .hero-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-signup {
    margin-top: 6px;
  }
  .hero-last-updated--desktop { display: none; }
  .hero-last-updated--mobile {
    display: block;
    margin-top: 8px !important;
  }
  /* Hides second sentence of hero paragraph on mobile only */
  .hero-text-desktop {
    display: none !important;
  }
  /* Reduces cover height on mobile so links bar shows without scrolling */
  .wp-block-cover {
    min-height: 50vh !important;
  }
  /* Adds padding to hero wrapper to match page content indent */
  .hero-title-cta-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Light horizontal separators under H2 and H3 on page ID 15 and lon form content only */
.longform-content h2,
.longform-content h3 {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* Predictor iframe */
#predictor-container {
    display: none;
    margin-top: 20px;
}

/* ----------------------------------------- */
/* COVER BLOCK BACKGROUND + FIXES */
/* replaces: body, .wp-block-cover { background-color }
   AND both separate .wp-block-cover { } blocks
   AND .wp-block-cover { background-position } */

body {
    background-color: #000000 !important;
}

.wp-block-cover {
    background-color: #000000 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* replaces: .wp-block-cover.has-background-dim */
.wp-block-cover.has-background-dim {
    background-color: transparent !important;
}

/* NEW - controls image vertical position (replaces background-position which doesn't work on fixed bg) */
.wp-block-cover__image-background {
    object-position: center 65% !important;
}

/* replaces: .wp-block-cover .wp-block-cover__inner-container */
.wp-block-cover .wp-block-cover__inner-container {
    background: transparent !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 60vh !important;
    padding-bottom: 20px !important;
}

/* ----------------------------------------- */
/* HEADING SPACING                            */
/* ----------------------------------------- */
.wp-block-heading.has-text-align-left {
    margin-top: 250px;
}

@media (max-width: 768px) {
    .wp-block-heading.has-text-align-left {
        margin-top: 100px;
    }
}

/* ----------------------------------------- */
/* FOLLOW BUTTON HOVER                        */
a[href="#CricketEnthusiastForm"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* ---GLOBAL CARD HOVER---
.card:hover {
    transform: translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.5);
} --*/
/* ---CARD Spacing -----*/
.card {
  flex: 1 1 300px;
  background-color: rgba(17,17,17,0.85);
  padding: 20px;
  border-radius: 8px;
  min-width: 260px;
  max-width: 420px;
  margin: 0 auto;
}

/* ---ENHANCED GLOBAL CARD HOVER--- */
/* Netflix-style hover for guide cards */
.guide-card {
  background-color: #121212;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #262626;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.guide-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0,0,0,0.7);
}

/* Optional tooltip styling if you want hover tips */
.guide-card .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.guide-card:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ---Tool Tip--- */
#open-predictor:hover .predictor-tooltip {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ----------------------------------------- */
/* ABOUT SECTION HEADER + FOLLOW ICON         */
/* ----------------------------------------- */
.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.about-header h4 {
  margin: 0;
}

.follow-icon {
  background-color: #CC0000;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
  .about-header {
    flex-direction: row;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.follow-icon {
  background-color: #CC0000;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ----------------------------------------- */
/* FOOTER (custom links layout)              */
/* ----------------------------------------- */

.custom-footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;     /* desktop: one line container */
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Rows inside footer */
.footer-row {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Links */
.custom-footer-links a {
  white-space: nowrap !important;
  text-decoration: underline !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

/* 18+ styling */
.footer-18 {
  color: #ffffff !important;
}

/* Separator between every item in a row (no leading separator) */
.footer-row > * + *::before {
  content: "|" !important;
  display: inline-block !important;
  color: rgba(255,255,255,0.6) !important;
  margin: 0 6px !important;
}
/* Prevent separator before first item */
.footer-row > *:first-child::before {
  content: none !important;
}

/* Show desktop row, hide mobile by default */
.footer-row-desktop {
  display: inline-flex !important;
}

.footer-row-mobile {
  display: none !important;
}

/* Mobile: stack into two rows, show mobile rows only */
@media (max-width: 600px) {
  .custom-footer-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    font-size: 0.72rem !important;
  }

  .footer-row-desktop {
    display: none !important;
  }

  .footer-row-mobile {
    display: inline-flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .custom-footer-links > .footer-row-mobile:not(:last-child) {
    margin-bottom: 1px !important; /* ← controlled gap between rows */
  }
}
/* ETPL Hub section spacing (only applies where you use class="etpl-section") */
.longform-content .etpl-section {
  margin-top: 40px;
  margin-bottom: 50px;
}
/* Global hover is white on all links */
a:hover {
  color: #ffffff !important;
}
#news-ticker-etpl a {
  color: #ffffff !important;
}
/* makes news & live score  ticker faster on mobile */
@media (max-width: 600px) {
  #live-ticker,
  #news-ticker-etpl {
    animation-duration: 20s !important;
  }
}
/* Ensure anchors near page end can scroll fully into view */
.site-content {
  padding-bottom: 420px !important;
}

@media (max-width: 768px) {
  .site-content {
    padding-bottom: 260px !important;
  }
}


/* ============================================================ */
/* CLAUDE LAYOUT START                                          */
/* Page: /cricket-betting-odds/                                 */
/* STRUCTURAL ONLY — tweakable sizes in Additional CSS         */
/* ============================================================ */

.ce-main { max-width:1200px; margin:0 auto; padding:0 10px; color:#e0e0e0; font-family:system-ui,-apple-system,sans-serif; }

/* Dashboard grid layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin: 0;
  align-items: stretch;
}
#widget-next-match { grid-column:1; grid-row:1; display:flex; flex-direction:column; }
#widget-tournament  { grid-column:2; grid-row:1; display:flex; flex-direction:column; }
#widget-next-match > div, #widget-tournament > div { flex:1; min-height:0; }
#table-bookmakers { grid-column:1/-1; grid-row:2; }

/* Mobile: single-column stack */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns:1fr; grid-template-rows:auto; }
  #widget-next-match, #widget-tournament, #table-bookmakers { grid-column:1; grid-row:auto; }
}

/* Show/hide rules */
.m-claim { display: none; }
@media (max-width: 768px) {
  .d-hide { display: none; }
  #ipl-odds-container { margin-left:0; margin-right:0; }
}

/* Table structure */
#table-bookmakers td { vertical-align: middle; }
#table-bookmakers th:first-child,
#table-bookmakers td:first-child { text-align: center; }
#table-bookmakers td:first-child a[rel="noopener noreferrer"] {
  display: flex; align-items: center; justify-content: center;
}
#table-bookmakers td:first-child img {
  object-fit: contain !important; display: block; margin: 0 auto;
}

/* CLAUDE LAYOUT END */
/* ============================================================ */

/* ============================================================ */
/* CLAUDE LAYOUT START                                          */
/* Page: /ipl-player-props/ (post 2788)                        */
/* STRUCTURAL ONLY — tweakable sizes in Additional CSS         */
/* ============================================================ */

/* -- 1. Attention banner layout -- */
.ce-attn-share { order: 10; }
@media (max-width: 600px) {
  .ce-attention-banner { flex-wrap:wrap !important; overflow:visible !important; gap:6px 10px !important; padding:12px 14px !important; }
  .ce-attn-share { order:-1 !important; width:100% !important; margin-left:0 !important; margin-bottom:2px !important; }
  .ce-attn-text { flex:0 0 100% !important; font-size:0.84rem !important; }
}

/* -- 2. Match context + Oddschecker row -- */
.ce-match-widget-row { display:flex; gap:14px; align-items:stretch; margin-bottom:14px; }
.ce-match-widget-row .ce-match-left { flex:0 1 auto; min-width:0; display:flex; flex-direction:column; }
.ce-match-widget-row .ce-match-ctx  { flex:0 0 auto; margin-bottom:0; }
.ce-match-widget-row .ce-oc-widget-wrap { flex:1 1 0; min-width:200px; }
@media (max-width: 768px) {
  .ce-match-widget-row { flex-direction:column; gap:10px; align-items:flex-start; }
  .ce-match-widget-row .ce-match-left,
  .ce-match-widget-row .ce-oc-widget-wrap { width:100%; flex:none; }
}
.ce-oc-widget-wrap { background:#000; border-radius:6px; overflow:hidden; min-height:140px; }

/* -- 3. Commission note show/hide -- */
.ce-commission-mobile  { display:none !important; font-size:0.72rem; color:#888888; line-height:1.5; margin:0 0 10px; }
.ce-commission-desktop { display:block; font-size:0.72rem; color:#888888; line-height:1.5; padding:10px 0 0; flex:1; }
@media (max-width: 768px) {
  .ce-commission-mobile  { display:block !important; margin-bottom:12px; }
  .ce-commission-desktop { display:none !important; }
}

/* -- 4. CTA "with" force lowercase -- */
.ce-cta-with { font-family:'Barlow Condensed',sans-serif; font-size:0.9rem; font-weight:700; color:rgba(255,255,255,0.8); letter-spacing:0.04em; white-space:nowrap; text-transform:none !important; }
.ce-cta-with strong { text-transform:none !important; }

/* -- 5. VK CTA centred row -- */
.ce-vk-cta { justify-content:center !important; gap:10px !important; }
.ce-vk-cta .ce-bookie-logos { margin-left:0 !important; gap:28px !important; }

/* -- 6. TH/BK CTA mobile: no gap, hide extra logos -- */
@media (max-width: 768px) {
  .ce-std-cta .ce-bookie-logos { margin-left:0 !important; }
  .ce-std-cta .ce-bookie-logos a:nth-child(n+2) { display:none !important; }
}

/* -- 7. VK badge: show/hide mobile logos row -- */
.ce-vk-mobile-logos-row { display:none; }
.ce-vk-mobile-disclaimer { display:none; }
.ce-desktop-disclaimer { display:inline; }
@media (max-width: 600px) {
  .ce-vk-cta .ce-bookie-logos a:nth-child(n+2) { display:none !important; }
  .ce-vk-badge { display:flex !important; flex-direction:column !important; align-items:flex-start !important; text-align:left !important; gap:4px !important; }
  .ce-vk-mobile-logos-row { display:flex !important; align-items:center; gap:10px; }
  .ce-vk-mobile-logos-row a { display:inline-flex; align-items:center; opacity:0.9; }
  .ce-vk-mobile-logos-row img { width:auto !important; object-fit:contain !important; }
  .ce-desktop-disclaimer { display:none !important; }
  .ce-vk-mobile-disclaimer { display:block !important; }
}

/* -- 8. TH/BK badge: show/hide mobile logos row -- */
.ce-std-mobile-logos-row { display:none; }
.ce-std-mobile-disclaimer { display:none; }
@media (max-width: 768px) {
  .ce-std-badge { display:flex !important; flex-direction:column !important; align-items:flex-start !important; text-align:left !important; gap:4px !important; }
  .ce-std-mobile-logos-row { display:flex !important; align-items:center; gap:10px; }
  .ce-std-mobile-logos-row a { display:inline-flex; align-items:center; opacity:0.9; }
  .ce-std-mobile-logos-row img { width:auto !important; object-fit:contain !important; }
  .ce-std-mobile-disclaimer { display:block !important; }
  .ce-std-badge .ce-desktop-disclaimer { display:none !important; }
}

/* -- 9. Intro paragraph show/hide -- */
.ce-mobile-intro { display:none !important; }
@media (max-width: 768px) {
  .ce-mobile-intro  { display:block !important; font-size:0.82rem; color:#d4d4d4; line-height:1.5; margin:0 0 10px; }
  .ce-desktop-intro { display:none !important; }
}

/* -- 10. SCORES & ODDS widget header -- */
.ce-widget-header { margin:-14px -20px 12px; padding:0; border-radius:12px 12px 0 0; overflow:hidden; }
.ce-widget-title  { display:block; background:#CC0000; color:#fff; font-family:'Barlow Condensed',sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; padding:6px 16px; text-align:center; margin:0; }

/* -- 11. Oddspedia footnote -- */
.ce-widget-note { font-size:0.58rem; color:#555555; margin:6px 0 0; text-align:right; font-style:italic; }

/* CLAUDE LAYOUT END */
/* ============================================================ */
