/* ============================================================
   COMPONENTS.CSS — ABI's Beauty Care & Academy
   Reusable UI Components: Buttons, Cards, Widgets
   ============================================================ */

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  z-index: 1;
  white-space: nowrap;
}

/* Shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transition: none;
  z-index: -1;
}

.btn:hover::before {
  animation: hoverSweep 0.6s ease forwards;
}

/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #3d8a47);
  color: var(--color-white);
  border: none;
  box-shadow: 0 4px 20px rgba(80, 166, 91, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(80, 166, 91, 0.45);
  background: linear-gradient(135deg, #5bb866, #4a9d54);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(80, 166, 91, 0.3);
}

/* Secondary Button */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(80, 166, 91, 0.3);
}

.btn--secondary:active {
  transform: translateY(0);
}


/* ================================================================
   FEATURE CARDS
   ================================================================ */

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Subtle floating animation with staggered delays */
.feature-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.feature-card:nth-child(2) { animation: float 6s ease-in-out 1s infinite; }
.feature-card:nth-child(3) { animation: float 6s ease-in-out 2s infinite; }
.feature-card:nth-child(4) { animation: float 6s ease-in-out 0.5s infinite; }
.feature-card:nth-child(5) { animation: float 6s ease-in-out 1.5s infinite; }
.feature-card:nth-child(6) { animation: float 6s ease-in-out 2.5s infinite; }

/* Top accent glow line */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: width 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow-hover);
  border-color: rgba(80, 166, 91, 0.4);
}

.feature-card:hover::after {
  width: 60%;
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  line-height: 1;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.3px;
}

.feature-card__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ================================================================
   SERVICE CARDS
   ================================================================ */

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient reveal on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(80, 166, 91, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow-hover);
  border-color: rgba(80, 166, 91, 0.5);
}

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
  display: block;
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  letter-spacing: 0.3px;
}


/* ================================================================
   ACADEMY CARDS
   ================================================================ */

.academy-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.academy-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-highlight), transparent);
  transition: width 0.4s ease;
}

.academy-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-glow-hover);
  border-color: rgba(80, 166, 91, 0.4);
}

.academy-card:hover::after {
  width: 70%;
}

.academy-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  line-height: 1;
}

.academy-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.3px;
}

.academy-card__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* ================================================================
   PLACEHOLDER IMAGES
   ================================================================ */

.placeholder-img {
  position: relative;
  background: #1a1a1a;
  border: 2px dashed rgba(80, 166, 91, 0.4);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-smooth);
  min-height: 200px;
}

/* Label from data attribute */
.placeholder-img::before {
  content: attr(data-label);
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 var(--space-md);
  z-index: 2;
}

/* CSS-only image/mountain icon */
.placeholder-img::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 4px;
  position: relative;
  background:
    linear-gradient(135deg, transparent 55%, rgba(80, 166, 91, 0.3) 55%, rgba(80, 166, 91, 0.3) 65%, transparent 65%),
    linear-gradient(160deg, transparent 40%, rgba(126, 217, 87, 0.2) 40%, rgba(126, 217, 87, 0.2) 50%, transparent 50%);
  opacity: 0.5;
  z-index: 2;
}

/* Shimmer overlay */
.placeholder-img .placeholder-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(80, 166, 91, 0.03) 45%,
    rgba(80, 166, 91, 0.06) 50%,
    rgba(80, 166, 91, 0.03) 55%,
    transparent 100%
  );
  animation: shimmer 3s linear infinite;
  z-index: 1;
}

.placeholder-img:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.placeholder-img:hover::before {
  color: var(--color-primary);
}

.placeholder-img:hover::after {
  opacity: 0.8;
}


/* ================================================================
   GALLERY ITEMS
   ================================================================ */

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-hover);
  z-index: 3;
}

.gallery-item:hover .placeholder-img {
  border-color: var(--color-highlight);
}

.gallery-item .placeholder-img {
  width: 100%;
  min-height: 0;
  border-radius: 0;
}


/* ================================================================
   SOCIAL ITEMS
   ================================================================ */

.social-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.social-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(80, 166, 91, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.social-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-hover);
}

.social-item:hover::after {
  opacity: 1;
}

.social-item .placeholder-img {
  width: 100%;
  min-height: 0;
  border-radius: 0;
}


/* ================================================================
   CONTACT CARD
   ================================================================ */

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.6;
}

.contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.contact-card__item:last-child {
  border-bottom: none;
}

.contact-card__item:hover {
  padding-left: var(--space-sm);
}

.contact-card__item:hover .contact-card__icon {
  background: rgba(80, 166, 91, 0.2);
  box-shadow: 0 0 20px rgba(80, 166, 91, 0.15);
}

.contact-card__item:hover h4,
.contact-card__item:hover a {
  color: var(--color-primary);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 166, 91, 0.1);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contact-card__item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.contact-card__item p,
.contact-card__item a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}


/* ================================================================
   MAP PLACEHOLDER
   ================================================================ */

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  border: 2px dashed rgba(80, 166, 91, 0.3);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(80, 166, 91, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(80, 166, 91, 0.03) 0%, transparent 40%);
}

.map-placeholder:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}


/* ================================================================
   STATS
   ================================================================ */

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  position: relative;
}

/* Subtle separator between stats */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(80, 166, 91, 0.2), transparent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}


/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  animation: bounce 2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Pulsing ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2s ease-in-out infinite;
  z-index: -1;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  background: #20c05c;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
  position: relative;
  z-index: 1;
}


/* ================================================================
   SCROLL PROGRESS BAR
   ================================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-highlight));
  z-index: 10001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(80, 166, 91, 0.4);
}

.scroll-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: -1px;
  width: 6px;
  height: 5px;
  background: var(--color-highlight);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-highlight);
  animation: progressPulse 1.5s ease-in-out infinite;
}
