/* ==========================================================================
   NextEscaype UI Components
   SaaS Design System: Airbnb + Stripe + Apple + Notion
   ========================================================================== */

/* --- Buttons --- */
.btn-ne-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--ne-primary) 0%, var(--ne-primary-dark) 100%);
  color: #FFFFFF !important;
  font-family: var(--ne-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: var(--ne-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
  transition: all var(--ne-transition-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ne-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.45);
  background: linear-gradient(135deg, #1A87FF 0%, #0047B3 100%);
  color: #FFFFFF !important;
}

.btn-ne-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--ne-white);
  color: var(--ne-text-main) !important;
  font-family: var(--ne-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: var(--ne-radius-full);
  border: 1px solid var(--ne-border);
  box-shadow: var(--ne-shadow-xs);
  transition: all var(--ne-transition-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ne-secondary:hover {
  background: var(--ne-primary-light);
  border-color: rgba(0, 123, 255, 0.3);
  color: var(--ne-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--ne-shadow-sm);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #000000;
  color: #FFFFFF !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--ne-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--ne-transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-playstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF !important;
}

.btn-playstore svg,
.btn-playstore .playstore-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.btn-playstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-playstore-text .subtext {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 500;
}

.btn-playstore-text .maintext {
  font-size: 1.1rem;
  font-family: var(--ne-font-heading);
  font-weight: 600;
  color: #FFFFFF;
}

/* Call & WhatsApp Buttons */
.btn-ne-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FFFFFF;
  color: var(--ne-text-main) !important;
  border: 1.5px solid var(--ne-border);
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: var(--ne-radius-full);
  transition: all var(--ne-transition-base);
}

.btn-ne-call:hover {
  border-color: var(--ne-primary);
  color: var(--ne-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--ne-radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--ne-transition-base);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  color: #FFFFFF !important;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  color: #1F2937 !important;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: var(--ne-radius-full);
  border: 1.5px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--ne-transition-base);
}

.btn-google-review:hover {
  border-color: #4285F4;
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.18);
  transform: translateY(-2px);
}

/* --- Badges & Pills --- */
.ne-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--ne-radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ne-primary-light);
  color: var(--ne-primary-dark);
  border: 1px solid rgba(0, 123, 255, 0.15);
}

.ne-pill-green {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.ne-pill-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #93C5FD;
  border-color: rgba(147, 197, 253, 0.2);
}

.ne-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ne-text-secondary);
  box-shadow: var(--ne-shadow-xs);
  transition: all var(--ne-transition-base);
}

.ne-trust-badge:hover {
  border-color: var(--ne-primary);
  color: var(--ne-primary-dark);
  transform: translateY(-1px);
}

.ne-trust-badge svg {
  color: var(--ne-primary);
  flex-shrink: 0;
}

/* --- Realistic Android Device Mockup --- */
.phone-mockup-wrapper {
  position: relative;
  display: inline-block;
  perspective: 1200px;
}

.android-phone {
  position: relative;
  width: 270px;
  height: 575px;
  background: #0B1120;
  border-radius: 36px;
  padding: 9px;
  box-shadow: 
    0 0 0 2px #334155,
    0 20px 50px -10px rgba(0, 0, 0, 0.4),
    0 10px 20px -5px rgba(0, 123, 255, 0.2);
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Physical Hardware Accents (Power Button & Volume Rocker) */
.android-phone::before {
  content: '';
  position: absolute;
  top: 75px;
  right: -3px;
  width: 3px;
  height: 42px;
  background: #334155;
  border-radius: 0 2px 2px 0;
  transition: background 0.3s ease;
}

.android-phone::after {
  content: '';
  position: absolute;
  top: 65px;
  left: -3px;
  width: 3px;
  height: 65px;
  background: #334155;
  border-radius: 2px 0 0 2px;
  transition: background 0.3s ease;
}

.android-phone:hover::before,
.android-phone:hover::after {
  background: #007BFF;
}

/* Top Speaker Earpiece Slit */
.phone-speaker {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  background: #1E293B;
  border-radius: 2px;
  z-index: 25;
  pointer-events: none;
}

/* Front Punch Hole Camera */
.phone-camera-hole {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: #0B1120;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.7);
  z-index: 25;
  pointer-events: none;
}

.android-phone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 0 0 2px #007BFF,
    0 30px 65px -10px rgba(0, 0, 0, 0.45),
    0 15px 35px -5px rgba(0, 123, 255, 0.35);
}

