/* Uptohype Trend — High-Contrast Kinetic RTL Stylesheet */
:root {
  --uh-carbon: #0F172A;
  --uh-violet: #6D28D9;
  --uh-lime: #84CC16;
  --uh-canvas: #F3F4F6;
  --uh-white: #FFFFFF;
  --uh-text: #111827;
  --uh-muted: #4B5563;
  --uh-border: #E5E7EB;
  --uh-font: 'Rubik', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--uh-font);
  background: var(--uh-canvas);
  color: var(--uh-text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--uh-violet); }
img { max-width: 100%; height: auto; display: block; }

.uh-container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.uh-sr-only, .uh-skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Ticker & Header */
.uh-ticker { background: var(--uh-carbon); color: #F8FAFC; font-size: 12.5px; padding-block: 7px; }
.uh-ticker-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.uh-ticker-lead { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.uh-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--uh-lime); display: inline-block; }
.uh-ticker-links { display: flex; gap: 14px; font-weight: 600; }
.uh-ticker-links a:hover { color: var(--uh-lime); }

.uh-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--uh-white);
  border-bottom: 2px solid var(--uh-carbon);
}
body.admin-bar .uh-header { top: 32px; }
.uh-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.uh-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.uh-logo-img { width: auto; max-width: 140px; height: 34px; object-fit: contain; }
.uh-pulse-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--uh-carbon); color: var(--uh-lime);
  border-radius: 8px; font-weight: 700;
}
.uh-brand-title { font-weight: 700; font-size: 1.15rem; }

.uh-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.uh-nav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.uh-nav a.is-active, .uh-nav a:hover { background: var(--uh-carbon); color: var(--uh-lime); }

.uh-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.uh-icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--uh-carbon);
  background: var(--uh-white);
  display: inline-grid; place-items: center;
  cursor: pointer; font-weight: 700;
}
.uh-cta-btn, .uh-lime-btn, .uh-submit-violet {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}
.uh-cta-btn, .uh-submit-violet { background: var(--uh-violet); color: #fff; }
.uh-cta-btn:hover, .uh-submit-violet:hover { background: var(--uh-carbon); color: var(--uh-lime); }
.uh-lime-btn { background: var(--uh-lime); color: var(--uh-carbon); margin-top: 16px; }

/* Search Modal & Drawer */
.uh-modal { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 16px; }
.uh-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.7); }
.uh-modal-card {
  position: relative;
  width: min(620px, 100%);
  background: var(--uh-white);
  border: 2px solid var(--uh-carbon);
  border-radius: 14px;
  padding: 22px;
}
.uh-modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.uh-close-btn { border: 1px solid var(--uh-border); background: var(--uh-canvas); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; }
.uh-modal-form { display: flex; gap: 8px; }
.uh-modal-form input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--uh-carbon); border-radius: 8px; font-family: inherit; font-size: 15px; }
.uh-modal-form button { padding: 11px 20px; background: var(--uh-violet); color: #fff; border: 0; border-radius: 8px; font-family: inherit; font-weight: 700; cursor: pointer; }

.uh-drawer { position: fixed; inset: 0; z-index: 4000; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.uh-drawer.is-open { pointer-events: auto; opacity: 1; }
.uh-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); }
.uh-drawer-panel {
  position: relative;
  width: min(340px, 88vw); height: 100%;
  background: var(--uh-carbon); color: #fff;
  padding: 20px; overflow-y: auto;
}
body.admin-bar .uh-drawer-panel { padding-top: 52px; }
.uh-drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.uh-drawer-panel .uh-close-btn { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.uh-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uh-drawer-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.06); font-weight: 500; font-size: 14px;
}
.uh-drawer-list a:hover { background: var(--uh-violet); color: #fff; }
.uh-drawer-list em { font-style: normal; color: var(--uh-lime); font-weight: 700; font-size: 12px; }
.uh-drawer-meta { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.16); }
.uh-drawer-meta a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: var(--uh-lime); color: var(--uh-carbon); font-weight: 700; font-size: 13.5px; }

