/*
Theme Name: TAG Neon Base
Theme URI: https://theauctiongallery.co/
Author: The Auction Gallery, Co.
Description: Dark neon, mobile-first theme for The Auction Gallery. Built for YouTube Live auction conversion.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: tag-neon-base
*/

:root{
  --bg:#07090d;
  --panel:#0c0f16;
  --panel2:#0a0d13;
  --text:#f4f6ff;
  --muted:rgba(244,246,255,.75);
  --line:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --cyan: #12d6ff;
  --orange:#ff6a00;
  --pink:#ff2bd6;
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 15% 10%, rgba(18,214,255,.12), transparent 55%),
              radial-gradient(1000px 600px at 90% 20%, rgba(255,106,0,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:var(--cyan); text-decoration:none}
a:hover{text-decoration:underline}

.tag-wrap{max-width:1100px; margin:0 auto; padding:0 18px}

.tag-topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(7,9,13,.82);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.tag-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:12px 0;
}

.tag-brand{display:flex; align-items:center; gap:12px; min-width:150px}
.tag-logo-img, .custom-logo{height:40px; width:auto; display:block; filter: drop-shadow(0 0 10px rgba(18,214,255,.15));}
.tag-site-title{font-weight:900; letter-spacing:.2px; color:var(--text)}

.tag-nav{display:flex; align-items:center}
.tag-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.tag-nav a{color:rgba(244,246,255,.92); font-weight:800; font-size:14px; padding:10px 10px; border-radius:12px}
.tag-nav a:hover{background:rgba(255,255,255,.06); text-decoration:none}
.tag-menu-live .tag-live-dot{margin-left:6px}

.tag-hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  box-shadow:0 0 0 1px rgba(18,214,255,.06) inset;
}
.tag-hamburger span{display:block; height:2px; margin:6px 10px; background:rgba(244,246,255,.85)}

.tag-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(244,246,255,.95);
  font-weight:900;
  box-shadow: 0 0 0 1px rgba(18,214,255,.06) inset;
}
.tag-btn:hover{transform: translateY(-1px); text-decoration:none}
.tag-btn.tiny{padding:10px 14px; border-radius:14px; font-size:13px}
.tag-btn.secondary{
  background:rgba(255,255,255,.03);
}
.tag-btn.neon{
  border-color: rgba(18,214,255,.35);
  box-shadow:
    0 0 0 1px rgba(18,214,255,.10) inset,
    0 0 18px rgba(18,214,255,.18),
    0 0 26px rgba(255,106,0,.08);
}

.tag-hero{padding:34px 0 10px}
.tag-hero-grid{display:grid; grid-template-columns: 1.05fr .95fr; gap:18px; align-items:stretch}

.tag-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tag-card-inner{padding:22px}
.tag-kicker{font-weight:900; color:rgba(244,246,255,.80); font-size:13px; letter-spacing:.2px; margin-bottom:10px}
.tag-h1{font-size:40px}
.tag-sub{color:var(--muted); font-weight:650; line-height:1.5}
.tag-note{color:rgba(244,246,255,.70); font-size:12px; line-height:1.45}
.tag-cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:10px 0 10px}

.tag-video{border-radius:18px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.35)}
.tag-video iframe{width:100%; aspect-ratio: 16/9; border:0; border-radius:18px}

.tag-section{padding:18px 0}
.tag-section h2{margin:0 0 14px; font-size:24px}

.tag-grid-3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px}
.tag-pill{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px;
}
.tag-pill strong{display:block; font-size:14px; margin-bottom:6px}
.tag-pill span{display:block; color:var(--muted); line-height:1.45}

.tag-page{padding:22px 0 50px}
.tag-page h1{font-size:34px; margin:8px 0 12px}
.tag-page .tag-lead{color:var(--muted); line-height:1.6; font-weight:650}

.tag-split{display:grid; grid-template-columns: 1fr 1fr; gap:16px}

