/*
Theme Name: All Play Sports Canvas
Theme URI: https://allplaysports.in
Author: All Play Sports
Author URI: https://allplaysports.in
Description: Elementor-friendly canvas theme for All Play Sports. Provides the brand header, footer, a global quote-request modal, and a set of reusable "All Play Sports" utility CSS classes (buttons, eyebrow labels, cards) you can apply to any Elementor widget via its Advanced > CSS Classes field — with no design forced onto Elementor's own content area, so there is nothing to conflict with.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: all-play-sports-canvas
*/

:root{
  --bg:#0A0A0B;
  --bg-alt:#131315;
  --bg-alt-2:#1A1A1D;
  --accent:#C6FF1A;
  --accent-dim:#9BCC14;
  --text:#F4F4F1;
  --text-muted:#9C9DA3;
  --border:#28282C;
  --radius: 2px;
  --maxw: 1180px;
}

/* ---------- Base (kept minimal on purpose — Elementor content is untouched) ---------- */
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.aps-display{
  font-family:'Archivo',sans-serif;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-0.01em;
}
a{ color:inherit; }
::selection{ background:var(--accent); color:#0A0A0B; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Utility classes — apply these in Elementor's "CSS Classes" field (Advanced tab) on any widget ---------- */
.aps-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.aps-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--accent); font-weight:700; font-size:13px;
  font-family:'Archivo',sans-serif;
}
.aps-eyebrow::before{ content:''; width:7px; height:7px; background:var(--accent); border-radius:50%; }
.aps-card{
  background:var(--bg-alt); border:1px solid var(--border); padding:30px;
}
.aps-card-cut{
  background:var(--bg-alt); border:1px solid var(--border); padding:30px;
  clip-path:polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%);
}
.aps-section-alt{ background:var(--bg-alt); }
.aps-section-pad{ padding:80px 0; }
.aps-accent-text{ color:var(--accent); }
.aps-muted-text{ color:var(--text-muted); }
.aps-center{ text-align:center; }

/* Button classes — put "btn btn-primary" or "btn btn-outline" in a Button widget's CSS Classes field */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 30px;
  font-family:'Archivo',sans-serif; font-weight:700; font-size:15px;
  border-radius:var(--radius);
  cursor:pointer; border:2px solid transparent;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration:none !important;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--accent); color:#0A0A0B !important; }
.btn-primary:hover{ background:#DFFF66; color:#0A0A0B !important; }
.btn-outline{ background:transparent; color:var(--text) !important; border-color:var(--border); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent) !important; }

/* ---------- Header ---------- */
header.aps-header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  background:rgba(10,10,11,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.aps-nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
  max-width:var(--maxw); margin:0 auto;
}
.aps-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.aps-brand img{ height:34px; width:auto; }
.aps-brand-text{ font-family:'Archivo',sans-serif; font-weight:900; font-size:16px; letter-spacing:.02em; color:var(--text); }
.aps-nav-menu{ display:flex; gap:30px; font-weight:600; font-size:14px; list-style:none; margin:0; padding:0; }
.aps-nav-menu li{ list-style:none; }
.aps-nav-menu a{ color:var(--text-muted); text-decoration:none; transition:color .15s; }
.aps-nav-menu a:hover{ color:var(--accent); }
.aps-nav-cta{ display:flex; align-items:center; gap:16px; }
.aps-nav-toggle{ display:none; background:none; border:none; color:var(--text); font-size:26px; cursor:pointer; }

@media (max-width:860px){
  .aps-nav-menu{
    position:fixed; top:64px; left:0; right:0; bottom:0;
    background:var(--bg); flex-direction:column; padding:32px 24px; gap:22px;
    font-size:18px; transform:translateX(100%); transition:transform .25s ease;
  }
  .aps-nav-menu.open{ transform:translateX(0); }
  .aps-nav-toggle{ display:block; }
  .aps-nav-cta .btn-outline{ display:none; }
}

/* Push page content below the fixed header */
main.aps-main{ padding-top:82px; }

/* ---------- Footer ---------- */
footer.aps-footer{ padding:60px 0 30px; font-size:14px; border-top:1px solid var(--border); }
.aps-foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:50px; }
.aps-foot-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.aps-foot-brand img{ height:30px; }
footer.aps-footer h5{ font-family:'Archivo',sans-serif; font-size:13px; letter-spacing:.04em; color:var(--text-muted); margin-bottom:16px; }
footer.aps-footer ul{ list-style:none; margin:0; padding:0; }
footer.aps-footer li{ margin-bottom:10px; }
footer.aps-footer a{ color:var(--text-muted); text-decoration:none; transition:color .15s; }
footer.aps-footer a:hover{ color:var(--accent); }
footer.aps-footer p{ color:var(--text-muted); max-width:320px; }
.aps-foot-bottom{ border-top:1px solid var(--border); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--text-muted); font-size:13px; }
@media (max-width:700px){ .aps-foot-grid{ grid-template-columns:1fr; } }

