/* Global Styles */
body {
  font-family: 'Outfit', sans-serif;
  background-color: #0f172a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Utilities */
.glass-card {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s;
}

.glass-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Rotating border for the search bar wrapper */
.glass-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 42px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0.5;
}

.group:focus-within .glass-wrapper::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0.1) 60%, rgba(255,255,255,0.3) 100%);
}

/* Cinematic Background Shift for Dashboard */
.cinematic-gradient {
  background: linear-gradient(120deg, #020617 0%, #080f26 25%, #1e1b4b 50%, #0f172a 75%, #020617 100%);
  background-size: 400% 400%;
  animation: cinematicShift 40s ease-in-out infinite;
  background-attachment: fixed;
}

@keyframes cinematicShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.7; transform: scale(1.1) translate(-20px, 30px); }
}

.animate-breathe { animation: breathe 25s ease-in-out infinite; }
.animate-breathe-delayed { animation: breathe 30s ease-in-out infinite; animation-delay: 12s; }

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================
   SCI-FI / LUXURY COMMAND CENTER ANIMATIONS
   ========================================= */

/* 1. Radar Ring Spin */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}
.animate-spin-slow-reverse {
  animation: spin-slow 18s linear infinite reverse;
}

/* 2. Glass Scanner Sweep */
@keyframes scanner-sweep {
  0% { transform: translateX(-150%) skewX(-15deg); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateX(250%) skewX(-15deg); opacity: 0; }
  100% { transform: translateX(250%) skewX(-15deg); opacity: 0; }
}
.glass-scanner {
  position: relative;
  overflow: hidden;
}
.glass-scanner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  animation: scanner-sweep 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}


.animate-float {
  animation: float 8s ease-in-out infinite;
}

@keyframes float-delayed {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-30px, 50px);
  }

  66% {
    transform: translate(20px, -20px);
  }
}

.animate-float-delayed {
  animation: float-delayed 18s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

@keyframes shimmer {
  0% {
    transform: translateX(-200%);
  }

  100% {
    transform: translateX(200%);
  }
}

.animate-shimmer {
  animation: shimmer 3s infinite;
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes pulse-fast {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.75;
  }

  52% {
    opacity: 0.85;
  }

  54% {
    opacity: 0.75;
  }
}

.animate-pulse-fast {
  animation: pulse-fast 4s ease-in-out infinite;
}

@keyframes wind-fast {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-wind-fast {
  animation: wind-fast 3s linear infinite;
}

@keyframes wind-slow {
  0% {
    transform: translateX(-50%);
    opacity: 0;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    transform: translateX(50%);
    opacity: 0;
  }
}

.animate-wind-slow {
  animation: wind-slow 7s linear infinite;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.animate-shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Icon Animations */
@keyframes sun-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-sun-spin {
  animation: sun-spin 20s linear infinite;
}

@keyframes cloud-drift {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

.animate-cloud-drift {
  animation: cloud-drift 6s ease-in-out infinite;
}

@keyframes cloud-drift-reverse {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-6px);
  }
}

.animate-cloud-drift-reverse {
  animation: cloud-drift-reverse 7s ease-in-out infinite;
}

@keyframes raindrop {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  90% {
    opacity: 1;
    transform: translateY(12px);
  }

  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

.animate-raindrop {
  animation: raindrop 1.5s linear infinite;
}

@keyframes snow-float {
  0% {
    transform: translateY(-5px) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(15px) translateX(5px) rotate(180deg);
    opacity: 0;
  }
}

.animate-snow-float {
  animation: snow-float 3.5s linear infinite;
}

@keyframes lightning {

  0%,
  90%,
  100% {
    opacity: 0;
  }

  92% {
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 8px gold);
  }

  94% {
    opacity: 0;
  }

  96% {
    opacity: 1;
    filter: brightness(2);
  }
}

.animate-lightning {
  animation: lightning 5s infinite;
}

/* =========================================
   ANIMASYONLAR
   ========================================= */
@keyframes sun-pulse-premium {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(1.1);
  }
}

@keyframes float-glass-premium {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes rain-fall {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10px) rotate(15deg);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(40px) rotate(15deg);
    opacity: 0;
  }
}

