@tailwind base;
@tailwind components;
@tailwind utilities;

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

/* Custom animation for gleaming text effect */
@keyframes gleam {
  0% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
      0 0 18px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }
}

.animate-gleam {
  animation: gleam 2s ease-in-out infinite;
}

/* Responsive Typography Utility Classes */
@layer components {
  .text-display-all-sizes {
    @apply md:text-display-desktop sm:text-display-tablet text-display-mobile;
  }

  .text-h1-all-sizes {
    @apply md:text-h1-desktop sm:text-h1-tablet text-h1-mobile;
  }

  .text-h2-all-sizes {
    @apply md:text-h2-desktop sm:text-h2-tablet text-h2-mobile;
  }

  .text-h3-all-sizes {
    @apply md:text-h3-desktop sm:text-h3-tablet text-h3-mobile;
  }

  .text-h4-all-sizes {
    @apply md:text-h4-desktop sm:text-h4-tablet text-h4-mobile;
  }

  .text-h5-all-sizes {
    @apply md:text-h5-desktop sm:text-h5-tablet text-h5-mobile;
  }

  .text-body-all-sizes {
    @apply md:text-body-desktop sm:text-body-tablet text-body-mobile;
  }

  .text-small-all-sizes {
    @apply md:text-small-desktop sm:text-small-tablet text-small-mobile;
  }
}

/* Carousel Styles */
.carousel {
  @apply relative overflow-visible w-[445px] h-[445px] sm:w-[560px] sm:h-[560px] md:w-[726px] md:h-[726px];
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background-color 0.3s;
  z-index: 10;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-button.prev {
  left: 20px;
  transform: translate(20px, -50%);
}

.carousel-button.next {
  right: 40px;
  transform: translateY(-50%);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  z-index: 10;
  width: 100%;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background: #000;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  font-family: "Poppins", sans-serif;
  @apply text-small-all-sizes;
  font-weight: 500;
  cursor: pointer;
  z-index: 100;
}

.language-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.language-switcher-toggle:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.language-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 120px;
  width: auto;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-switcher.open .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  transition: background-color 0.2s ease;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

.language-switcher.open .chevron-icon {
  transform: rotate(180deg);
}
