/*
 * application.css
 * This file applies Stack Sans Notch globally.
 * Font file: app/assets/stack-sans-notch/StackSansNotch-Regular.ttf
 */

/* ============ Font Registration ============ */
@font-face {
  font-family: "Stack Sans Notch";
  src: url("/assets/stack-sans-notch/StackSansNotch-Medium-c9b54c42.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* apply lowercase to everything globally */
html, body {
  text-transform: lowercase !important;
}



/* ============ Global Typography ============ */
html, body, h1, h2, h3, h4, h5, h6,
.navbar, .btn, input, select, textarea {
  font-family: "Stack Sans Notch", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Optional base styling */
body {
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
}

/* prevent horizontal scroll + top gap on video show */
html,
body.videos-show {
  overflow-x: hidden;
}

body.videos-show {
  background-color: #000 !important;
  color: #ddd;
  margin-top: 0;
  padding-top: 0;
}

body.docs-api {
  background-color: #000 !important;
  color: #ddd;
}

body.topics-show {
  background-color: #323131 !important;
  color: #ddd;
}

body.topics-show .container {
  background: transparent !important;
}

.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.navbar-nav > li,
.nav-item {
  list-style: none !important;
  margin: 0;
  padding: 0;
}


.topic-article #topic-article-body {
  transition: max-height 0.25s ease;
}

.topic-article #topic-article-body.topic-article-collapsed {
  max-height: 10rem; /* roughly ~10 lines with lh-lg */
  overflow: hidden;
  position: relative;
}

.topic-article #topic-article-body.topic-article-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
}

/* Headings slightly heavier */
h1, h2, h3 {
  font-weight: 600;
}


/* Force Stack Sans Notch globally */
:root, html, body,
h1, h2, h3, h4, h5, h6,
.navbar, .btn, .form-control, input, select, textarea, label, a, p, div, span {
  font-family: "Stack Sans Notch", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.pagination .page-item .page-link {
  padding: 0.5rem 0.9rem;
}




/* --- Gewgool "Over-the-Top" Video Card --- */
.video-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: linear-gradient(145deg, #ffffff, #f9fafc);
}
.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Thumbnail hover overlay */
.video-thumb {
  position: relative;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.video-card:hover .video-overlay {
  opacity: 1;
}

.video-thumb img.d-md-none {
  display: none;
}

@media (min-width: 768px) {
  .video-thumb .d-md-flex {
    display: flex !important;
  }
  .video-thumb img.d-md-block {
    display: block !important;
  }
}

/* Play button */
.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 0, 0.85);
  border: none;
  transition: transform 0.25s ease, background 0.3s ease;
}
.play-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.15);
}

/* Gradient button */
.btn-gradient-primary {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
  border: none;
  color: #fff !important;
  transition: background 0.3s ease, transform 0.25s ease;
}
.btn-gradient-primary:hover {
  background: linear-gradient(90deg, #ff4b2b, #ff416c);
  transform: scale(1.03);
}

/* --- Custom triangle play button --- */
.play-triangle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.play-triangle:hover {
  transform: scale(1.15);
  background: rgba(255, 0, 0, 0.7);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.7);
}

.triangle {
  position: relative;
  left: 2px;
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* when hovering the video card, glow slightly */
.video-card:hover .play-triangle {
  background: rgba(255, 0, 0, 0.6);
}


/* --- Gewgool Meta Badge Glow --- */
.bg-gradient-views {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bg-gradient-views:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(13, 110, 253, 0.6);
}

.bg-gradient-time {
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bg-gradient-time:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.6);
}

/* Author text tweak */
.video-meta .author {
  font-weight: 500;
  letter-spacing: 0.3px;
}



/* ---------- pagination glow redux ---------- */
.pagination-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
  width: 100%;
}

.pagination-shell .pagination {
  font-size: 0.95rem;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
  flex: 1 1 auto;
}

.pagination-nav {
  flex: 0 0 140px;
  display: flex;
  justify-content: center;
}

.pagination .page-item {
  position: relative;
}

