/* Shared hero and feature styles for localized homepages */
.hero-banner {
  border-radius: 8px;
  text-align: center;
  max-width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Theme-specific logo adjustments */
:root:not(.dark) .logo-container .theme-logo img {
  filter: brightness(1);
}

:root.dark .logo-container .theme-logo img {
  filter: brightness(1);
}

.app-logo {
  height: 56px;
  margin-right: 1rem;
}

.tagline {
  margin-bottom: 2rem;
}

.tagline p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.store-badge {
  border-radius: 0 !important;
  height: 48px;
  transition: transform 0.2s ease;
}

.store-link:hover .store-badge {
  transform: scale(1.05);
}

.promo-banner {
  margin: 2rem auto;
  width: 80%;
  max-width: 1200px;
}

.promo-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.promo-banner a:hover .promo-image {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .promo-banner {
    width: 100%;
  }
}

/* App Gallery */
.app-gallery {
  margin: 2rem 0 3rem 0;
  width: 100%;
  position: relative;
}

.gallery-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hide scrollbar on desktop */
.gallery-container::-webkit-scrollbar {
  height: 0px;
  background: transparent;
}

/* Arrow buttons - positioned over images */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #545454;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.gallery-arrow-left {
  left: -20px;
}

.gallery-arrow-right {
  right: -20px;
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 
    0 12px 40px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 4px 16px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-arrow svg {
  transition: transform 0.2s ease;
}

.gallery-arrow:hover svg {
  transform: scale(1.1);
}

.gallery-image {
  flex: 0 0 auto;
  width: 260px;
  height: 560px;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .gallery-arrow {
    display: none;
  }

  .gallery-container {
    gap: 0.75rem;
    padding: 0.75rem 0;
    max-width: 100%;
  }

  .gallery-container::-webkit-scrollbar {
    height: 4px;
    background: var(--vp-c-bg-soft);
  }

  .gallery-container::-webkit-scrollbar-track {
    background: var(--vp-c-bg-soft);
    border-radius: 2px;
  }

  .gallery-container::-webkit-scrollbar-thumb {
    background: var(--vp-c-brand-1);
    border-radius: 2px;
  }

  .gallery-image {
    width: 220px;
    height: 480px;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    width: 180px;
    height: 390px;
  }

  .gallery-container {
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
}

.dark .gallery-arrow {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.dark .gallery-arrow:hover {
  background-color: var(--vp-c-bg-soft);
  border-color: var(--vp-c-border);
  opacity: 1;
}

/* Badges Section */
.badges-section {
  text-align: center;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}

.badges-section a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.badges-section a:hover {
  transform: scale(1.05);
}

.badges-section img {
  border-radius: 8px;
}

/* Feature Showcase */
.feature-showcase {
  margin: 2rem auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-container {
  background-color: var(--vp-c-bg-soft);
  border-radius: 16px;
  display: flex;
  overflow: hidden;
}

.feature-container.reversed {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content {
  flex: 1;
  padding: 2rem;
  color: var(--vp-c-text-1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--vp-c-text-1);
  margin: 1rem 0 !important;
  border-top: none !important;
}

.feature-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--vp-c-text-2);
  margin: 0;
}

@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
  }

  .app-logo {
    margin-right: 0;
    margin-bottom: 1rem;
    height: 40px;
  }

  .tagline p {
    font-size: 1.4rem;
  }

  .download-buttons {
    align-items: center;
    gap: 1rem;
  }

  .feature-container,
  .feature-container.reversed {
    flex-direction: column;
  }

  .feature-image {
    min-height: 250px;
  }

  .feature-content {
    padding: 1rem;
    text-align: center;
  }

  .feature-content h2 {
    font-size: 1.5rem;
    margin-top: 0 !important;
  }

  .feature-content p {
    font-size: 1rem;
  }

  .highlight-item {
    max-width: 100%;
  }
}

.feature-mockup {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  padding: 1.5rem;
}

/* Bento Grid Styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
  max-width: 100%;
}

.bento-card {
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;
  overflow: visible;
}

.bento-card.large {
  grid-row: span 2;
  grid-column: span 1;
  min-height: 375px;
  padding: 1.5rem 1.25rem;
  justify-content: center;
}

.bento-card.wide {
  grid-column: span 2;
  min-height: 180px;
  padding: 1.25rem;
}

.bento-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1.5;
  flex-shrink: 0;
}

.bento-card h3 {
  color: var(--vp-c-text-1);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  line-height: 1.5;
  flex-shrink: 0;
}

.bento-card p {
  color: var(--vp-c-text-2);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.bento-card.large .bento-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.bento-card.large h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.bento-card.large p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.bento-card.wide .bento-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.bento-card.wide h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.bento-card.wide p {
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .bento-card.large,
  .bento-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
    padding: 1rem;
  }

  .bento-card {
    padding: 1rem;
    height: auto;
    min-height: 100px;
  }

  .bento-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
  }

  .bento-card p,
  .bento-card.large p,
  .bento-card.wide p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* Testimonials Slider Styling */
.testimonials-section {
  margin: 1rem 0;
}

.testimonials-gallery {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 280px;
  background: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

.testimonial-rating {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.1rem 0 !important;
  color: var(--vp-c-text-1);
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--vp-c-text-2);
  margin: 0 !important;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--vp-c-text-2);
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 250px;
  }

  .testimonials-gallery .gallery-arrow {
    display: none;
  }
}

/* Trust Element */
.trust-element {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-badge {
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.trust-badge:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .trust-badge {
    max-height: 56px !important;
  }
}