.tag-footer{padding:28px 0; border-top:1px solid rgba(255,255,255,.07); margin-top:30px; color:rgba(244,246,255,.70)}
.tag-footer small{opacity:.9}

/* Mobile */
@media (max-width: 920px){
  .tag-hero-grid{grid-template-columns:1fr}
  .tag-h1{font-size:34px}
}
@media (max-width: 760px){
  .tag-nav{display:none}
  .tag-hamburger{display:inline-block}
  .tag-grid-3{grid-template-columns:1fr}
  .tag-split{grid-template-columns:1fr}
}

/* Mobile menu open */
body.tag-menu-open .tag-nav{display:block}
body.tag-menu-open .tag-nav ul{
  flex-direction:column; align-items:flex-start;
  padding:12px; margin-top:10px;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
}
/* ===== Fix Live Stream Countdown Overflow ===== */

.tag-video,
.tag-card,
.live-card,
.tag-stream-box {
  overflow: hidden !important;
}

.tag-video iframe {
  max-width: 100% !important;
}

.tag-stream-box * {
  max-width: 100% !important;
  word-wrap: break-word !important;
}
/* Prevent countdown text from breaking layout */
.tag-stream-box h3,
.tag-stream-box div,
.tag-stream-box span {
  white-space: normal !important;
  text-align: center !important;
}
/* ===== Fix countdown text not fitting in Live Stream box ===== */

/* This targets the Live Stream panel area and forces safe wrapping */
.tag-card * {
  min-width: 0 !important;          /* critical for flex children */
}

/* Make countdown containers wrap instead of stretching */
.tag-card .tag-countdown,
.tag-card .countdown,
.tag-card [class*="countdown"],
.tag-card [id*="countdown"] {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Make the countdown text responsive */
.tag-card .tag-countdown *,
.tag-card .countdown *,
.tag-card [class*="countdown"] *,
.tag-card [id*="countdown"] * {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  font-size: clamp(14px, 2.2vw, 20px) !important;
  line-height: 1.15 !important;
  text-align: center !important;
}
/* ===== Fix Live Stream countdown overflow ===== */

#tagCountdownWrap{
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Make the countdown text shrink on smaller screens instead of overflowing */
#tagCountdown{
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-align: center !important;

  /* Responsive font size: never too huge, never too tiny */
  font-size: clamp(16px, 2.2vw, 22px) !important;
  line-height: 1.15 !important;
}
#tagCountdownWrap{
  padding: 14px 16px !important;
}
/* ===== Fix Live Stream overlay headline disappearing ===== */
#tagLiveOverlay{
  padding: 16px 16px 14px !important;
  align-items: center !important;
  justify-content: flex-start !important; /* key change: start at top */
}

#tagLiveOverlay > div{
  width: 100% !important;
  max-width: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important; /* key change */
  gap: 10px !important;
}

#tagLiveHeadline{
  display: block !important;
  font-size: clamp(14px, 1.6vw, 17px) !important;
  line-height: 1.25 !important;
  margin: 0 0 6px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#tagCountdownWrap{
  margin: 6px auto 10px !important;
  padding: 12px 14px !important;
}

#tagCountdown{
  font-size: clamp(18px, 2.0vw, 22px) !important;
  line-height: 1.1 !important;
}
/* ===== SSA (pickup scheduler) mobile layout fix ===== */

/* Make sure embeds never escape the card */
.tag-card,
.tag-card-inner,
.tag-page,
.tag-wrap {
  overflow-x: hidden;
}

