/* digitalsite — custom styles na doplnění Tailwindu */

:root {
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #6366f1;
  --color-accent: #10b981;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
}

/* Hero gradient pozadí */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(16, 185, 129, 0.10), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Decorative grid */
.bg-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Logo dot animation */
.logo-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  margin-left: 2px;
  vertical-align: 6px;
}

/* Card hover */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle button glow */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 8px 24px -8px rgba(79, 70, 229, 0.5);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  box-shadow: 0 12px 32px -8px rgba(79, 70, 229, 0.7);
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-menu {
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sekce zaměřená anchor offset (kvůli fixed headeru) */
section[id] {
  scroll-margin-top: 96px;
}

/* Badge animations */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Custom prose tweaks for product detail */
.prose-custom h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose-custom h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Focus styles pro a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
