/* TeraDownloader Custom Enhancements & Animations */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-glow: rgba(0, 102, 255, 0.25);
  --accent-cyan: #00d2ff;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, kbd, samp, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0066ff 0%, #00a3ff 50%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, #0066ff 0%, #0088ff 50%, #00b4d8 100%);
}

.gradient-card-border {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 210, 255, 0.05));
  border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dark .glass-panel {
  background: rgba(17, 24, 39, 0.85);
}

/* Glow effects */
.glow-primary {
  box-shadow: 0 10px 30px -5px var(--primary-glow);
}

.glow-hover:hover {
  box-shadow: 0 15px 35px -5px rgba(0, 102, 255, 0.35);
  transform: translateY(-2px);
}

/* AdSense Ad Container placeholder styling compliant with Google policies */
.ad-slot-wrapper {
  margin: 1.5rem auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.ad-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.ad-slot-placeholder {
  min-height: 90px;
  background: repeating-linear-gradient(
    45deg,
    rgba(241, 245, 249, 0.6),
    rgba(241, 245, 249, 0.6) 10px,
    rgba(248, 250, 252, 0.9) 10px,
    rgba(248, 250, 252, 0.9) 20px
  );
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem;
}

.dark .ad-slot-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(30, 41, 59, 0.6),
    rgba(30, 41, 59, 0.6) 10px,
    rgba(15, 23, 42, 0.9) 10px,
    rgba(15, 23, 42, 0.9) 20px
  );
  border-color: #334155;
  color: #64748b;
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.01); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
