/* QA HiveLab - Modern Tech-Focused Styling */

/* Technology-focused color scheme */
:root {
  --primary-color: #66B2B2;      /* Main teal from logo */
  --secondary-color: #2F4F4F;    /* Darker teal */
  --accent-color: #8CCACA;       /* Lighter teal */
  --success-color: #4CAF50;      /* Green */
  --warning-color: #FF9800;      /* Orange */
  --danger-color: #F44336;       /* Red */
  --dark-bg: #1C2F2F;           /* Very dark teal */
  --light-bg: #F5F9F9;          /* Light teal tint */
  --text-primary: #2F4F4F;      /* Dark teal for text */
  --text-secondary: #557373;    /* Medium teal for secondary text */
  --text-light: #88A9A9;       /* Light teal for subtle text */
  --border-color: #E0EBEB;     /* Light teal border */
  --code-bg: #2F4F4F;          /* Code background */
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --tech-gradient: linear-gradient(135deg, #66B2B2 0%, #2F4F4F 100%);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Spacing system */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* Additional design tokens */
  --text-color: var(--text-primary);
  --surface-color: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(47, 79, 79, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(47, 79, 79, 0.1), 0 2px 4px -1px rgba(47, 79, 79, 0.06);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* High contrast colors */
  --contrast-teal: #66B2B2;
  --contrast-teal-shadow: rgba(102, 178, 178, 0.4);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light-bg);
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--secondary-color);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-title {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.site-title:hover {
  color: var(--secondary-color);
  transform: scale(1.02);
}

.site-logo {
  height: 60px;  /* Increased height */
  width: auto;
  margin-right: 1rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(47, 79, 79, 0.1));
}

.site-title:hover .site-logo {
  filter: drop-shadow(0 4px 8px rgba(47, 79, 79, 0.2));
  transform: scale(1.05);
}

.lab-accent {
  color: var(--accent-color);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(47, 79, 79, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .site-header-inner {
    padding: 0.5rem 1rem;
  }
  
  .site-logo {
    height: 50px;  /* Slightly smaller on tablets */
  }
  
  .site-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-logo {
    height: 40px;  /* Even smaller on mobile */
  }
  
  .site-title {
    font-size: 1.25rem;
  }
  
  .site-header-inner {
    padding: 0.5rem;
  }
}

/* Navigation adjustments to balance the larger logo */
.trigger {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 2rem;
}

.page-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.page-link:hover {
  background: var(--light-bg);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.page-link.current {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(47, 79, 79, 0.1);
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.hero .highlight {
  color: #fbbf24;  /* Bright amber/gold */
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.hero .lab-accent {
  color: #fbbf24;  /* Bright amber/gold for consistency */
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

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

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

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

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

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

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--contrast-teal-shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Tech icons */
.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* Blog Posts */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.post-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Content */
.page-content {
  padding: 2rem 0;
}

.post-content {
  line-height: 1.8;
  font-size: 1.125rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

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

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Code */
pre, code {
  font-family: var(--font-mono);
}

pre {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 2rem 0;
}

code {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.highlight-box:hover::before {
  height: 6px;
  transition: height 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .trigger {
    position: fixed;
    top: 60px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-trigger:checked ~ .trigger {
    max-height: 300px;
    opacity: 1;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

  .wrapper {
    padding: 0 15px;
  }

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

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .site-logo {
    height: 32px;  /* Smaller height on mobile */
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.pagination .disabled {
  background: var(--light-bg);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Source Meridian Credits Styling */
.powered-by {
  margin-top: 0.5rem;
}

.source-meridian-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.source-meridian-link:hover {
  color: #fbbf24;
  transform: translateY(-1px);
}

.sm-logo {
  font-size: 1.2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.sm-text {
  font-size: 1rem;
  font-weight: 600;
}

.sm-description {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
  opacity: 0.8;
}

.footer-credits {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  opacity: 0.8;
}

.footer-sm-link {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-sm-link:hover {
  color: white;
  text-decoration: underline;
}

/* Tech Partnership Section */
.tech-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tech-partner-link:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.partner-logo {
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* Author Bio Section */
.author-bio {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.author-info {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.author-details h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.author-role {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.author-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.author-social a {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.author-social a:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    align-self: center;
  }
  
  .author-social {
    justify-content: center;
  }
} 