/* Yacht Whisperer - Luxury Yacht Theme */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* Base Styles */
:root {
  --navy: #0a2342;
  --navy-light: #1a3a5f;
  --gold: #d4af37;
  --gold-light: #e6c458;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-light: #e9ecef;
  --gray: #6c757d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #e6f2f8, #d1e8f5);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48cGF0aCBkPSJNMjUgMEMxMS4xOTMgMCAwIDExLjE5MyAwIDI1czExLjE5MyAyNSAyNSAyNSAyNS0xMS4xOTMgMjUtMjVTMzguODA3IDAgMjUgMHptMCA0N0MxMi44NSA0NyAzIDM3LjE1IDMgMjVTMTIuODUgMyAyNSAzczIyIDkuODUgMjIgMjItOS44NSAyMi0yMiAyMnoiIGZpbGw9IiMwYTIzNDIiIGZpbGwtb3BhY2l0eT0iMC4wMyIvPjwvc3ZnPg==');
  opacity: 0.5;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}

/* Container styling */
.container {
  max-width: 1200px;
}

/* Card styling */
.bg-white {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(10, 35, 66, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rounded-lg {
  border-radius: 12px;
}

/* Button styling */
.bg-blue-800 {
  background-color: var(--navy) !important;
  transition: all 0.3s ease;
}

.bg-blue-800:hover {
  background-color: var(--navy-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 35, 66, 0.15);
}

/* Gold accent buttons */
.gold-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.gold-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* AVA section styling */
.ava-section {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  margin-bottom: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ava-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  position: relative;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.ava-avatar::before {
  content: 'A';
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.ava-avatar::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

.ava-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.ava-content p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Search input styling */
.search-container {
  position: relative;
  margin-bottom: 2rem;
}

#search-input {
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-light);
}

#search-form button {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

#search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

#search-form button svg {
  color: var(--navy);
}

/* Yacht card styling */
.yacht-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(10, 35, 66, 0.1);
}

.yacht-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(10, 35, 66, 0.12);
}

.yacht-card .yacht-title {
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.yacht-card .yacht-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.yacht-card .yacht-price {
  color: var(--gold);
  font-weight: 700;
}

.yacht-card .yacht-link {
  background-color: var(--navy);
  color: var(--white);
  transition: all 0.3s ease;
}

.yacht-card .yacht-link:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
}

/* AVA response styling */
#ava-response {
  background-color: rgba(10, 35, 66, 0.03);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  position: relative;
}

#ava-response h2 {
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

#ava-text {
  color: var(--gray);
  line-height: 1.6;
}

/* Recent searches styling */
.recent-search-item {
  background-color: var(--off-white);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(10, 35, 66, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.recent-search-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-search-item:hover {
  box-shadow: 0 8px 16px rgba(10, 35, 66, 0.08);
}

.recent-search-item:hover::before {
  opacity: 1;
}

.recent-search-date {
  color: var(--gray);
  font-size: 0.85rem;
}

.recent-search-query {
  color: var(--navy);
  font-weight: 600;
}

.recent-search-link {
  background-color: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.recent-search-link:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
}

/* Download section styling */
#download-section {
  background-color: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
}

#qr-code {
  border: 2px solid var(--gold);
  padding: 8px;
  background-color: white;
  border-radius: 8px;
}

/* Share buttons styling */
#share-section a, #copy-link {
  transition: all 0.3s ease;
  border-radius: 8px;
}

#share-section a:hover, #copy-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.stagger-animation > * {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ava-section {
    flex-direction: column;
    text-align: center;
  }
  
  .ava-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  #download-section .flex {
    flex-direction: column;
    align-items: center;
  }
  
  #share-section .flex {
    justify-content: center;
  }
}