/* ---------- WhatsApp float ---------- */
.aps-wa-float{
  position:fixed; bottom:22px; right:22px; z-index:150;
  width:58px; height:58px; border-radius:50%;
  background:var(--accent); color:#0A0A0B;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; box-shadow:0 6px 22px rgba(0,0,0,.4);
  transition:transform .15s; text-decoration:none;
}
.aps-wa-float:hover{ transform:scale(1.07); }

/* ---------- Quote Modal ---------- */
.aps-modal-backdrop{
  position:fixed; inset:0; background:rgba(6,6,7,.78);
  display:none; align-items:center; justify-content:center; z-index:300; padding:20px;
  backdrop-filter:blur(3px);
}
.aps-modal-backdrop.active{ display:flex; }
.aps-modal{
  background:var(--bg-alt); border:1px solid var(--border);
  max-width:460px; width:100%; padding:38px 34px; position:relative;
  clip-path:polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%);
}
.aps-modal-close{
  position:absolute; top:16px; right:18px; background:none; border:none;
  color:var(--text-muted); font-size:24px; cursor:pointer; line-height:1;
}
.aps-modal-close:hover{ color:var(--accent); }
.aps-modal h3{ font-size:24px; margin-bottom:8px; }
.aps-modal p.sub{ color:var(--text-muted); font-size:14px; margin-bottom:26px; }
.aps-field{ margin-bottom:16px; }
.aps-field label{ display:block; font-size:13px; font-weight:600; color:var(--text-muted); margin-bottom:7px; }
.aps-field input{
  width:100%; background:var(--bg); border:1px solid var(--border); color:var(--text);
  padding:13px 14px; font-family:'Inter',sans-serif; font-size:15px; border-radius:var(--radius);
  transition:border-color .15s; box-sizing:border-box;
}
.aps-field input:focus{ border-color:var(--accent); outline:none; }
.aps-form-note{ font-size:12px; color:var(--text-muted); margin-top:14px; text-align:center; }
.aps-form-success{ display:none; text-align:center; padding:20px 0; }
.aps-form-success.active{ display:block; }
.aps-form-success .tick{ font-size:44px; color:var(--accent); margin-bottom:14px; }

/* ---------- Blog cards (used by home.php / single.php only — not by Elementor pages) ---------- */
.aps-blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.aps-blog-card{ background:var(--bg-alt); border:1px solid var(--border); overflow:hidden; text-decoration:none; color:inherit; display:block; transition:border-color .15s; }
.aps-blog-card:hover{ border-color:var(--accent); }
.aps-blog-thumb{ aspect-ratio:16/10; background:var(--bg-alt-2); display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text-muted); border-bottom:1px solid var(--border); }
.aps-blog-thumb img{ width:100%; height:100%; object-fit:cover; }
.aps-blog-body{ padding:24px; }
.aps-blog-tag{ color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.03em; margin-bottom:10px; display:block; }
.aps-blog-card h3{ font-size:18px; margin:0 0 10px; line-height:1.3; }
.aps-blog-card p{ color:var(--text-muted); font-size:14px; margin-bottom:16px; }
.aps-blog-meta{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--text-muted); border-top:1px solid var(--border); padding-top:14px; }
.aps-blog-read{ color:var(--accent); font-weight:700; }
@media (max-width:860px){ .aps-blog-grid{ grid-template-columns:1fr; } }

.aps-pagination{ display:flex; justify-content:center; margin-top:50px; }
.aps-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:40px; height:40px; padding:0 12px; margin:0 4px;
  border:1px solid var(--border); color:var(--text-muted); text-decoration:none;
  font-family:'Archivo',sans-serif; font-weight:700; font-size:14px;
}
.aps-pagination .page-numbers.current{ border-color:var(--accent); color:var(--accent); }
.aps-pagination .page-numbers:hover{ border-color:var(--accent); color:var(--accent); }

/* ---------- Single post content typography (used by single.php only) ---------- */
.aps-post-content{ color:var(--text-muted); font-size:17px; line-height:1.8; }
.aps-post-content h2{ font-family:'Archivo',sans-serif; color:var(--text); font-size:26px; margin:44px 0 16px; }
.aps-post-content h3{ font-family:'Archivo',sans-serif; color:var(--text); font-size:21px; margin:34px 0 14px; }
.aps-post-content p{ margin-bottom:22px; }
.aps-post-content a{ color:var(--accent); text-decoration:underline; }
.aps-post-content ul,.aps-post-content ol{ margin:0 0 22px 22px; }
.aps-post-content img{ width:100%; height:auto; border:1px solid var(--border); margin:30px 0; }
