/**
 * ========================================
 * BUTTON STYLES - 2025 EDITION
 * ========================================
 *
 * Unified button system using design tokens
 * All buttons now use consistent timing, transforms, and effects
 */

/* ==================== BASE BUTTON STYLES ==================== */

/* Shimmer effect for all interactive buttons */
.btn-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.btn-shimmer:hover::before {
  left: 100%;
}

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

.download-section {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--duration-moderate) var(--ease-apple),
              background var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple),
              border-color var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(var(--lift-sm)) scale(var(--scale-sm));
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.4);
}

.download-btn:active {
  transform: translateY(-2px) scale(1);
}

.btn-icon {
  font-size: 24px;
}

/* ==================== LAUNCH BADGE ==================== */

.launch-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  cursor: default;
  pointer-events: none;
  transition: transform var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.launch-badge::before {
  display: none;
}

.launch-badge:hover {
}

.launch-badge:active {
}

/* INFO BADGE (no interactivity) */
.info-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  pointer-events: none;
}

/* ==================== MOBILE JOIN BUTTON ==================== */

.mobile-join-button {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple);
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: 12px 24px;
  font-size: 14px;
  min-width: 140px;
  margin: 15px auto 20px auto;
}

.mobile-join-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.mobile-join-button:hover::before,
.mobile-join-button:active::before {
  left: 100%;
}

.mobile-join-button:hover {
  transform: translateY(var(--lift-xs)) scale(var(--scale-sm));
  box-shadow: var(--shadow-primary);
}

.mobile-join-button:active {
  transform: translateY(-1px) scale(1);
}

/* ==================== APP STORE BUTTONS ==================== */

.app-store-button,
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--duration-moderate) var(--ease-apple),
              background var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple),
              border-color var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.app-store-button::before,
.app-store-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.app-store-button:hover::before,
.app-store-btn:hover::before {
  left: 100%;
}

.app-store-button:hover,
.app-store-btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-store-button:active,
.app-store-btn:active {
  transform: translateY(-2px) scale(1);
}

/* Apple and Google Play specific buttons */
.app-store-btn.apple-btn,
.app-store-btn.google-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.app-store-btn.apple-btn:hover,
.app-store-btn.google-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) scale(1.01);
}

/* Button text structure */
.app-store-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-btn .btn-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: capitalize;
}

.app-store-btn .btn-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.app-store-btn .btn-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== FINAL DOWNLOAD BUTTONS ==================== */

.final-download-buttons {
  display: flex;
  gap: 20px;
}

.final-download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.final-download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.final-download-btn:hover::before {
  left: 100%;
}

.final-download-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.final-download-btn.secondary {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.final-download-btn:hover {
  transform: translateY(var(--lift-sm)) scale(var(--scale-md));
  box-shadow: var(--shadow-xl);
}

.final-download-btn:active {
  transform: translateY(-2px) scale(var(--scale-xs));
}

.btn-store {
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-subtitle {
  font-size: 0.8rem;
  opacity: var(--opacity-subtle);
}

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

.cta-button,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.cta-button::before,
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.cta-button:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

.cta-button:hover,
.btn-primary:hover {
  transform: translateY(var(--lift-sm)) scale(var(--scale-sm));
  box-shadow: var(--shadow-primary);
}

.cta-button:active,
.btn-primary:active {
  transform: translateY(-2px) scale(1);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-moderate) var(--ease-apple),
              background var(--duration-moderate) var(--ease-apple),
              box-shadow var(--duration-moderate) var(--ease-apple);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--shimmer-speed) var(--ease-out);
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(var(--lift-sm)) scale(var(--scale-sm));
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(-2px) scale(1);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .btn::before,
  .btn-primary::before,
  .btn-secondary::before,
  .btn-shimmer::before,
  .download-btn::before,
  .final-download-btn::before,
  .app-store-btn::before,
  .contact-option-btn::before,
  .faq-cta-btn::before,
  .newsletter-btn::before,
  .signup-btn::before,
  .final-signup-btn::before,
  .cta-button::before {
    display: none !important;
  }
  .download-section,
  .final-download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .download-btn,
  .final-download-btn,
  .app-store-button,
  .app-store-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-button,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 24px;
  }

  .app-store-btn .btn-icon {
    font-size: 28px;
  }

  .app-store-btn .btn-title {
    font-size: 1rem;
  }
}