@keyframes snow-fall-premium {
  0% {
    transform: translateY(-10px) translateX(-5px) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(40px) translateX(10px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes snow-fall-premium {
  0% {
    transform: translateY(-10px) translateX(-5px) rotate(0deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(40px) translateX(10px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes thunder-flash {

  0%,
  90%,
  100% {
    opacity: 0;
  }

  92% {
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 8px gold);
  }

  94% {
    opacity: 0;
  }

  96% {
    opacity: 1;
    filter: brightness(2);
  }
}

/* =========================================
   CAM EFEKTLİ (GLASSMORPHISM) İKONLAR
   ========================================= */
/* Sizing Utilities */
.glass-icon-lg {
  width: 150px;
  height: 150px;
}

.glass-icon-md {
  width: 80px;
  height: 80px;
}

.glass-icon-sm {
  width: 60px;
  height: 60px;
}

.glass-icon-xs {
  width: 40px;
  height: 40px;
}

.glass-icon-container {
  position: relative;
  width: 100%;
  /* Default to 100% or controlled by size class */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* --- Güneş --- */
.glass-sun {
  position: absolute;
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffbeb, #fcd34d 40%, #f59e0b 80%);
  box-shadow:
    0 0 15px rgba(251, 191, 36, 0.8),
    0 0 30px rgba(251, 191, 36, 0.6),
    0 0 60px rgba(251, 191, 36, 0.4),
    inset -2px -2px 10px rgba(180, 83, 9, 0.5),
    inset 2px 2px 10px rgba(255, 255, 255, 0.5);
  z-index: 1;
  top: 27.5%;
  left: 27.5%;
}

.glass-sun.behind {
  top: 15%;
  /* Moved down slightly */
  left: 60%;
  /* Moved to right */
  width: 35%;
  height: 35%;
}

.glass-sun::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.sun-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3), transparent 70%);
  z-index: -1;
  animation: sun-pulse-premium 5s ease-in-out infinite;
}

/* --- Ay --- */
.glass-moon {
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8fafc, #94a3b8 90%);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset -10px -10px 20px rgba(15, 23, 42, 0.5),
    inset 5px 5px 10px rgba(255, 255, 255, 0.5);
  z-index: 1;
  top: 29%;
  left: 29%;
}

.glass-moon.behind {
  top: 15%;
  left: 60%;
  width: 35%;
  height: 35%;
}

.glass-moon .crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.1), transparent);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.glass-moon .crater.c1 {
  top: 35%;
  left: 55%;
  width: 25%;
  height: 25%;
}

.glass-moon .crater.c2 {
  top: 60%;
  left: 25%;
  width: 15%;
  height: 15%;
}

/* --- Bulut --- */
.glass-cloud-container {
  position: relative;
  width: 70%;
  height: 45%;
  z-index: 10;
}

.glass-cloud-part {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.glass-cloud-part.main {
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 100%;
  z-index: 2;
}

.glass-cloud-part.left {
  bottom: 0;
  left: 0;
  width: 50%;
  height: 80%;
  z-index: 1;
}

.glass-cloud-part.right {
  bottom: 0;
  right: 0;
  width: 55%;
  height: 85%;
  z-index: 1;
}

/* --- Yağış Efektleri --- */
.rain-container,
.snow-container,
.lightning-container,
.mist-container {
  position: absolute;
  bottom: -25%;
  width: 100%;
  height: 60%;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Yağmur */
.rain-drop {
  width: 2px;
  height: 12px;
  background: linear-gradient(15deg, transparent, #60a5fa, #93c5fd);
  border-radius: 20px;
  opacity: 0;
  box-shadow: 0 0 3px rgba(96, 165, 250, 0.6);
  transform: rotate(15deg);
  /* Slanted rain */
}

/* Larger rain for large icons */
.glass-icon-lg .rain-drop {
  width: 6px;
  height: 35px;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.9);
}

.rain-drop.d1 {
  animation: rain-fall 0.9s ease-in infinite;
  animation-delay: 0s;
}

.rain-drop.d2 {
  animation: rain-fall 0.7s ease-in infinite;
  animation-delay: 0.3s;
  height: 12px;
}

.rain-drop.d3 {
  animation: rain-fall 1.1s ease-in infinite;
  animation-delay: 0.5s;
  height: 18px;
}

/* Kar */
/* Kar */
/* Kar */
.snow-flake {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #fff, transparent);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
}

/* Larger snow for large icons */
.glass-icon-lg .snow-flake {
  width: 10px;
  height: 10px;
}

.snow-flake.f1 {
  animation: snow-fall-premium 3s linear infinite;
  animation-delay: 0s;
}

.snow-flake.f2 {
  animation: snow-fall-premium 4s linear infinite;
  animation-delay: 1.5s;
}

.snow-flake.f3 {
  animation: snow-fall-premium 3.5s linear infinite;
  animation-delay: 0.8s;
}

/* Şimşek */
.lightning-container {
  top: 35%;
  /* Center vertically relative to icon container */
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  bottom: auto;
  /* Reset bottom */
  pointer-events: none;
}

.lightning-bolt {
  width: 40px;
  height: 60px;
  color: #fcd34d;
  filter: drop-shadow(0 0 20px #fcd34d);
  opacity: 0;
  z-index: 100;
  animation: thunder-flash 4s infinite;
}

/* Resize lightning for small icons */
.glass-icon-sm .lightning-bolt,
.glass-icon-xs .lightning-bolt {
  width: 15px;
  height: 24px;
  filter: drop-shadow(0 0 5px #fcd34d);
}

.glass-icon-lg .lightning-bolt {
  width: 50px;
  height: 80px;
}

/* Sis */
.mist-container {
  flex-direction: column;
  gap: 4px;
  bottom: -10%;
  align-items: center;
}

.mist-line {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  filter: blur(2px);
}

.mist-line.m1 {
  width: 60%;
  animation: cloud-drift 6s infinite;
}

.mist-line.m2 {
  width: 80%;
  animation: cloud-drift-reverse 7s infinite;
}

.mist-line.m3 {
  width: 50%;
  animation: cloud-drift 8s infinite;
}

/* Scoped Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* Keyboard access and reduced motion preferences. */
:focus-visible { outline: 2px solid #bae6fd; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
.day-rain-scale { width:100%; min-width:0; display:flex; flex-direction:column; align-items:center; gap:5px; color:#b9dce9; }
.day-rain-track { position:relative; width:26px; height:40px; border-radius:6px; overflow:hidden; border:1px solid #a6d6e52b; background:repeating-linear-gradient(to top,#9ccae60b 0 9px,#c0e3ef25 9px 10px); }
.day-rain-track i { position:absolute; bottom:0; left:0; width:100%; background:linear-gradient(to top,#458cb9,#a0e2e1); border-radius:4px 4px 0 0; }
.day-rain-track[data-missing=true] { border-style:dashed; background:none; opacity:.5; }
.day-rain-scale strong { font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap; }
.day-rain-scale small { font-size:9px; font-weight:400; }
.day-rain-scale > span { font-size:8px; color:#a0b9cd; white-space:nowrap; }
.day-rain-legend { display:flex; justify-content:space-between; gap:6px; flex-wrap:wrap; color:#abc4d6; font-size:10px; line-height:1.7; margin:0 0 10px; }
.day-rain-legend span { color:#8099b2; }