/* The SSA embed is an iframe - force it to be responsive */
iframe.ssa_booking_iframe,
iframe[src*="simplyscheduleappointments"],
iframe[src*="ssa"],
iframe[src*="simply-schedule-appointments"]{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

/* SSA wrapper containers sometimes get weird widths on mobile */
.ssa-booking-iframe,
.ssa_booking_iframe,
.ssa-booking,
.ssa-booking-app,
.ssa-embed,
.ssa-embed-wrapper{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* If any parent is flex, allow shrinking */
.tag-card-inner,
.tag-page,
.tag-wrap{
  min-width: 0 !important;
}

/* Extra: kill horizontal scroll caused by embeds */
body{
  overflow-x: hidden;
}
/* WordPress alignment wrappers can break iframe centering */
.wp-block-embed,
.wp-block-embed__wrapper,
.wp-block-shortcode,
.wp-block-html,
.alignwide,
.alignfull{
  max-width: 100% !important;
  overflow: hidden !important;
}
/* =========================================
   FIX: Live Stream mobile vertical crunch
   ========================================= */

@media (max-width: 640px){

  #tagLiveOverlay{
    overflow-y: auto !important;
  }

  #tagLiveOverlay::-webkit-scrollbar{
    width: 4px;
  }

  #tagLiveOverlay::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.15);
    border-radius: 10px;
  }

  #tagLiveOverlay #tagLiveInner{
    padding-bottom: 10px !important;
  }

  /* Add breathing room under the video card */
  .tag-card-inner{
    padding-bottom: 26px !important;
  }
@media (max-width: 640px){
  .tag-video + .tag-note{
    margin-top: 16px !important;
  }
}
/* =========================================
   LIVE STREAM: fix skinny-mobile crunch (no scrollbar)
   ========================================= */
@media (max-width: 640px){

  /* Keep overlay clean + prevent scrollbar */
  #tagLiveOverlay{
    overflow: hidden !important;
    padding: 10px 10px 10px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  #tagLiveOverlay > div{
    gap: 8px !important;
  }

  /* Headline: smaller + tighter */
  #tagLiveHeadline{
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  /* Countdown box: tighter to make room */
  #tagCountdownWrap{
    padding: 10px 10px !important;
    border-radius: 14px !important;
    margin: 6px auto 6px !important;
  }

  #tagCountdownLabel{
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  #tagCountdown{
    font-size: 16px !important;
    line-height: 1.05 !important;
  }

  /* The "Every Friday..." line */
  #tagCountdownWrap > div:last-child{
    font-size: 11px !important;
    margin-top: 4px !important;
  }

  /* Buttons: slightly smaller + tighter vertical spacing */
  #tagLiveBtns{
    gap: 8px !important;
    margin: 0 !important;
  }

  #tagLiveOverlay .tag-btn{
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  /* Tip line: shrink so it doesn't push buttons off */
  #tagLiveTip{
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
}
	/* ===== TAG Photo Submit (Neon Form) ===== */
#tagPhotoForm{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

#tagPhotoForm label{
  font-weight: 800;
  color: rgba(244,246,255,.92);
  display:block;
  margin-bottom: 6px;
}

#tagPhotoForm input[type="text"],
#tagPhotoForm textarea{
  width:100%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 12px;
  color: rgba(244,246,255,.95);
  outline: none;
}

#tagPhotoForm input[type="text"]:focus,
#tagPhotoForm textarea:focus{
  border-color: rgba(18,214,255,.35);
  box-shadow: 0 0 0 1px rgba(18,214,255,.12) inset, 0 0 16px rgba(18,214,255,.14);
}

#tagPhotoForm input[type="file"]{
  width:100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
  color: rgba(244,246,255,.85);
}

#tagPhotoForm button[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18,214,255,.35);
  background: rgba(255,255,255,.05);
  color: rgba(244,246,255,.95);
  font-weight: 900;
  cursor:pointer;
  box-shadow:
    0 0 0 1px rgba(18,214,255,.10) inset,
    0 0 18px rgba(18,214,255,.18),
    0 0 26px rgba(255,106,0,.08);
}

#tagPhotoForm button[type="submit"]:hover{
  transform: translateY(-1px);
}

#tagPhotoMessage{
  margin-top: 10px;
  font-weight: 800;
  color: rgba(244,246,255,.90);
}

/* Mobile tighten */
@media (max-width: 640px){
  #tagPhotoForm{ padding: 14px; }
}
	