/* Hupyy Industry Reports - Material Design Styles */
:root {
  --primary: #1976D2;
  --primary-dark: #1565C0;
  --primary-light: #BBDEFB;
  --secondary: #424242;
  --secondary-light: #757575;
  --accent: #FFA726;
  --background: #FAFAFA;
  --card-bg: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #757575;
  --border: #E0E0E0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

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

body {
  font-family: 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Site Header */
.site-header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  min-height: 64px;
}

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
}

.github-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: white;
}

.github-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.github-text {
  white-space: nowrap;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 500;
  display: block;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.85;
}

/* Technology Overview */
.tech-overview {
  padding: 60px 0;
  background: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tech-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}

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

.tech-card h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.tech-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Search and Filter */
.search-filter-section {
  padding: 40px 0;
  background: var(--background);
}

.search-container {
  max-width: 600px;
  margin: 0 auto 32px;
}

.search-box {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.search-box:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Industries Grid */
.industries-section {
  padding: 60px 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.industry-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.industry-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.card-header h3 {
  margin: 0;
  flex-grow: 1;
  color: var(--text-primary);
}

.market-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.summary {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.key-benefit {
  background: var(--background);
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.key-benefit strong {
  color: var(--accent);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-tertiary {
  background: var(--background);
  color: var(--secondary);
  border: 2px solid var(--border);
}

.btn-tertiary:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  text-decoration: none;
}

/* Report Page Styles */
.report-header {
  background: var(--primary);
  color: white;
  padding: 40px 0;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: white;
  text-decoration: underline;
}

.report-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.report-meta {
  font-size: 1rem;
  opacity: 0.85;
}

.report-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.report-content {
  max-width: 900px;
  margin: 60px auto;
  background: white;
  padding: 48px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4 {
  color: var(--primary);
  margin-top: 2rem;
}

.report-content h1:first-child {
  margin-top: 0;
}

.report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.report-content th,
.report-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.report-content th {
  background: var(--background);
  font-weight: 600;
  color: var(--primary);
}

.report-content ul,
.report-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.report-content code {
  background: var(--background);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.report-content pre {
  background: var(--background);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

.report-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Table of Contents */
.toc {
  background: var(--background);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.toc ul {
  list-style: none;
  margin-left: 0;
}

.toc li {
  padding: 6px 0;
}

.toc a {
  color: var(--text-primary);
}

.toc a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
}

.footer p {
  opacity: 0.8;
  margin-bottom: 0;
}

/* Search Results */
.search-results {
  margin-top: 32px;
}

.search-result {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.search-result h3 {
  margin-bottom: 8px;
}

.search-result-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.search-result-excerpt {
  color: var(--text-secondary);
}

.search-result mark {
  background: yellow;
  padding: 2px 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1rem;
  }

  .github-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .github-text {
    display: none;
  }

  .github-icon {
    width: 24px;
    height: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

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

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

  .report-content {
    padding: 24px;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}

/* Loading States */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

/* Print Styles */
@media print {
  .hero, .search-filter-section, .footer, .report-actions, .breadcrumb {
    display: none;
  }

  .report-content {
    max-width: 100%;
    box-shadow: none;
  }
}
