/* ===================================================================
   YANKEE HIT BOT - SCREWFAST CUSTOM ENHANCEMENTS
   Tailwind v4 / Preline UI Add-ons
   1. Live Event Marquee Ticker
   2. Floating Social Proof Toasts
   3. HTML5 Hit Target Mini-Game & NPC Clapping System
   4. Live SERP & Bezier Physics
   5. Hit & Fractional Calculator
   =================================================================== */

/* ==========================================================================
   1. LIVE MARQUEE TICKER (Sürekli Akan Canlı Şerit)
   ========================================================================== */
.live-ticker-band {
  background: linear-gradient(90deg, #18181b, #27272a, #18181b);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 40;
}

.live-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f59e0b;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-left: 1rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.ticker-track {
  display: inline-flex;
  animation: tickerScroll 38s linear infinite;
  gap: 2.5rem;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #e4e4e7;
  font-weight: 500;
}

.ticker-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   2. FLOATING ACTIVITY TOAST NOTIFICATIONS (Sol Alttan Giren Canlı Müşteriler)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  pointer-events: none;
}

.activity-toast {
  pointer-events: auto;
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.toast-desc {
  font-size: 0.75rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.toast-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: #71717a;
  margin-top: 0.35rem;
  font-family: monospace;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  width: 100%;
  animation: toastTimer 5s linear forwards;
}

@keyframes toastTimer {
  from { width: 100%; }
  to { width: 0%; }
}

.toast-close {
  background: none;
  border: none;
  color: #71717a;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   3. INTERACTIVE HTML5 HIT GAME (12'den Vuran Ok & NPC Alkış Tufanı)
   ========================================================================== */
.hit-game-section {
  background: radial-gradient(circle at 50% 30%, #1e1e24 0%, #111115 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  margin: 3.5rem auto;
  max-width: 68rem;
}

.hit-game-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem auto;
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 380px;
  margin: 0 auto;
  background: #09090b;
  border: 2px solid #27272a;
  border-radius: 1rem;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

#hitGameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Instructions Overlay */
.game-instruction-overlay {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.35rem 1.25rem;
  font-size: 0.8125rem;
  color: #f4f4f5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* Sound Toggle */
.game-sound-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(39, 39, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}

.game-sound-toggle:hover {
  background: #f59e0b;
  color: #000;
}

/* NPC CHEERING CROWD (Alkış Tufanı Koparan NPC Karakterler) */
.npc-cheer-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1rem;
  z-index: 15;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.npc-cheer-stage.active {
  opacity: 1;
  transform: translateY(0);
}

.npc-group-left, .npc-group-right {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.npc-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: npcJump 0.4s ease infinite alternate;
}

.npc-character:nth-child(2) { animation-delay: 0.1s; }
.npc-character:nth-child(3) { animation-delay: 0.2s; }
.npc-character:nth-child(4) { animation-delay: 0.15s; }

@keyframes npcJump {
  0% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(-18px) scaleY(1.05); }
}

.npc-bubble {
  background: #ffffff;
  color: #09090b;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  margin-bottom: 0.25rem;
  position: relative;
  animation: bubblePop 0.3s ease-out;
}

.npc-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

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

.npc-avatar-box {
  width: 52px;
  height: 64px;
  background: #27272a;
  border: 2px solid #f59e0b;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.npc-head {
  font-size: 1.5rem;
  line-height: 1;
}

.npc-hands {
  font-size: 1rem;
  animation: clappingHands 0.2s ease-in-out infinite alternate;
}

@keyframes clappingHands {
  0% { transform: scale(0.9) rotate(-10deg); }
  100% { transform: scale(1.2) rotate(10deg); }
}

/* Victory Result Card */
.game-victory-banner {
  display: none;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid #10b981;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
  animation: victoryIn 0.3s ease-out;
}

.game-victory-banner.show {
  display: block;
}

@keyframes victoryIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Screen Shake Effect */
.screen-shake {
  animation: shakeCanvas 0.35s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeCanvas {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ==========================================================================
   4. CALCULATOR & SLIDER ADDITIONS FOR SCREWFAST
   ========================================================================== */
.screwfast-calc-box {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.dark .screwfast-calc-box {
  background: #18181b;
  border-color: #27272a;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.calc-chip-btn {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #3f3f46;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .calc-chip-btn {
  background: #27272a;
  border-color: #3f3f46;
  color: #d4d4d8;
}

.calc-chip-btn:hover {
  background: #e4e4e7;
  color: #09090b;
}

.dark .calc-chip-btn:hover {
  background: #3f3f46;
  color: #ffffff;
}

.calc-chip-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #000000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}



/* ==========================================================================
   BULLETPROOF LOGO SIZING
   ========================================================================== */
.brand-logo-container,
.nav-brand-logo {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

img[src*="yankee-logo"],
.brand-logo-img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}
