/**
 * MOBILE-ONLY STYLES
 * ==================
 * Все стили scoped с .mobile-device .mobile-only
 * Не влияет на десктоп
 */

/* ==================== BASE ==================== */
.mobile-device .mobile-only {
  width: 100%;
  min-height: 100vh;
  /* Поддержка Dynamic Island и notch */
  min-height: -webkit-fill-available;
  background: #F7F8FA;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  /* Safe area insets для Dynamic Island, notch, home indicator */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  
  /* Box sizing */
  box-sizing: border-box;
  
  /* Prevent bounce scroll на iOS */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  
  /* Ensure mobile content is on top */
  position: relative;
  z-index: 100;
}

/* ==================== SAFE AREA SUPPORT ==================== */
/* Все контентные контейнеры внутри мобилки автоматически учитывают safe area */
.mobile-device .mobile-only > * {
  box-sizing: border-box;
}

/* Для элементов которые должны касаться краев (фоны, полосы) */
.mobile-device .mobile-only .mobile-full-bleed {
  margin-left: calc(-1 * env(safe-area-inset-left));
  margin-right: calc(-1 * env(safe-area-inset-right));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ==================== iOS SPECIFIC FIXES ==================== */
/* Prevent zoom on input focus */
@supports (-webkit-touch-callout: none) {
  .mobile-device .mobile-only input,
  .mobile-device .mobile-only select,
  .mobile-device .mobile-only textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
}

/* ==================== MOBILE LOGO SECTION (no header background) ==================== */
.mobile-device .mobile-only .mobile-logo-section {
  padding: 16px 20px 12px 20px;
  text-align: center;
}

.mobile-device .mobile-only .mobile-logo-center {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.mobile-device .mobile-only .mobile-logo {
  display: block !important;
  width: 100px !important;
  height: auto !important;
  max-width: 100px !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.mobile-device .mobile-only .mobile-header-divider {
  color: #d1d5db !important;
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
}

.mobile-device .mobile-only .mobile-header-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  color: #6b7280 !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.mobile-device .mobile-only .mobile-header-text span {
  display: block !important;
}

/* ==================== MOBILE HERO SECTION ==================== */
.mobile-device .mobile-only .mobile-hero {
  padding: 32px 20px 4px 20px;
}

.mobile-device .mobile-only .mobile-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  position: relative;
}

.mobile-device .mobile-only .mobile-hero-text {
  position: absolute;
  top: 20px;
  left: calc(20px + 4cm);
  right: 20px;
  z-index: 1000;
  text-align: left;
  width: auto;
  pointer-events: none;
}

.mobile-device .mobile-only .mobile-hero-title {
  font-size: 28px !important;
  font-weight: 900;
  line-height: 0.7;
  color: #000000 !important;
  margin: 0 0 12px 0;
  text-transform: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
  background: #FFD700 !important;
  background-color: #FFD700 !important;
  padding: 18px 24px !important;
  -webkit-border-radius: 24px;
  -moz-border-radius: 24px;
  border-radius: 24px;
  position: relative !important;
  -webkit-box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  -moz-box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  max-width: 100%;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1;
}

.mobile-device .mobile-only .mobile-title-line {
  display: block;
  white-space: nowrap;
  color: #000000 !important;
  line-height: 0.7 !important;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  font-size: inherit !important;
}

.mobile-device .mobile-only .mobile-hero-title::before {
  content: '' !important;
  position: absolute;
  left: -14px;
  top: 60%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 14px solid #FFD700;
  -webkit-filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
  display: block;
  visibility: visible;
}

.mobile-device .mobile-only .mobile-title-line {
  display: block;
  white-space: nowrap;
  color: #000000 !important;
  line-height: 0.7 !important;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.mobile-device .mobile-only .mobile-title-line:not(:first-child) {
  margin-top: 8px;
}

.mobile-device .mobile-only .mobile-hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #666;
  margin: 16px 0 4px 0;
  text-align: center;
  width: 100%;
}

.mobile-device .mobile-only .mobile-hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-1.5cm);
}

.mobile-device .mobile-only .mobile-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  position: relative;
}

.mobile-device .mobile-only .mobile-hero-mockup {
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  position: relative;
}

.mobile-device .mobile-only .mobile-hero-mockup .mobile-mockup-image {
  width: 100%;
  height: auto;
  max-width: 280px;
  object-fit: contain;
  transform: translateZ(50px) scale(1.05) rotateY(15deg);
  -webkit-transform: translateZ(50px) scale(1.05) rotateY(15deg);
  -ms-transform: translateZ(50px) scale(1.05) rotateY(15deg);
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
}

.mobile-device .mobile-only .mobile-warning-emoji {
  position: absolute !important;
  top: calc(120px - 2cm) !important;
  left: calc(50% - 154px - 1.5cm + 40px + 3.3cm + 2mm) !important;
  font-size: 32px !important;
  z-index: 10000 !important;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  -webkit-filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 0, 0, 0.4)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-1.5cm) !important;
  -webkit-transform: translateX(-1.5cm) !important;
  color: #FF0000 !important;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.5);
  white-space: nowrap !important;
  font-style: normal !important;
}

/* ==================== MOBILE RED TRIANGLE ==================== */
.mobile-device .mobile-only .mobile-red-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 20px solid #FF0000;
  margin: 0 auto;
  display: block;
}

/* ==================== MOBILE VIN INPUT FORM ==================== */
.mobile-device .mobile-only .mobile-vin-form {
  padding: 0 20px;
  margin-top: 18px; /* 1.8cm отступ после подзаголовка */
  position: relative;
}