/* Screen container - exact 9:20 aspect ratio matching 460x1024 */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
}

.phone-screen img,
.phone-screen video,
.phone-screen .phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating Glassmorphic Audio/Sound Toggle for Mockup Video */
.phone-sound-toggle {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.25s ease;
  user-select: none;
}

.phone-sound-toggle:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) translateY(-1px);
}

.phone-sound-toggle svg {
  stroke: #FFFFFF;
  flex-shrink: 0;
}

/* Device glow reflection overlay */
.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  z-index: 20;
}

/* Large Hero Phone Variant (Exact aspect ratio matching 460x1024) */
.android-phone.phone-hero {
  width: 295px;
  height: 630px;
  border-radius: 40px;
  padding: 10px;
}

.android-phone.phone-hero .phone-screen {
  border-radius: 30px;
}

.android-phone.phone-hero .phone-glare {
  border-radius: 30px;
}

/* Compact Step Phone Variant (Exact aspect ratio matching 460x1024) */
.android-phone.phone-step {
  width: 240px;
  height: 512px;
  border-radius: 34px;
  padding: 8px;
}

.android-phone.phone-step .phone-screen {
  border-radius: 26px;
}

.android-phone.phone-step .phone-glare {
  border-radius: 26px;
}

/* Journey Section Phone Variant (Exact aspect ratio matching 460x1024 with ZERO crop) */
.android-phone.phone-journey {
  width: 220px;
  height: 474px;
  border-radius: 32px;
  padding: 7px;
  background: #0B1120;
  box-shadow: 
    0 0 0 2px #334155,
    0 16px 40px -8px rgba(0, 0, 0, 0.4),
    0 8px 18px -4px rgba(0, 123, 255, 0.2);
}

.android-phone.phone-journey .phone-screen {
  width: 206px;
  height: 460px;
  border-radius: 25px;
}

.android-phone.phone-journey .phone-glare {
  border-radius: 25px;
}

.android-phone.phone-journey .phone-camera-hole {
  top: 7px;
  width: 6px;
  height: 6px;
}

.android-phone.phone-journey::before {
  top: 60px;
  height: 34px;
}

.android-phone.phone-journey::after {
  top: 50px;
  height: 52px;
}

/* TripGuardian Section Dedicated Phone (Optimal 9:20 aspect ratio & zero cutoff) */
.android-phone.phone-tg {
  width: 255px;
  height: 548px;
  border-radius: 36px;
  padding: 8px;
  background: #020617;
  border: 2px solid #1E293B;
  box-shadow: 
    0 0 0 2px #334155,
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 123, 255, 0.25);
}

.android-phone.phone-tg .phone-screen {
  border-radius: 28px;
  background: #020617;
}

.android-phone.phone-tg .phone-glare {
  border-radius: 28px;
}

.android-phone.phone-tg .phone-camera-hole {
  top: 7px;
  width: 6px;
  height: 6px;
}

/* --- SaaS Cards --- */
.ne-card {
  background: var(--ne-white);
  border: 1px solid var(--ne-border);
  border-radius: var(--ne-radius-xl);
  padding: 2.25rem;
  box-shadow: var(--ne-shadow-card);
  transition: all var(--ne-transition-smooth);
  position: relative;
  overflow: hidden;
}

.ne-card:hover {
  border-color: rgba(0, 123, 255, 0.3);
  box-shadow: var(--ne-shadow-card-hover);
  transform: translateY(-4px);
}

.ne-card-dark {
  background: var(--ne-dark-surface);
  border: 1px solid var(--ne-dark-border);
  border-radius: var(--ne-radius-xl);
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: var(--ne-dark-text);
  transition: all var(--ne-transition-smooth);
}

.ne-card-dark:hover {
  border-color: rgba(0, 123, 255, 0.5);
  box-shadow: 0 25px 50px rgba(0, 123, 255, 0.15);
  transform: translateY(-4px);
}

/* Section Header standard */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-tag {
  margin-bottom: 0.85rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  color: var(--ne-text-main);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--ne-text-secondary);
}

/* Section Header Dark Variant */
.section-header.dark h2 {
  color: #FFFFFF;
}

.section-header.dark p {
  color: var(--ne-dark-muted);
}
