/* ═══════════════════════════════════════════════════
   sth-effects.css — Modern UI effects for sumava.eu
   Scroll reveal · Hover lift · CTA animations · Glass
   ═══════════════════════════════════════════════════ */

/* ─── SCROLL REVEAL ─── */
.sth-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sth-reveal.sth-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.sth-reveal-d1 { transition-delay: 0.1s; }
.sth-reveal-d2 { transition-delay: 0.2s; }
.sth-reveal-d3 { transition-delay: 0.3s; }
.sth-reveal-d4 { transition-delay: 0.4s; }

/* Slide from left/right variants */
.sth-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sth-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.sth-reveal-left.sth-visible,
.sth-reveal-right.sth-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-in variant */
.sth-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sth-reveal-scale.sth-visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── HOVER LIFT + GLOW ON CARDS ─── */
.elementor-widget-image-box .elementor-image-box-wrapper,
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-column .elementor-widget-wrap > .elementor-widget,
.sth-card,
article.post {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.elementor-widget-image-box .elementor-image-box-wrapper:hover,
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover,
.sth-card:hover,
article.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12),
              0 0 0 1px rgba(99, 102, 241, 0.06);
}

/* Subtle glow ring on hover */
.sth-card:hover::after,
.elementor-widget-image-box .elementor-image-box-wrapper:hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  z-index: -1;
  opacity: 1;
  transition: opacity 0.3s;
}

/* ─── CTA BUTTON MICROANIMATION ─── */
.elementor-button,
.sth-btn,
a.elementor-button-link {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.elementor-button::after,
.sth-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.elementor-button:hover::after,
.sth-btn:hover::after {
  transform: scaleX(1);
}

.elementor-button:hover,
.sth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.elementor-button:active,
.sth-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* ─── SMOOTH TRANSITIONS ON INTERACTIVE ─── */
a, button, input, textarea, select, .elementor-widget {
  transition: color 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, opacity 0.25s ease;
}

img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

a:hover img,
.elementor-widget:hover img {
  transform: scale(1.03);
}

/* ─── GLASS EFFECTS ENHANCEMENT ─── */
.sth-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sth-glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* ─── LINK HOVER UNDERLINE SLIDE ─── */
.entry-content a:not(.elementor-button):not([class*="wp-"]),
.sth-link {
  position: relative;
  text-decoration: none;
}

.entry-content a:not(.elementor-button):not([class*="wp-"])::after,
.sth-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.entry-content a:not(.elementor-button):not([class*="wp-"]):hover::after,
.sth-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── PULSE ANIMATION FOR NOTIFICATIONS/BADGES ─── */
@keyframes sth-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.sth-pulse {
  animation: sth-pulse 2s ease-in-out infinite;
}

/* ─── GRADIENT TEXT EFFECT ─── */
.sth-gradient-text {
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── RESPECT REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .sth-reveal, .sth-reveal-left, .sth-reveal-right, .sth-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════
   FIXES — 2026-04-06
   1. Fotogalerie pozadí: tmavá → světle zelená
   2. Webcam scroll: zpomalit na mobilu (iOS/Android)
   ═══════════════════════════════════════════════════ */

/* FIX 1: Fotogalerie Knížecí Pláně — světlejší pozadí */
.sth-galerie-bg {
  background: #e6f2e1 !important;
}
.sth-galerie-bg img {
  opacity: .08 !important;
  mix-blend-mode: multiply !important;
}
/* Title/text na světlém pozadí — tmavý text */
.sth-galerie .sth-section-title.on-dark,
.sth-galerie .on-dark {
  color: #17462F !important;
}

/* FIX 2: Webcam scroll — výrazně zpomalit (90s → 240s) */
.sth-cam-row.left .sth-cam-track {
  animation-duration: 240s !important;
}
.sth-cam-row.right .sth-cam-track {
  animation-duration: 240s !important;
}

/* GPU acceleration pro plynulý scroll na iOS/Android */
.sth-cam-track {
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Reduced motion preference — respektuje systémové nastavení */
@media (prefers-reduced-motion: reduce) {
  .sth-cam-row.left .sth-cam-track,
  .sth-cam-row.right .sth-cam-track {
    animation-duration: 480s !important;
  }
}

/* ═══════════════════════════════════════════════════
   FIX 3: Hamburger menu — redesign
   - Pravý horní roh, menší
   - Hezčí pozadí s glassmorphism
   - Menší plocha panelu
   ═══════════════════════════════════════════════════ */

/* Hamburger button — pravý horní roh, menší */
#sumava-hamburger {
  left: auto !important;
  right: 16px !important;
  top: 16px !important;
  transform: none !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(23, 70, 47, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}
#sumava-hamburger span {
  width: 18px !important;
  height: 2px !important;
}

/* Menu panel — menší, hezčí pozadí */
#sumava-mobile-menu {
  width: 220px !important;
  right: -220px !important;
  padding: 60px 20px 24px !important;
  background:
    linear-gradient(135deg, rgba(23, 70, 47, 0.92), rgba(16, 50, 32, 0.95)),
    var(--wpr-bg-535e68b3-374b-4cd1-a20a-c20c5514f9a3) center/cover !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3) !important;
}

/* Menu items — menší, s hezčím stylem */
#sumava-mobile-menu a {
  padding: 12px 16px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border-bottom: none !important;
  margin-bottom: 4px !important;
  transition: background 0.2s !important;
}
#sumava-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Close button (X) v menu panelu */
#sumava-mobile-menu::before {
  content: "✕";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
  z-index: 10;
}
#sumava-mobile-menu::before:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* FIX 4: Počasí pozadí — light zelená ladící k webu */
.sth-pocasi-bg {
  background: linear-gradient(135deg, #dce9d5 0%, #e2eed9 50%, #dce9d5 100%) !important;
}
.sth-pocasi-bg img {
  opacity: .06 !important;
  mix-blend-mode: multiply !important;
}
/* Texty v počasí sekci na tmavé barvy */
.sth-pocasi .sth-section-title.on-dark,
.sth-pocasi .on-dark,
.sth-pocasi-quad-label {
  color: #17462F !important;
  background: rgba(23, 70, 47, 0.08) !important;
}

/* Počasí karty — subtilnější border na světlém */
.sth-pocasi-quad {
  border-color: rgba(23, 70, 47, 0.12) !important;
  background: rgba(255, 255, 255, 0.5) !important;
}
.sth-pocasi-map {
  border-color: rgba(23, 70, 47, 0.12) !important;
}
