/* Page Styles for Haerriz Maps */

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #5f6368;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4285f4;
}

/* Page Content */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: calc(100vh - 120px);
}

.hero-section {
  text-align: center;
  padding: 48px 0;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 48px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  color: #5f6368;
  margin-bottom: 8px;
}

/* Content Sections */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin: 32px 0 16px;
}

.content-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #3c4043;
  margin-bottom: 16px;
}

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

.feature-card {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.feature-card .material-icons {
  font-size: 48px;
  color: #4285f4;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
}

/* Features Detailed */
.features-detailed {
  display: grid;
  gap: 32px;
}

.feature-section {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 24px;
}

.feature-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-section ul {
  list-style: none;
  padding: 0;
}

.feature-section li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}

.feature-section li:last-child {
  border-bottom: none;
}

/* Help & FAQ */
.help-content {
  max-width: 800px;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 12px;
}

.contact-info {
  background: #e8f0fe;
  border-radius: 8px;
  padding: 20px;
  margin-top: 32px;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 24px;
  color: #202124;
  margin: 32px 0 16px;
  border-bottom: 2px solid #4285f4;
  padding-bottom: 8px;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* API Documentation */
.api-content {
  max-width: 1000px;
}

.code-block {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
}

.code-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #202124;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
}

.api-section {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e8eaed;
  border-radius: 8px;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.api-table th,
.api-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e8eaed;
}

.api-table th {
  background: #f8f9fa;
  font-weight: 500;
}

/* Blog Layout */
.blog-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.blog-post:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #5f6368;
}

.post-category {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.blog-post h2 {
  margin-bottom: 12px;
}

.blog-post h2 a {
  color: #202124;
  text-decoration: none;
}

.blog-post h2 a:hover {
  color: #4285f4;
}

.read-more {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-section h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #202124;
}

.category-list,
.popular-posts {
  list-style: none;
  padding: 0;
}

.category-list li,
.popular-posts li {
  margin-bottom: 8px;
}

.category-list a,
.popular-posts a {
  color: #5f6368;
  text-decoration: none;
}

.category-list a:hover,
.popular-posts a:hover {
  color: #4285f4;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 48px 0;
  background: linear-gradient(135deg, #4285f4, #34a853);
  border-radius: 12px;
  margin: 48px 0;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #4285f4;
  color: white;
}

.btn-primary:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

/* Footer */
footer {
  background: #f8f9fa;
  border-top: 1px solid #e8eaed;
  padding: 32px 24px 16px;
  color: #5f6368;
  margin-top: 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.footer-section h4 {
  color: #202124;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #5f6368;
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover {
  color: #4285f4;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #e8eaed;
  padding-top: 16px;
}

/* Brand Links */
.brand-links {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.brand-link {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #4285f4;
}

.brand-link h4 {
  margin-bottom: 8px;
}

.brand-link h4 a {
  color: #4285f4;
  text-decoration: none;
}

.brand-link h4 a:hover {
  text-decoration: underline;
}

.brand-link p {
  color: #5f6368;
  font-size: 14px;
  margin: 0;
}

/* Ecosystem Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ecosystem-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e8eaed;
}

.ecosystem-item h4 {
  margin-bottom: 8px;
}

.ecosystem-item h4 a {
  color: #4285f4;
  text-decoration: none;
}

.ecosystem-item h4 a:hover {
  text-decoration: underline;
}

.ecosystem-item p {
  color: #5f6368;
  font-size: 14px;
  margin: 0;
}

/* Related Links */
.related-links {
  background: #e8f0fe;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
}

.related-links ul {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.related-links li {
  margin-bottom: 8px;
}

.related-links a {
  color: #1a73e8;
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

/* Network Links */
.network-links {
  list-style: none;
  padding: 0;
}

.network-links li {
  margin-bottom: 8px;
}

.network-links a {
  color: #5f6368;
  text-decoration: none;
}

.network-links a:hover {
  color: #4285f4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-content {
    padding: 0 16px;
  }
  
  .hero-section h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .blog-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}