/*
 * TAT Mobile Menu - Unique Design System
 * Modern, elegant mobile navigation for The Aesthetic Touch
 */

/* Mobile Menu Overlay */
.tat-mobile-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(56, 36, 25, 0.8)
  );
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: none;
}

.tat-mobile-overlay[style*="display: block"] {
  display: block;
}

/* Mobile Menu Panel */
.tat-mobile-panel {
  position: relative;
  height: 100vh;
  width: 85%;
  max-width: 380px;
  background: linear-gradient(180deg, #f8f8f8 0%, #f9f2ec 100%);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 177, 140, 0.1);
  display: flex;
  flex-direction: column;
  border-radius: 0 25px 25px 0;
  overflow: hidden;
}

/* Mobile Menu Header */
.tat-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(
    135deg,
    rgba(201, 177, 140, 0.1),
    rgba(255, 255, 255, 0.8)
  );
  border-bottom: 2px solid rgba(201, 177, 140, 0.2);
  backdrop-filter: blur(10px);
}

.tat-mobile-logo-link {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tat-mobile-logo-link:hover {
  transform: scale(1.05) rotate(-2deg);
}

.tat-mobile-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.tat-mobile-close-btn {
  padding: 12px;
  margin: -12px;
  background: rgba(201, 177, 140, 0.1);
  border: 2px solid rgba(201, 177, 140, 0.3);
  border-radius: 50%;
  color: #c8a2c8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.tat-mobile-close-btn:hover {
  background: rgba(201, 177, 140, 0.2);
  border-color: #c8a2c8;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 16px rgba(201, 177, 140, 0.3);
}

.tat-mobile-close-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Mobile Navigation */
.tat-mobile-nav {
  flex: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.tat-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  margin: 2px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.3)
  );
  border: 1px solid rgba(201, 177, 140, 0.2);
  border-radius: 16px;
  color: #362419;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tat-mobile-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 177, 140, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.tat-mobile-nav-link:hover::before {
  left: 100%;
}

.tat-mobile-nav-link:hover {
  background: linear-gradient(
    135deg,
    rgba(201, 177, 140, 0.15),
    rgba(255, 255, 255, 0.8)
  );
  border-color: #c8a2c8;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201, 177, 140, 0.2),
    0 0 0 1px rgba(201, 177, 140, 0.3), inset 4px 0 0 0 rgba(201, 177, 140, 0.6);
  padding-left: 44px;
}

.tat-mobile-nav-link:active {
  transform: translateX(4px) scale(0.98);
}

.tat-mobile-nav-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tat-mobile-nav-link:hover .tat-mobile-nav-icon {
  transform: scale(1.2) rotate(5deg);
}

.tat-mobile-nav-text {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.tat-mobile-nav-link:hover .tat-mobile-nav-text {
  color: #c8a2c8;
}

/* CTA Button */
.tat-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  margin: 16px 0 8px 0;
  background: linear-gradient(135deg, #c8a2c8, #b892b8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(201, 177, 140, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.tat-mobile-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.tat-mobile-cta-btn:hover::before {
  left: 100%;
}

.tat-mobile-cta-btn:hover {
  background: linear-gradient(135deg, #d4aed4, #c8a2c8);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(201, 177, 140, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tat-mobile-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.tat-mobile-cta-icon {
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tat-mobile-cta-btn:hover .tat-mobile-cta-icon {
  transform: scale(1.2) rotate(15deg);
}

.tat-mobile-cta-text {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5px;
}

/* Mobile Footer */
.tat-mobile-footer {
  padding: 24px 28px;
  background: linear-gradient(
    135deg,
    rgba(201, 177, 140, 0.1),
    rgba(255, 255, 255, 0.5)
  );
  border-top: 2px solid rgba(201, 177, 140, 0.2);
  backdrop-filter: blur(10px);
}

.tat-mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* Alias for compatibility - map to the working implementation */
.tat-mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.5)
  );
  border: 2px solid rgba(201, 177, 140, 0.3);
  border-radius: 50%;
  color: #a49a94;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
}

.tat-mobile-social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(201, 177, 140, 0.2), transparent);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.tat-mobile-social-link:hover::before {
  width: 100px;
  height: 100px;
}

.tat-mobile-social-link:hover {
  border-color: #c8a2c8;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(201, 177, 140, 0.3);
}

.tat-mobile-phone:hover {
  color: #10b981;
  border-color: #10b981;
}

.tat-mobile-whatsapp:hover {
  color: #25d366;
  border-color: #25d366;
}

.tat-mobile-instagram:hover {
  color: #e4405f;
  border-color: #e4405f;
}

.tat-mobile-social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.tat-mobile-social-link:hover .tat-mobile-social-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Transition Classes */
.tat-mobile-transition-enter {
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tat-mobile-enter-start {
  opacity: 0;
}

.tat-mobile-enter-end {
  opacity: 1;
}

.tat-mobile-transition-leave {
  transition: opacity 0.3s ease-in;
}

.tat-mobile-leave-start {
  opacity: 1;
}

.tat-mobile-leave-end {
  opacity: 0;
}

.tat-mobile-panel-enter {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tat-mobile-panel-start {
  transform: translateX(-100%) scale(0.9);
}

.tat-mobile-panel-end {
  transform: translateX(0) scale(1);
}

.tat-mobile-panel-leave {
  transition: transform 0.3s ease-in;
}

.tat-mobile-panel-leave-start {
  transform: translateX(0) scale(1);
}

.tat-mobile-panel-leave-end {
  transform: translateX(-100%) scale(0.9);
}

/* Add JavaScript event handlers for social links */
.tat-mobile-social-link[href^="tel:"] {
  /* Phone links styling */
}

.tat-mobile-social-link[href^="https://wa.me/"]
{
  /* WhatsApp links styling */
}

.tat-mobile-social-link[href^="https://www.instagram.com/"]
{
  /* Instagram links styling */
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .tat-mobile-panel {
    width: 90%;
    max-width: none;
  }

  .tat-mobile-nav-link {
    padding: 16px 20px;
    font-size: 17px;
  }

  .tat-mobile-nav-icon {
    font-size: 22px;
    width: 28px;
  }
}

@media (max-height: 600px) {
  .tat-mobile-nav {
    padding: 20px 28px;
    gap: 2px;
  }

  .tat-mobile-nav-link {
    padding: 14px 20px;
  }

  .tat-mobile-cta-btn {
    padding: 16px 20px;
    margin: 12px 0 4px 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .tat-mobile-panel {
    background: linear-gradient(180deg, #2d1b1a 0%, #3d2c2a 100%);
  }

  .tat-mobile-nav-link {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    color: #f6efe9;
    border-color: rgba(201, 177, 140, 0.3);
  }

  .tat-mobile-nav-link:hover {
    background: linear-gradient(
      135deg,
      rgba(201, 177, 140, 0.2),
      rgba(0, 0, 0, 0.3)
    );
  }
}
