/* Flutter hero icon — aligned with text, retina-friendly */
.flutter-hero-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
  width: 20px;
  height: 20px;
}

/* ——— Example Ideas carousel ——— */
.examples-carousel-wrapper {
  position: relative;
  width: 100%;
}

.examples-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.examples-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.examples-carousel-track {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;
  width: max-content;
}

.examples-carousel-card {
  flex: 0 0 auto;
  width: min(340px, calc(100vw - 4rem));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.examples-carousel-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.examples-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.examples-carousel-arrow:hover:not(.is-disabled) {
  background: #f1f5f9;
}

.examples-carousel-arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.examples-carousel-arrow--left {
  left: -1rem;
}

.examples-carousel-arrow--right {
  right: -1rem;
}

@media (max-width: 768px) {
  .examples-carousel-arrow--left {
    left: 0.5rem;
  }
  .examples-carousel-arrow--right {
    right: 0.5rem;
  }
  .examples-carousel-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

.examples-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.examples-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.examples-carousel-dot:hover {
  background: #94a3b8;
}

.examples-carousel-dot.is-active {
  background: #3b82f6;
  transform: scale(1.2);
}

/* ——— Custom Scrollbar (Flutter AI Theme) ——— */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border: 2px solid #e2e8f0;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
}

::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #f1f5f9;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* ——— Toast notification ——— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(100px);
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: #1e293b;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}