.pagination .page-link {
  background: radial-gradient(circle at top, #1f1f1f 0%, #0c0c0c 70%);
  color: #f0f0f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.95rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pagination .page-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.pagination .page-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.pagination .page-link:hover::after {
  opacity: 0.5;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(90deg, #ff7b39, #ff005d);
  border-color: transparent !important;
  box-shadow: 0 20px 35px rgba(255, 65, 108, 0.35);
}

.pagination .page-item.active .page-link::after {
  opacity: 0.7;
  box-shadow: 0 0 25px rgba(255, 137, 102, 0.55);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.page-link--nav {
  min-width: 120px;
  text-align: center;
}

.page-link--nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.pagination-mobile {
  display: none;
}

@media (max-width: 768px) {
  .video-thumb .video-overlay {
    display: none !important;
  }
  .pagination-shell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-shell .pagination,
  .pagination-nav {
    display: none;
  }

  .pagination-shell--top,
  .pagination-mobile--top,
  .pagination-block--top {
    display: none;
  }

  .pagination-shell::after {
    content: "";
    display: block;
  }

  .pagination-mobile {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  .pagination-mobile__controls {
    display: flex;
    gap: 0.5rem;
  }

  .pagination-mobile__stats {
    text-align: right;
    font-size: 0.8rem;
    color: #b5b5b5;
    line-height: 1.2;
  }

  .pagination-mobile__stats strong {
    display: block;
    font-size: 1rem;
    color: #fff;
  }

.video-show-dark .container {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .video-show-dark .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.video-show-dark .col-lg-8 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

  .video-show-dark .ratio {
    border-radius: 0 !important;
  }
}

/* ---------- insights stack on video show ---------- */
.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.insight-card {
  background: #131313;
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 1.5rem;
  color: #f7f7f7;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.insight-card--muted canvas {
  opacity: 0.35;
}

.insight-label {
  /* text-transform: uppercase; */
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #b5b5b5;
}

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.5rem;
}

.insight-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insight-score {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.insight-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.pagination .page-item.disabled .page-link {
  color: #888 !important;              /* gray text for disabled links */
  background-color: #f9f9f9 !important;
  border-color: #ccc !important;
}

/* optional: reduce overall vertical spacing around pagination containers */
.container .pagination {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}




pre {
  font-family: monospace;
  background: #111;
  color: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}


/* gentle blink/pulse */
@keyframes glow {
  0%,100% { text-shadow: none; }
  50%     { text-shadow: 0 0 20px currentColor; }
}
.week-blink { animation: glow 1.5s ease-in-out infinite; }


/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .week-blink { animation: none; }
}


.today-date {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
  font-weight: 400;
}


.video-show-dark {
  background-color: #000;
  color: #ccc;
  min-height: 100vh;
}

#feedheat.feedheat-bar {
  position: sticky;
  top: 56px; /* sit just below the main navbar */
  z-index: 1000; /* below dropdowns */
}

/* ensure dropdown menus float above sticky feedheat bar */
.dropdown-menu {
  z-index: 1100;
}

.video-show-dark .card {
  background-color: #111;
}

.video-show-dark h2 {
  color: #f1f1f1;
}

.video-show-dark .text-muted {
  color: #888 !important;
}

.video-show-dark a.btn-outline-light {
  border-color: #666;
  color: #eee;
}

.video-show-dark a.btn-outline-light:hover {
  background-color: #eee;
  color: #000;
}

.video-show-dark .border-top,
.video-show-dark .border-bottom {
  border-color: #333 !important;
}

.watchlist-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 44px;
  border-radius: 16px;
  padding: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #f8d047;
  border-color: rgba(255, 193, 7, 0.4);
  text-transform: lowercase;
}

.watchlist-star {
  color: #f8d047;
  font-size: 1.1rem;
  width: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 2px;
}

.videos-show .watchlist-toggle-btn [data-watchlist-icon] {
  width: 1.6rem;
}

.watchlist-toggle-btn:hover,
.watchlist-toggle-btn.is-active {
  background: #ffc107;
  color: #111;
  border-color: transparent;
}

.watchlist-toggle-btn.is-active .watchlist-star,
.watchlist-toggle-btn:hover .watchlist-star {
  color: #111;
}

.watchlist-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  z-index: 5;
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(255, 193, 7, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  position: relative;
}

.watchlist-icon-btn .watchlist-star {
  font-size: 1.2rem;
  transform: translateY(-1px);
  color: #ffc107;
}

.watchlist-icon-btn .watchlist-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #ffc107;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.watchlist-icon-btn:hover .watchlist-tooltip {
  opacity: 1;
}

.watchlist-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1200;
  text-transform: lowercase;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.watchlist-fab.is-pulsing {
  animation: watchlistBlink 0.9s ease-in-out 1;
}

@keyframes watchlistBlink {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
  16% { transform: scale(1.58); box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4); }
  33% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
  50% { transform: scale(1.58); box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4); }
  /* 66% { transform: scale(1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
  83% { transform: scale(1.58); box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4); } */
}

