/* SkySplat.org - Zola Styles */

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

/* Custom variables - SkySplat Logo Color Palette */
:root {
  --brand-color: #f47920;
  --brand-color-light: #ff9a4d;
  --brand-color-dark: #e56a0a;
  --accent-color: #ec407a;
  --secondary-color: #9c27b0;
  --tertiary-color: #2196f3;
  --navy-color: #1a3a52;
  --coral-color: #e57373;
  --text-color: #1a3a52;
  --background-color: #f5f5f0;
  --grey-color-light: #f9fafb;
  --grey-color: #6b7280;
  --grey-color-dark: #1a3a52;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Header and Navigation */
header {
  background: white;
  border-bottom: 2px solid var(--brand-color);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-color);
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  color: var(--brand-color);
}

.logo:hover .logo-text {
  color: var(--brand-color-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--brand-color);
}

.github-link {
  display: flex;
  align-items: center;
  padding: 0.25rem;
}

.github-link svg {
  transition: transform 0.2s;
}

.github-link:hover svg {
  transform: scale(1.1);
}

.github-star-btn {
  display: flex;
  align-items: center;
  background: var(--brand-color);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
}

.github-star-btn:hover {
  background: var(--brand-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
}

.github-star-btn svg {
  flex-shrink: 0;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Home page */
.home-container {
  max-width: 900px;
}

.home-container h1 {
  color: var(--brand-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-container h2 {
  color: var(--brand-color-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home-container h3 {
  color: var(--brand-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0 4rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.05) 0%, rgba(236, 64, 122, 0.05) 100%);
  border-radius: 12px;
  border: 2px solid var(--brand-color);
}

.hero-section h1 {
  color: var(--brand-color);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--grey-color-dark);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.github-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.github-stats img {
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background: var(--brand-color-dark);
  border-color: var(--brand-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 121, 32, 0.3);
}

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

.btn-secondary:hover {
  background: #7b1fa2;
  border-color: #7b1fa2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--brand-color);
  border-color: var(--brand-color);
}

.btn-outline:hover {
  background: var(--brand-color);
  color: white;
  transform: translateY(-2px);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.08) 0%, rgba(236, 64, 122, 0.08) 100%);
  border: 2px solid var(--brand-color);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--brand-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--grey-color-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-box .btn {
  margin: 0.5rem;
}

/* Section pages */
.section-container {
  max-width: 900px;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h1 {
  color: var(--brand-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--grey-color);
  font-size: 1.1rem;
}

/* Post/Article previews */
.posts-list, .docs-list, .articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-preview, .doc-preview, .article-preview {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-preview:last-child,
.doc-preview:last-child,
.article-preview:last-child {
  border-bottom: none;
}

.post-preview h2,
.doc-preview h2,
.article-preview h2 {
  margin-bottom: 0.5rem;
}

.post-preview h2 a,
.doc-preview h2 a,
.article-preview h2 a {
  color: var(--text-color);
  text-decoration: none;
}

.post-preview h2 a:hover,
.doc-preview h2 a:hover,
.article-preview h2 a:hover {
  color: var(--brand-color);
}

.meta {
  color: var(--grey-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* Page content */
.page-content {
  max-width: 800px;
}

.page-content header h1 {
  color: var(--brand-color);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-content .content {
  margin-top: 2rem;
}

.page-content .content h2 {
  color: var(--brand-color-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content .content h3 {
  color: var(--brand-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content .content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

.page-content .content li {
  margin-bottom: 0.5rem;
}

.page-content .content a {
  color: var(--brand-color);
  text-decoration: none;
}

.page-content .content a:hover {
  text-decoration: underline;
}

.page-content .content code {
  background: var(--grey-color-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.page-content .content pre {
  background: var(--grey-color-light);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.page-content .content pre code {
  background: none;
  padding: 0;
}

/* Tags */
.page-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

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

.tags a {
  background: var(--grey-color-light);
  color: var(--grey-color-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.tags a:hover {
  background: var(--brand-color);
  color: white;
}

/* Footer */
footer {
  background: var(--grey-color-light);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--grey-color);
}

.footer-container a {
  color: var(--brand-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-container a:hover {
  text-decoration: underline;
}

.github-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.github-footer-link svg {
  vertical-align: middle;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  .home-container h1,
  .section-header h1,
  .page-content header h1 {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 2rem 1rem 3rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .github-star-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .cta-box {
    padding: 1.5rem;
  }
  
  .cta-box h3 {
    font-size: 1.5rem;
  }
}