/* Hero + Numbered Trending Rail */
.uh-hero-band { padding-block: 26px; }
.uh-hero-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.uh-lead-card { height: 100%; border-radius: 14px; overflow: hidden; border: 2px solid var(--uh-carbon); background: var(--uh-carbon); }
.uh-lead-media { display: block; position: relative; height: 100%; min-height: 390px; }
.uh-lead-img, .uh-card-img, .uh-single-img { width: 100%; height: 100%; object-fit: cover; }
.uh-lead-overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(to top, rgba(15,23,42,0.95) 20%, rgba(15,23,42,0.55) 70%, transparent);
  color: #fff;
}
.uh-lead-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.uh-lime-tag {
  display: inline-block;
  background: var(--uh-lime); color: var(--uh-carbon);
  padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 12px;
}
.uh-violet-tag {
  display: inline-block;
  background: var(--uh-violet); color: #fff;
  padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 12px;
}
.uh-lead-overlay h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.35; }
.uh-lead-overlay p { margin: 0; color: #E2E8F0; font-size: 14.5px; }

.uh-trending-rail {
  background: var(--uh-white);
  border: 2px solid var(--uh-carbon);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.uh-rail-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--uh-carbon); padding-bottom: 10px; margin-bottom: 12px; }
.uh-rail-head h2 { margin: 0; font-size: 1.15rem; }
.uh-lime-dot { background: var(--uh-lime); color: var(--uh-carbon); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.uh-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.uh-rail-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; border-bottom: 1px solid var(--uh-border); padding-bottom: 10px; }
.uh-rail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.uh-rank-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--uh-carbon); color: var(--uh-lime);
  font-weight: 700; font-size: 14px;
}
.uh-rail-list small { color: var(--uh-violet); font-weight: 700; font-size: 11.5px; }
.uh-rail-list h3 { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; }

.uh-bolt-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--uh-carbon), var(--uh-violet));
  color: #fff; display: grid; place-items: center; padding: 20px; text-align: center;
}
.uh-bolt-fallback span { color: var(--uh-lime); font-size: 26px; }

