/* AWS Research Wizard Custom Styles */

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #28a745;
  color: white;
}

.btn-primary:hover {
  background-color: #218838;
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #667eea;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e1e4e8;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #24292e;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: #586069;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: #0366d6;
}

/* Search */
.search-container {
  position: relative;
  min-width: 300px;
}

#search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  font-size: 14px;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5da;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-result {
  padding: 0.75rem;
  border-bottom: 1px solid #e1e4e8;
  cursor: pointer;
}

.search-result:hover {
  background-color: #f6f8fa;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: bold;
  color: #0366d6;
  margin-bottom: 0.25rem;
}

.search-result-snippet {
  color: #586069;
  font-size: 0.9rem;
}

/* Research Areas Grid */
.research-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.research-category {
  background: #f6f8fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

.research-category h3 {
  margin-top: 0;
  color: #24292e;
  border-bottom: 2px solid #0366d6;
  padding-bottom: 0.5rem;
}

.research-category ul {
  list-style: none;
  padding: 0;
}

.research-category li {
  margin-bottom: 0.75rem;
}

.research-category a {
  color: #0366d6;
  text-decoration: none;
  font-weight: 500;
}

.research-category a:hover {
  text-decoration: underline;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  text-align: center;
  padding: 2rem 1rem;
  background: #f6f8fa;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

.feature h3 {
  margin-top: 0;
  color: #24292e;
}

.feature p {
  color: #586069;
}

/* Code blocks */
.highlight {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e1e4e8;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #586069;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #586069;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0366d6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    order: 3;
  }

  .search-container {
    min-width: 250px;
  }

  .research-areas {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus,
input:focus,
a:focus {
  outline: 2px solid #0366d6;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero {
    background: #000;
    color: #fff;
  }

  .btn-primary {
    background: #000;
    border: 2px solid #fff;
  }
}
