/* ==========================================================================
   AroundThomasville Real Editorial Shell & Mockup Design System (24.8.959)
   Implements the exact visual system from mockups/:
   - 72px / 242px collapsible green left dock (.at-mock-shell / .at-dock)
   - Live Thomasville time-of-day sky ribbon & ambient radial halos
   - Rainbow-accented clean sticky topbar + Aa big-text toggle
   - Bold 2px #15231B editorial cards with 4px offset shadows
   - Colorful gradient page heroes with 3-stat glass boxes
   Strictly scoped to public/ask-around pages — NEVER touches Owner or Admin.
   ========================================================================== */

:root,
body.public-page[data-phase="dusk"],
body.aa-body[data-phase="dusk"] {
  --sky1: #2D3A7C;
  --sky2: #A5527F;
  --sky3: #F08A5D;
  --g1: #F7C9B0;
  --g2: #D5D0F2;
  --pg: #FFF6EE;
}
body.public-page[data-phase="dawn"],
body.aa-body[data-phase="dawn"] {
  --sky1: #6E8FD0;
  --sky2: #F6B18A;
  --sky3: #FFE2A8;
  --g1: #FFDDB6;
  --g2: #DCE6FF;
  --pg: #FFF8EE;
}
body.public-page[data-phase="day"],
body.aa-body[data-phase="day"] {
  --sky1: #3F9BE6;
  --sky2: #8FD0F6;
  --sky3: #E6F6FF;
  --g1: #CFEAFF;
  --g2: #C8F0D6;
  --pg: #F8FBFF;
}
body.public-page[data-phase="golden"],
body.aa-body[data-phase="golden"] {
  --sky1: #5B8DD6;
  --sky2: #F6A94A;
  --sky3: #FFD98A;
  --g1: #FFE3A6;
  --g2: #FFD0B0;
  --pg: #FFF7E6;
}
body.public-page[data-phase="night"],
body.aa-body[data-phase="night"] {
  --sky1: #0B1330;
  --sky2: #1B2A5C;
  --sky3: #34478A;
  --g1: #C9D3F3;
  --g2: #D5DAF0;
  --pg: #F1F3FA;
}

