/* Custom CSS for Evidence1 platform - Additional Styles */

/* Import Brand System */
@import url('brand.css');

/* Hero Section Styles */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--brand-bg) 0%, rgba(245, 244, 227, 0.8) 100%);
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrap img {
  --r: clamp(16px, 33%, 30px);
  margin: var(--r);
  height: auto;
  width: 100%;
  max-width: 420px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(81, 51, 26, 0.12);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  border: 2px solid rgba(81, 51, 26, 0.08);
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25rem;
  color: var(--brand-fg);
  padding: 16px 20px;
  background: transparent;
  font-family: system-ui, -apple-system, sans-serif;
}

.search input::placeholder {
  color: var(--brand-accent-3);
}

.search .send,
.btn--primary {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--brand-accent-1);
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(108, 83, 60, 0.25);
}

.search .send:hover,
.btn--primary:hover {
  background: var(--brand-accent-2);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(108, 83, 60, 0.35);
}

.search .accent-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--brand-accent-1);
  margin-left: -24px;
  box-shadow: inset 0 0 0 16px #fff;
  position: absolute;
  left: 20px;
  opacity: 0.15;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: -10px;
}

.btn--chip {
  border: 2px solid var(--brand-accent-1);
  color: var(--brand-fg);
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 12px rgba(81, 51, 26, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--chip:hover {
  background: var(--brand-accent-1);
  color: #fff;
  border-color: var(--brand-accent-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(81, 51, 26, 0.2);
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
    padding: 40px 16px;
    gap: 32px;
  }
  .logo-wrap img {
    max-width: 280px;
  }
  .search {
    padding: 14px 16px;
  }
  .search input {
    font-size: 1.1rem;
    padding: 12px;
  }
  .search .send {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .search .accent-ring {
    width: 72px;
    height: 72px;
  }
  .btn--chip {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
}

/* Subtle card hover effects */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card hover handled by brand.css */

/* Focus states handled by brand.css */

/* Typography handled by brand.css */

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Flash message animations */
.flash-message {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  .card {
    transform: none;
  }
  
  .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(81, 51, 26, 0.08);
  }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
  .card:hover {
    box-shadow: 0 12px 28px rgba(245, 244, 227, 0.1);
  }
}

/* Form styling handled by brand.css */

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  
  .flash-message {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .sticky,
  footer,
  #flash-messages,
  button {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}