@media (max-width: 575px) {
  .watchlist-fab {
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    justify-content: center;
  }
}

.watchlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.watchlist-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.watchlist-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: min(720px, 100%);
  max-height: 80vh;
  background: #111;
  color: #eee;
  border-radius: 18px 18px 0 0;
  padding: 1.5rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.65);
  z-index: 1199;
  transition: transform 0.25s ease;
  overflow: hidden;
}

.watchlist-panel.is-open {
  transform: translate(-50%, 0);
}

.watchlist-panel__body {
  margin-top: 1.5rem;
  max-height: calc(80vh - 5rem);
  overflow-y: auto;
  padding-right: 0.5rem;
  padding-bottom: 2.5rem;
}

.watchlist-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.watchlist-card {
  background: #181818;
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid #222;
}

.watchlist-card__thumb img {
  width: 150px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #222;
}

.watchlist-card__title {
  color: #fafafa;
}

.watchlist-card__title:hover {
  color: #ffc107;
}

.watchlist-card__actions .btn {
  text-transform: lowercase;
}


.mute-overlay {
  cursor: pointer;
  transition: opacity 0.4s ease;
  z-index: 5; /* ensures it sits above iframe */
}

.mute-overlay .overlay-content {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: #fff;
}

.mute-overlay:hover .overlay-content {
  background-color: rgba(255, 255, 255, 0.1);
}














.wordcloud-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.wordcloud-bg .word {
  position: absolute;
  font-weight: 700;
  white-space: nowrap;
  text-transform: lowercase;
  color: rgba(168, 161, 161, 0.266);
  opacity: 0; /* ✅ start fully transparent */
  transform: translateY(0);
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 0.5; transform: scale(1); }
}

@keyframes fallDown {
  0%   { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(var(--fallDistance)); opacity: 0; }
}

.page-content {
  position: relative;
  z-index: 10;
  padding-bottom: 6rem;
}

.page-content > .container {
  max-width: 1200px;
}
.related-video-card {
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.related-video-card:hover {
  background: #222;
  transform: translateY(-2px);
  border-color: #444;
}

.related-sidebar::-webkit-scrollbar {
  width: 6px;
}

.related-sidebar::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.related-sidebar::-webkit-scrollbar-thumb:hover {
  background: #666;
}





/* AUTHOR BG ON SHOW */

.floating-words-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.floating-word {
  position: absolute;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans, Arial);
  white-space: nowrap;
}

/* sizes + positions + unique animations */
.fw0 { font-size: 3rem;   top: 20%; left: 3%; animation: floatCW 11s linear infinite; }
.fw1 { font-size: 2.8rem; top: 65%; left: 75%; animation: floatCCW 11s linear infinite; }
.fw2 { font-size: 2.4rem; top: 40%; left: 63%; animation: floatCW 11s linear infinite; }
.fw3 { font-size: 2rem;   top: 80%; left: 15%; animation: floatCCW 11s linear infinite; }
.fw4 { font-size: 1.9rem; top: 30%; left: 85%; animation: floatCW 11s linear infinite; }
.fw5 { font-size: 1.7rem; top: 55%; left: 40%; animation: floatCCW 11s linear infinite; }
.fw6 { font-size: 1.5rem; top: 95%; left: 85%; animation: floatCW 11s linear infinite; }

/* Clockwise rotation + drift + fade in/out */
@keyframes floatCW {
  0% {
    opacity: 0;
    transform: translateY(40px) translateX(0px) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-300px) translateX(50px) rotate(360deg);
  }
}

/* Counter-clockwise rotation + reverse drift + fade in/out */
@keyframes floatCCW {
  0% {
    opacity: 0;
    transform: translateY(40px) translateX(0px) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-300px) translateX(-50px) rotate(-360deg);
  }
}




/* FORCE CARDS DARK — INDEX & TOPICS */
body.videos-index .video-card,
body.topics-show .video-card {
  background: #0b0b0b !important;
  border: 1px solid #151515 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55) !important;
}

/* card body background too */
body.videos-index .video-card .card-body,
body.topics-show .video-card .card-body {
  background: #0b0b0b !important;
}

/* title */
body.videos-index .video-card .card-title,
body.topics-show .video-card .card-title {
  color: #f5f5f5 !important;
}