body.public-page,
body.aa-body {
  --at-ink: #15231B;
  --at-soft: #36443B;
  --at-dim: #505C54;
  --at-forest: #17804F;
  --at-forest2: #0F6139;
  --at-gold: #FFD25E;
  --at-rose: #D63A4A;
  --at-line: #EADFC6;
  --at-serif: 'Fraunces', Georgia, serif;
  --at-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  font-family: var(--at-sans);
  color: var(--at-ink);
  background:
    radial-gradient(900px 520px at 88% -6%, var(--g1, #FFE3A6), transparent 60%),
    radial-gradient(800px 520px at 6% 2%, var(--g2, #C8F0D6), transparent 60%),
    radial-gradient(700px 500px at 60% 100%, #DCE8FF, transparent 60%),
    var(--pg, #FFF8EA) !important;
  background-attachment: fixed !important;
  transition: background .5s ease;
}

body.big-text {
  zoom: 1.12;
}

/* ==========================================================================
   1. Collapsible 72px / 242px Green Left Dock (.at-mock-shell)
   ========================================================================== */
.at-mock-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}
.at-mock-shell.expanded {
  grid-template-columns: 242px minmax(0, 1fr);
}
.at-mock-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.at-dock {
  background: linear-gradient(180deg, #1C7A4B 0%, #126238 55%, #0C4A2B 100%);
  color: #E5F0E9;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 3px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 45;
  scrollbar-width: none;
  border-right: 2px solid #0B3820;
}
.at-dock::-webkit-scrollbar { display: none; }

.at-dock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 0 3px;
}
.at-dock-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 2px solid #0B3820;
  padding: 2px;
  cursor: pointer;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}
.at-dock-logo:hover {
  transform: scale(1.04);
}
.at-dock-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.at-dock-brand {
  font-family: var(--at-serif);
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease;
}
.at-mock-shell.expanded .at-dock-brand,
.at-mock-shell.expanded .at-dock-btn span {
  opacity: 1;
}

.at-dock-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #CFE3D6 !important;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  flex: none;
  transition: background .15s ease, color .15s ease;
}
.at-dock-btn i {
  font-style: normal;
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex: none;
}
.at-dock-btn span {
  opacity: 0;
  transition: opacity .15s ease;
}
.at-dock-btn:hover,
.at-dock-btn.on {
  background: rgba(255, 255, 255, .20);
  color: #FFFFFF !important;
}
.at-dock-btn.on::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--at-gold);
}
.at-dock-sep {
  height: 1px;
  background: rgba(255, 255, 255, .18);
  margin: 5px 4px;
  flex: none;
}

/* ==========================================================================
   2. Live Sky Ribbon + Rainbow-Accent Topbar + Aa Text Scaler
   ========================================================================== */
.at-sky-ribbon {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background: linear-gradient(90deg, var(--sky1, #2D3A7C), var(--sky2, #A5527F) 60%, var(--sky3, #F08A5D));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  border-bottom: 1.5px solid rgba(21, 35, 27, .35);
}
.at-sky-in {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}
.at-sky-scrim {
  background: rgba(10, 20, 45, .52);
  padding: 3px 12px;
  border-radius: 999px;
}
.at-sky-scrim b {
  color: #FFE9A8;
}
.at-sky-daybar {
  position: relative;
  flex: 1;
  min-width: 90px;
  max-width: 220px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .38);
}
.at-sky-daybar i {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD25E;
  box-shadow: 0 0 12px 4px rgba(255, 200, 90, .7);
  transform: translateX(-50%);
}
.at-sky-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.at-sky-controls select {
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, .94);
  color: var(--at-ink);
  cursor: pointer;
}
.at-aa-btn {
  height: 28px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .94);
  color: var(--at-ink);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.at-aa-btn[aria-pressed="true"] {
  background: var(--at-ink);
  color: #FFFFFF;
  border-color: var(--at-gold);
}

/* Rainbow-trimmed sticky public topbar */
body.public-page .topbar,
body.public-page header.site-header {
  background: rgba(255, 252, 243, .95) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #E5484D, #F59E0B, #10B981, #3B82F6, #8B5CF6) 1 !important;
}

/* ==========================================================================
   3. Bold Editorial Offset-Shadow Cards & Colorful Gradient Page Heroes
   ========================================================================== */
body.public-page .at-category-page .hero.idx-h,
body.public-page .at-open-design .open-hero,
body.public-page .at-search-design .search-hero,
body.public-page .at-events-hero,
body.public-page .at-deals-hero,
body.public-page .at-jobs-hero {
  border: 2px solid var(--at-ink) !important;
  border-radius: 22px !important;
  box-shadow: 5px 5px 0 var(--at-ink) !important;
}

body.public-page .at-category-page .hero.idx-h {
  background: linear-gradient(120deg, #0E5A33 0%, #1FAE6B 100%) !important;
  color: #FFFFFF !important;
}
body.public-page .at-category-page .hero.idx-h h1,
body.public-page .at-category-page .hero.idx-h p,
body.public-page .at-category-page .hero.idx-h .eye,
body.public-page .at-category-page .hero.idx-h .sub {
  color: #FFFFFF !important;
}
body.public-page .at-category-page .hero.idx-h .stats span {
  background: rgba(10, 20, 45, .48) !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  color: #FFFFFF !important;
}
body.public-page .at-category-page .hero.idx-h .stats b {
  color: #FFE9A8 !important;
  font-family: var(--at-serif) !important;
}

/* Bold 2px solid #15231B + 4px offset shadow cards across directory & discovery */
body.public-page .at-category-page .ccs .cc,
body.public-page .at-category-page .duo .spot,
body.public-page .at-category-page .duo .guide,
body.public-page .at-category-page .at-card,
body.public-page .at-deal-ticket,
body.public-page .at-event-ticket,
body.public-page .at-job-ticket,
body.public-page .biz-card,
body.public-page .result-card,
body.public-page .directory-card {
  background: #FFFFFF !important;
  border: 2px solid var(--at-ink) !important;
  border-radius: 18px !important;
  box-shadow: 4px 4px 0 var(--at-ink) !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
}

body.public-page .at-category-page .ccs .cc:hover,
body.public-page .at-deal-ticket:hover,
body.public-page .at-event-ticket:hover,
body.public-page .at-job-ticket:hover,
body.public-page .biz-card:hover,
body.public-page .result-card:hover,
body.public-page .directory-card:hover {
  transform: translate(-2px, -3px) !important;
  box-shadow: 6px 7px 0 var(--at-ink) !important;
}

body.public-page .at-category-page .ccs .cc h3,
body.public-page h1,
body.public-page h2 {
  font-family: var(--at-serif);
}

/* ==========================================================================
   4. Responsive Behavior (Preserve Mobile Porch Bar Untouched)
   ========================================================================== */
@media (max-width: 900px) {
  .at-mock-shell,
  .at-mock-shell.expanded {
    grid-template-columns: 1fr;
  }
  .at-dock {
    display: none;
  }
  .at-sky-daybar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-mock-shell,
  .at-dock-btn,
  .at-dock-logo {
    transition: none !important;
  }
}
