/* Post Page Styles */
.post-main {
  max-width: 900px;
  margin: 50px auto;
  padding: 3rem 2rem;
}

.post-article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

.post-header {
  margin-bottom: 2.5rem;
}

a{
  color: white;
}
a:hover{
  color: rgb(202, 202, 202);
}
.post-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 800;
}

.author-info {
  display: flex; 
  align-items: center;
  flex-direction: row !important;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.author-title {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-hero-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.post-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.125rem;
}

.post-content .lead {
  font-size: 1.375rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.post-content h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  scroll-margin-top: 2rem;
}

.post-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  scroll-margin-top: 2rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Info Box */
.info-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 0;
  margin: 2.5rem 0;
}

.info-icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.requirement-card {
  padding: 2rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.requirement-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.requirement-card svg {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.requirement-card h3 {
  font-size: 1.125rem;
  margin: 0.75rem 0;
  color: var(--text-primary);
}

.requirement-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Steps */
.step-container {
  margin: 2.5rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary-color);
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
  font-size: 1.375rem;
}

/* Code Blocks */
.code-block {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border-color);
}

.code-header span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-radius: 4px;
}

.copy-btn:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.code-block pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}

.code-block code {
  font-family: "Monaco", "Menlo", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* FAQ Items */
.faq-item {
  padding: 1.75rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.faq-item p {
  margin: 0.75rem 0 0 0;
  color: var(--text-secondary);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgb(216, 216, 216), rgb(255, 255, 255));
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 3rem 0;
}

.cta-box h3 {
  color: black;
  margin-top: 0;
  font-size: 1.75rem;
}

.cta-box p {
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgb(0, 0, 0);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.05rem;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.5rem 1.25rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

/* Suggested Section */
.suggested-section {
  margin-bottom: 3rem;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .post-article {
    padding: 2.5rem;
  }

  .post-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .post-main {
    padding: 2rem 1.5rem;
  }

  .post-article {
    padding: 2rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-hero-image {
    height: 300px;
  }

  .post-content {
    font-size: 1.05rem;
  }

  .post-content .lead {
    font-size: 1.25rem;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
  }

  .suggested-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .post-article {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.25rem;
  }

  .post-hero-image {
    height: 250px;
  }
}