/* Channels Deck */
.uh-channels-deck { padding-block: 18px; }
.uh-sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.uh-sec-head h2 { margin: 0; font-size: 1.4rem; }
.uh-sec-head span { font-size: 13px; color: var(--uh-muted); }
.uh-sec-head.is-light h2, .uh-sec-head.is-light span { color: #fff; }
.uh-deck-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.uh-deck-grid.is-archive { margin-top: 16px; }
.uh-channel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--uh-white); border: 1.5px solid var(--uh-carbon);
  padding: 6px 13px; border-radius: 8px; font-weight: 700; font-size: 13.5px;
}
.uh-channel-pill em { font-style: normal; background: var(--uh-canvas); padding: 1px 7px; border-radius: 6px; font-size: 12px; color: var(--uh-violet); }
.uh-channel-pill.is-active, .uh-channel-pill:hover { background: var(--uh-carbon); color: #fff; }
.uh-channel-pill.is-active em, .uh-channel-pill:hover em { background: var(--uh-lime); color: var(--uh-carbon); }

/* Cards Grid & Dark Spotlight */
.uh-grid-section { padding-block: 26px; }
.uh-cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uh-card {
  background: var(--uh-white);
  border: 1.5px solid var(--uh-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.uh-card:hover { border-color: var(--uh-violet); }
.uh-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.uh-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.uh-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--uh-muted); }
.uh-badge-soft { background: #EDE9FE; color: var(--uh-violet); padding: 2px 9px; border-radius: 6px; font-weight: 700; }
.uh-card-body h3, .uh-card-body h2 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.uh-card-body p { margin: 0; font-size: 13.5px; color: var(--uh-muted); }

.uh-spotlight-dark { background: var(--uh-carbon); color: #fff; padding-block: 32px; margin-top: 12px; }
.uh-spotlight-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uh-spot-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 18px; display: grid; gap: 10px; }
.uh-spot-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.uh-spot-card p { margin: 0; font-size: 13.5px; color: #CBD5E1; }
.uh-spot-go { color: var(--uh-lime); font-weight: 700; font-size: 13.5px; }

/* Single Post + Floating Sheet + Progress */
.uh-progress-bar { position: fixed; top: 0; right: 0; left: 0; height: 4px; z-index: 2000; background: transparent; }
.uh-progress-bar span { display: block; height: 100%; width: 0%; background: var(--uh-lime); }
.uh-single-banner { background: var(--uh-carbon); color: #fff; padding: 34px 0 64px; }
.uh-single-narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.uh-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 12px; color: #CBD5E1; }
.uh-single-banner h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; }
.uh-author-line { margin: 0; font-size: 14px; color: #CBD5E1; }
.uh-floating-sheet {
  margin-top: -38px;
  background: var(--uh-white);
  border: 2px solid var(--uh-carbon);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 32px);
}
.uh-single-media { margin: 0 0 22px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; }
.uh-prose { font-size: 16.5px; line-height: 1.85; }
.uh-single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--uh-border); }
.uh-single-tags a { background: var(--uh-canvas); padding: 4px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.uh-next-up { margin-block: 30px; }
.uh-next-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Archives, About & Contact */
.uh-archive-head { background: var(--uh-white); border-bottom: 2px solid var(--uh-carbon); padding-block: 26px; }
.uh-archive-head h1 { margin: 10px 0 6px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.uh-pager .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.uh-pager .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--uh-white); border: 1.5px solid var(--uh-carbon); font-weight: 700; }
.uh-pager .page-numbers.current { background: var(--uh-violet); border-color: var(--uh-violet); color: #fff; }
.uh-page-wrap { padding-block: 56px 28px; }
.uh-empty-card { background: var(--uh-white); border: 2px solid var(--uh-carbon); border-radius: 14px; padding: 28px; text-align: center; }

.uh-about-hero { background: var(--uh-carbon); color: #fff; padding-block: 38px; }
.uh-about-hero h1 { margin: 10px 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.uh-about-hero p { color: #CBD5E1; max-width: 68ch; }
.uh-metrics-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.uh-metric-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.uh-metric-box strong { color: var(--uh-lime); font-size: 1.2rem; }
.uh-radar-card { background: var(--uh-white); border: 1.5px solid var(--uh-carbon); border-radius: 12px; padding: 20px; }

.uh-contact-wrap { padding-block: 30px; }
.uh-contact-split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.uh-hub-dark { background: var(--uh-carbon); color: #fff; border-radius: 14px; padding: 24px; }
.uh-hub-dark h1 { margin: 12px 0 8px; font-size: 1.5rem; }
.uh-hub-dark p { color: #CBD5E1; font-size: 14.5px; }
.uh-hub-items { display: grid; gap: 12px; margin-top: 16px; }
.uh-hub-items small { display: block; color: #94A3B8; }
.uh-pitch-card { background: var(--uh-white); border: 2px solid var(--uh-carbon); border-radius: 14px; padding: 24px; }
.uh-alert { padding: 12px; border-radius: 8px; margin-bottom: 14px; font-weight: 700; }
.uh-alert.is-success { background: #ECFDF5; color: #065F46; border: 1px solid #059669; }
.uh-alert.is-error { background: #FEF2F2; color: #991B1B; border: 1px solid #DC2626; }
.uh-hp { display: none; }
.uh-topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.uh-topic-btn { padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--uh-carbon); background: var(--uh-canvas); font-family: inherit; font-weight: 700; cursor: pointer; }
.uh-topic-btn.is-active { background: var(--uh-violet); border-color: var(--uh-violet); color: #fff; }
.uh-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uh-field { display: grid; gap: 6px; margin-bottom: 12px; }
.uh-field label { font-weight: 700; font-size: 14px; }
.uh-field input, .uh-field textarea { padding: 10px 12px; border: 1.5px solid var(--uh-carbon); border-radius: 8px; font-family: inherit; font-size: 14.5px; }

/* Footer */
.uh-footer { background: var(--uh-carbon); color: #E2E8F0; padding-top: 34px; margin-top: 28px; }
.uh-footer-grid { display: grid; grid-template-columns: 1.1fr 0.8fr 1.6fr; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.uh-footer h2 { margin: 0 0 8px; color: #fff; }
.uh-footer h3 { margin: 0 0 10px; color: var(--uh-lime); font-size: 1rem; }
.uh-footer-contact { display: grid; gap: 5px; font-size: 13.5px; margin-top: 10px; }
.uh-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.uh-footer-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.uh-footer-pills a { padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.08); font-size: 12.5px; }
.uh-footer-pills a:hover { background: var(--uh-violet); color: #fff; }
.uh-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 14px; font-size: 13px; color: #94A3B8; }

@media (max-width: 960px) {
  .uh-nav { display: none; }
  .uh-hero-split, .uh-contact-split, .uh-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .uh-cards-3, .uh-spotlight-3, .uh-metrics-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .uh-cards-3, .uh-spotlight-3, .uh-metrics-3, .uh-form-2, .uh-next-2 { grid-template-columns: minmax(0, 1fr); }
}
