/* ================================================================
   Topcityvibe Pro — Design System & Global Reset
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --green:       #16A34A;
  --green-dark:  #14532D;
  --green-deep:  #052e16;
  --green-mid:   #15803D;
  --green-light: #86EFAC;
  --green-pale:  #DCFCE7;
  --green-tint:  #F0FDF4;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --text:        #0F172A;
  --text-2:      #334155;
  --text-muted:  #64748B;
  --text-faint:  #94A3B8;
  --border:      #E2E8F0;
  --border-2:    #F1F5F9;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFC;
  --gold:        #D97706;
  --gold-light:  #FCD34D;
  --red:         #DC2626;
  --red-pale:    #FEE2E2;
  --sh-sm:  0 1px 4px rgba(0,0,0,.06);
  --sh-md:  0 4px 16px rgba(0,0,0,.09);
  --sh-lg:  0 8px 32px rgba(0,0,0,.13);
  --sh-g:   0 4px 20px rgba(22,163,74,.25);
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --f-disp: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --ease: .2s ease;
  --dm-bg:       #0a0f0d;
  --dm-surface:  #111916;
  --dm-surface2: #172014;
  --dm-border:   rgba(255,255,255,.07);
  --dm-text:     #e8f5ee;
  --dm-muted:    #6aad82;
}

/* ── Global Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  transition: background .35s ease, color .35s ease;
}

/* ── Dark Mode ── */
body.dark {
  --off-white:  var(--dm-bg);
  --surface:    var(--dm-surface);
  --surface-2:  var(--dm-surface2);
  --border:     var(--dm-border);
  --border-2:   rgba(255,255,255,.04);
  --text:       var(--dm-text);
  --text-2:     #c3dccb;
  --text-muted: #6aad82;
  --text-faint: #3d6b4f;
  --white:      var(--dm-surface);
  background: var(--dm-bg);
  color: var(--dm-text);
}

a { text-decoration: none; color: inherit; }
/* Global text overflow fix */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Thumb Placeholder ── */
.thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-pale), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 18px;
}

/* ── Section Header ── */
.sec-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: nowrap; }
.sec-label { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.sec-bar { width: 3px; height: 20px; background: var(--green); border-radius: 2px; flex-shrink: 0; }
.sec-title { font-family: var(--f-disp); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text); }
.sec-line { flex: 1; height: 1px; background: var(--border); min-width: 10px; }
.sec-link { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--green); white-space: nowrap; transition: opacity var(--ease); flex-shrink: 0; }
.sec-link:hover { opacity: .7; }

/* ── Scroll Track ── */
.scroll-wrap {
  position: relative; display: flex; align-items: center;
  width: 100%; max-width: 100%;
  overflow: hidden; /* clips horizontal scroll */
}
.scroll-track { display: flex; gap: 12px; overflow-x: auto; overflow-y: visible; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0 12px; flex: 1; min-width: 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-arrow { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all var(--ease); z-index: 2; }
.scroll-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.scroll-arrow.left { margin-right: 8px; }
.scroll-arrow.right { margin-left: 8px; }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pg-btn { min-width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: all var(--ease); padding: 0 10px; font-family: var(--f-body); }
.pg-btn:hover { border-color: var(--green); color: var(--green); }
.pg-btn.active, .pg-btn.current { background: var(--green); border-color: var(--green); color: #fff; }
.pg-btn.nav { padding: 0 14px; }

/* ── Page Layout ── */
.page-body { padding: 28px 0 60px; }
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .main-grid { grid-template-columns: 1fr; } }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.fu { animation: fadeUp .5s ease both; }
.fu:nth-child(1){animation-delay:.05s} .fu:nth-child(2){animation-delay:.1s}
.fu:nth-child(3){animation-delay:.15s} .fu:nth-child(4){animation-delay:.2s}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes scroll-t { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes ring-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes eq { from{transform:scaleY(.3)} to{transform:scaleY(1)} }
@keyframes ticker-v {
  0%,15%  { transform:translateY(0); }
  25%,40% { transform:translateY(-36px); }
  50%,65% { transform:translateY(-72px); }
  75%,90% { transform:translateY(-108px); }
  100%    { transform:translateY(0); }
}
