/*
 * 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;
}

/* 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;
  transition: opacity 0.3s ease;
}
.video-card:hover .video-overlay {
  opacity: 1;
}

/* 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 color + size override ---------- */
.pagination {
  font-size: 0.85rem;                  /* smaller text overall */
}

.pagination .page-link {
  color: #000 !important;              /* text black */
  border-color: #000 !important;       /* border black */
  background-color: #fff !important;   /* background white */
  padding: 0.25rem 0.6rem !important;  /* tighter padding (default ~0.375 0.75) */
  margin: 0 2px !important;            /* closer spacing between links */
  border-radius: 4px !important;       /* slightly rounded corners */
  line-height: 1.2 !important;         /* vertically tighter */
}

.pagination .page-link:hover {
  color: #fff !important;              /* white text */
  background-color: #000 !important;   /* black background on hover */
  border-color: #000 !important;
}

.pagination .page-item.active .page-link {
  color: #fff !important;              /* white text for active page */
  background-color: #000 !important;   /* black background */
  border-color: #000 !important;
}

.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;
}

.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;
}


.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;
}


.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 HOMEPAGE CARDS DARK — FINAL OVERRIDE */
body.videos-index .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 {
  background: #0b0b0b !important;
}

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

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

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

/* badges */
body.videos-index .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 {
  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 {
  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;
}