/* author */
body.videos-index .video-card .author,
body.topics-show .video-card .author {
  color: #c6c6c6 !important;
}

/* play overlay darker */
body.videos-index .video-card .video-overlay,
body.topics-show .video-card .video-overlay {
  background: rgba(0,0,0,0.5) !important;
}

/* badges */
body.videos-index .video-card .badge,
body.topics-show .video-card .badge {
  background: #111 !important;
  color: #eee !important;
  border: 1px solid #222 !important;
}

/* "views" gradient badge override */
body.videos-index .video-card .bg-gradient-views,
body.topics-show .video-card .bg-gradient-views {
  background: linear-gradient(135deg, #111, #1c1c1c) !important;
  color: #eee !important;
  box-shadow: inset 0 0 8px rgba(255,255,255,0.05) !important;
}

/* button */
body.videos-index .video-card .btn-gradient-primary,
body.topics-show .video-card .btn-gradient-primary {
  background: linear-gradient(90deg, #ff2244, #cc0011) !important;
  color: #fff !important;
}









/* 🔥 Homepage (videos#index) dark background */
body.videos-index {
  background-color: #323131 !important;   /* deep dark gray */
  color: #ddd;
}

/* make content contrast stronger */
body.videos-index .container {
  background: transparent !important;
}

/* optional: tone down floating words */
body.videos-index .floating-words-container {
  opacity: 0.08 !important;
}
.api-docs-dark {
  background: radial-gradient(circle at top, #121212, #050505 70%);
  min-height: 100vh;
}

.api-docs-card {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  color: #e4e4e4;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.api-docs-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.api-docs-card pre {
  background: rgba(0, 0, 0, 0.6);
  color: #16f0ff;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.api-docs-card ul {
  padding-left: 1.2rem;
}

.api-docs-card code {
  color: #ffb347;
}

.api-stat {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.api-stat .label {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #9b9b9b;
  margin-bottom: 0.25rem;
}

.gewgool-footer {
  background: linear-gradient(180deg, #080808 0%, #020202 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: #dcdcdc;
  font-size: 0.95rem;
}

.footer-stats-row .footer-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.footer-stat-card .stat-label {
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  color: #a9a9a9;
}

.footer-stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: lowercase;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
  animation: statPulse 2.4s ease-in-out infinite;
}

.pulse-blue { background: rgba(22, 133, 255, 0.35); }
.pulse-green { background: rgba(0, 173, 94, 0.35); }
.pulse-amber { background: rgba(255, 166, 0, 0.35); }

.footer-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(12, 12, 12, 0.85);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
}

.ticker-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 198, 82, 0.25), transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}

.ticker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: #f7c95f;
  text-transform: lowercase;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f7c95f;
  box-shadow: 0 0 10px rgba(247, 201, 95, 0.7);
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  animation: tickerSlide 10s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  min-width: 320px;
  padding: 0.35rem 0.25rem;
}

.ticker-thumb {
  position: relative;
  width: 72px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.ticker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticker-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #f4ff8f;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 0.7rem;
}

.ticker-meta {
  display: flex;
  flex-direction: column;
  max-width: 220px;
}

.ticker-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.ticker-author {
  font-size: 0.75rem;
  color: #a5a5a5;
}

.ticker-stats {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.ticker-views {
  font-size: 0.78rem;
  color: #f5b04c;
}

.ticker-trend {
  font-size: 0.7rem;
  color: #6bf9c6;
}

.author-link:hover {
  color: #ffc107 !important;
}

.footer-console-line {
  font-family: "IBM Plex Mono", "Space Mono", Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #8fffd2;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(143, 255, 210, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-transform: lowercase;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes statPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .stat-icon {
    animation: none;
  }
}
.api-link {
  position: relative;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.api-link::before,
.api-link::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.api-link::before {
  top: 8px;
  left: 0.2rem;
  border-left-color: #f8f9fa;
  border-top-color: #f8f9fa;
  transform: translateY(-4px);
}

.api-link::after {
  bottom: 8px;
  right: 0.2rem;
  border-right-color: #f8f9fa;
  border-bottom-color: #f8f9fa;
  transform: translateY(4px);
}

.api-link:hover,
.api-link.active {
  letter-spacing: 0.1em;
  color: #f3c969 !important;
}

.api-link:hover::before,
.api-link:hover::after,
.api-link.active::before,
.api-link.active::after {
  opacity: 1;
  border-color: #f3c969;
  transform: translateY(0);
}
