/* 
 * Garage Page Styles
 * Dedicated styling for the vehicle detail pages
 */

/* Global Variables - Shared with main site */
:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --primary-light: rgba(231, 76, 60, 0.1);
  --text-color: #2d3436;
  --text-light: #636e72;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f5f6fa;
  --bg-gray: #dfe6e9;
  --border-light: #eaeaea;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 60px;
  --nav-height: 50px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Header Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.back-button {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.back-button svg {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

/* Logo and title styling */
.header-logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Price display styling */
.header-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  min-width: 140px;
}

.starting-text {
  font-weight: 500;
  color: #000000;
}

/* Hero Section */
.hero-section {
  height: 70vh;
  min-height: 400px;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-video-container video,
.hero-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--text-white);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.book-now-btn, .notify-btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: white;
}

.book-now-btn:hover, .notify-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Sticky Navigation */
.sticky-nav {
  position: sticky;
  top: var(--header-height);
  height: var(--nav-height);
  background-color: var(--bg-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 90;
}

.nav-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* Content Sections */
.content-sections {
  background-color: var(--bg-white);
}

.content-section {
  padding: 30px 20px 20px;
  width: 100%;
  background-color: var(--bg-white);
}

/* Section Headers */
.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

/* Overview Section */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.highlight-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
}

.highlight-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.overview-description {
  margin-bottom: 25px;
}

.overview-description p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Features List */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  background-color: rgba(245, 245, 245, 0.6);
  padding: 8px 15px;
  border-radius: 30px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Feature Icons */
.autopilot-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z"/></svg>');
}

.sound-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>');
}

.roof-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M21 3H3v18h18V3zm-9 15c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"/></svg>');
}

.seats-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 2c-4.42 0-8 .5-8 4v10c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8-4zm5.66 13.76L16 13H8l-1.66 2.76c-.24.4.01.91.48.91h10.36c.47 0 .72-.51.48-.91zM12 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg>');
}

.charging-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M13 4h-2V2h2v2zm0 18h-2v-2h2v2zm6-10h2v2h-2v-2zM3 8h2v8H3V8zm16 0v8h2V8h-2zm-8 5.17l2.58-2.59L15 12l-5 5-5-5 1.41-1.41L9 13.17V8h2v5.17z"/></svg>');
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Gallery Section */
.vertical-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-item {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  vertical-align: middle;
}

.gallery-item.video-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M8 5v14l11-7z"/></svg>');
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.gallery-caption {
  padding: 10px;
  background-color: var(--bg-white);
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Specs Section */
.specs-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 0;
}

.specs-group h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.specs-table {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-name {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-right: 20px;
  min-width: 100px;
  flex-shrink: 0;
}

.spec-value {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

/* Loading state */
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(231, 76, 60, 0.2);
  border-radius: 50%;
  border-top-color: #e74c3c;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notification Modal */
.notification-modal {
  position: fixed;
  bottom: 0;
  top: auto;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  z-index: 2100;
}

.notification-modal.active {
  display: flex;
}

.notification-modal .modal-content {
  width: 90%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  margin: auto;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease-out;
}

.notification-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.notification-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-modal .close-modal::before,
.notification-modal .close-modal::after {
  content: '';
  width: 15px;
  height: 2px;
  background: #333;
  position: absolute;
}

.notification-modal .close-modal::before {
  transform: rotate(45deg);
}

.notification-modal .close-modal::after {
  transform: rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notification-content-container {
  text-align: center;
}

.notification-modal h2 {
  margin-bottom: 10px;
  color: #333;
}

.notification-modal p {
  margin-bottom: 20px;
  color: #666;
}

.notification-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
}

.checkbox-group label {
  font-size: 14px;
  color: #666;
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

.success-message, .error-message {
  display: none;
  text-align: center;
  padding: 20px;
}

.success-message i {
  font-size: 50px;
  color: #4CAF50;
  margin-bottom: 10px;
}

.error-message h3 {
  color: #e74c3c;
}

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.optional {
  color: #999;
  font-size: 12px;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .content-section {
    width: 60%;
    min-height: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05), 5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 30px 30px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .vertical-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item:nth-child(3n+1) {
    grid-column: span 2;
  }
  
  .specs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  #overview-section, #gallery-section, #specs-section {
    padding-bottom: 20px;
  }
  
  #specs-section {
    margin-bottom: 40px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .main-header {
    padding: 0 15px;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .hero-section {
    height: 60vh;
  }
  
  .nav-item {
    font-size: 0.75rem;
    padding: 0 5px;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
} 