.mobile-device .mobile-only .mobile-price-badge {
  position: absolute;
  top: calc(-25px - 6cm);
  right: 20px;
  width: 120px;
  height: 120px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-device .mobile-only .mobile-price-badge-icon {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.mobile-device .mobile-only .mobile-price-badge-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mobile-device .mobile-only .mobile-price-badge-price {
  font-size: 40px;
  font-weight: 900;
  color: #000;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.mobile-device .mobile-only .mobile-price-badge-subtext {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  line-height: 1;
  text-transform: lowercase;
}

.mobile-device .mobile-only .mobile-vin-form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mobile-device .mobile-only .mobile-vin-input {
  width: 100% !important;
  padding: 20px 24px !important; /* Increased padding for larger height */
  font-size: 16px !important; /* Prevent iOS zoom */
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  border: 3px solid #3B82F6 !important;
  border-radius: 32px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1 !important;
  height: 70px !important; /* Increased height significantly */
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color 0.3s ease !important;
  -webkit-transition: border-color 0.3s ease !important;
}

.mobile-device .mobile-only .mobile-vin-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-device .mobile-only .mobile-vin-input::placeholder {
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.mobile-device .mobile-only .mobile-check-btn {
  width: 100% !important;
  padding: 20px 24px !important; /* Increased padding to match input */
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #fff !important;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
  border: none !important;
  border-radius: 32px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  overflow: hidden; /* Ensure border-radius works */
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 64px !important; /* Match input visual height (input is 70px with border, visual height is 64px) */
  min-height: 64px !important;
  line-height: 1 !important;
}

.mobile-device .mobile-only .mobile-check-btn:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 32px !important;
}

.mobile-device .mobile-only .mobile-check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-radius: 32px !important;
}

/* ==================== MOBILE TRUST BADGES ==================== */
.mobile-device .mobile-only .mobile-trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  flex-wrap: wrap;
}

.mobile-device .mobile-only .mobile-trust-badge {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ==================== MOBILE MOCKUP: iPhone with Honda ==================== */
/* Mockup now integrated into hero section */
.mobile-device .mobile-only .mobile-mockup {
  display: none; /* Hidden, now part of hero */
}

/* ==================== MOBILE SECOND SCREEN: SAMPLE REPORT ==================== */
.mobile-device .mobile-only .mobile-sample-report {
  padding: 40px 20px;
  background: #1c1c1c; /* Match image4.png background color (rgb(28, 28, 28)) */
  min-height: 100vh;
}

.mobile-device .mobile-only .mobile-sample-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  margin: 0 0 16px 0;
}

/* Image Wrapper */
.mobile-device .mobile-only .mobile-sample-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 32px 0;
  width: 100%;
}

.mobile-device .mobile-only .mobile-sample-image {
  width: calc(100% + 52px); /* Increase by 26px (0.7cm) on each side = 52px total */
  max-width: calc(400px + 52px);
  height: auto;
  object-fit: contain;
  margin: 0 -26px; /* Negative margin to extend 26px on each side */
  display: block;
}

.mobile-device .mobile-only .mobile-sample-text {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: calc(400px - 40px);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
  margin: 0;
  padding: 0 20px;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* Allow clicks to pass through */
}

/* Check VIN Button */
.mobile-device .mobile-only .mobile-sample-check-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  margin: 0;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border: none !important;
  border-radius: 32px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center !important;
  display: flex !important;
  z-index: 10;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-device .mobile-only .mobile-sample-check-btn:active {
  transform: translateX(-50%) scale(0.98);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

/* ==================== MOBILE THIRD SCREEN: REVIEWS ==================== */
.mobile-device .mobile-only .mobile-reviews-section {
  padding: 40px 20px;
  background: #f5f5f5; /* White-almost-gray background */
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.mobile-device .mobile-only .mobile-reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23FFD700" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.mobile-device .mobile-only .mobile-reviews-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.mobile-device .mobile-only .mobile-reviews-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.mobile-device .mobile-only .mobile-reviews-subtitle {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
  line-height: 1.5;
}

.mobile-device .mobile-only .mobile-rating-summary {
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.mobile-device .mobile-only .mobile-rating-score {
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-device .mobile-only .mobile-score-number {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}

.mobile-device .mobile-only .mobile-score-number span {
  color: #10b981;
}

.mobile-device .mobile-only .mobile-score-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.mobile-device .mobile-only .mobile-score-stars .star {
  font-size: 24px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-device .mobile-only .mobile-score-stars .star.filled {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-device .mobile-only .mobile-score-text {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

.mobile-device .mobile-only .mobile-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.mobile-device .mobile-only .mobile-review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-device .mobile-only .mobile-review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-device .mobile-only .mobile-review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-device .mobile-only .mobile-review-meta {
  flex: 1;
  min-width: 0;
}

.mobile-device .mobile-only .mobile-review-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.mobile-device .mobile-only .mobile-review-date {
  font-size: 12px;
  color: #6b7280;
}

.mobile-device .mobile-only .mobile-review-stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.mobile-device .mobile-only .mobile-review-stars .star {
  font-size: 16px;
  color: #FFD700;
}

.mobile-device .mobile-only .mobile-review-stars .star.filled {
  color: #FFD700;
}

.mobile-device .mobile-only .mobile-review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 16px;
}

.mobile-device .mobile-only .mobile-review-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.mobile-device .mobile-only .mobile-review-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-device .mobile-only .mobile-review-action-btn:active {
  background: #f3f4f6;
  transform: scale(0.95);
}

.mobile-device .mobile-only .mobile-review-action-btn .thumb-icon {
  font-size: 16px;
}
