/* Blog Articles Custom Styles */

/* Timeline Improvements */
.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #22c55e, #16a34a);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #22c55e;
}

.timeline-content h4 {
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline-content p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-content li {
  color: #4b5563;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Enhanced spacing for all components */
.service-highlights .highlight {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #22c55e;
}

.features-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.service-type-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.service-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
  align-items: center;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
  align-items: center;
}

.info-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #0ea5e9;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.info-box h4 {
  color: #0c4a6e;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Content spacing improvements */
.post-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  scroll-margin-top: 100px;
}

.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
}

.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #374151;
}

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

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #4b5563;
}

.post-content a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.post-content a:hover {
  color: #1d4ed8;
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  display: block;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  color: #22c55e;
  background: #f0fdf4;
  padding-left: 0.5rem;
}

/* Author info enhancements */
.author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-title {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.article-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.article-stats span {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .service-intro-content,
  .featured-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .process-timeline::before {
    left: 20px;
  }

  .features-grid-large,
  .service-types-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .article-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Reset și stiluri de bază pentru articolul HTML */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header consistent cu celelalte articole */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #059669;
}

/* Main content */
.main-content {
  padding: 2rem 0;
}

.blog-post {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Post header */
.post-header {
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: #1f2937;
  display: block;
}

.author-title {
  font-size: 0.9rem;
  color: #6b7280;
}

.article-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* Post content */
.post-content {
  padding: 2rem;
}

.table-of-contents {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: #4b5563;
  text-decoration: none;
  padding: 0.25rem 0;
  display: block;
  transition: all 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  color: #22c55e;
  padding-left: 0.5rem;
}

.lead {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Headings pentru articolul HTML */
.post-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 3rem 0 1.5rem 0;
  scroll-margin-top: 100px;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 2rem 0 1rem 0;
}

.post-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin: 1.5rem 0 0.75rem 0;
}

/* Paragraphs and lists pentru articolul HTML */
.post-content p {
  margin-bottom: 1.5rem;
  color: #374151;
  line-height: 1.7;
}

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

.post-content li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Links pentru articolul HTML */
.post-content a {
  color: #2563eb;
  text-decoration: underline;
}

.post-content a:hover {
  color: #1d4ed8;
}

/* Stats grid pentru articolul HTML */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Featured content pentru articolul HTML */
.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

/* Info box pentru articolul HTML */
.info-box {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  color: #0c4a6e;
  margin-bottom: 1rem;
}

/* Code examples pentru articolul HTML */
.code-example {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid #22c55e;
  position: relative;
}

.code-example .comment {
  color: #94a3b8;
}
.code-example .tag {
  color: #f472b6;
}
.code-example .attribute {
  color: #60a5fa;
}
.code-example .string {
  color: #34d399;
}

/* HTML structure pentru articolul HTML */
.html-structure {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: monospace;
  line-height: 1.6;
}

.html-structure .indent-1 {
  margin-left: 1rem;
}
.html-structure .indent-2 {
  margin-left: 2rem;
}
.html-structure .indent-3 {
  margin-left: 3rem;
}

/* Feature cards pentru articolul HTML */
.features-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h4 {
  color: #1f2937;
  margin-bottom: 0.75rem;
}

/* Service types grid pentru articolul HTML */
.service-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-type-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.service-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Browser preview pentru articolul HTML */
.browser-preview {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  background: white;
}

.browser-bar {
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.browser-dots {
  display: flex;
  gap: 0.25rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red {
  background: #ef4444;
}
.browser-dot.yellow {
  background: #eab308;
}
.browser-dot.green {
  background: #22c55e;
}

.browser-content {
  padding: 1.5rem;
}

/* Tools grid pentru articolul HTML */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tool-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

/* Checklist pentru articolul HTML */
.checklist {
  background: #f0fdf4;
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.checklist h4 {
  color: #15803d;
  margin-bottom: 0.75rem;
}

.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #166534;
}

.checklist li::before {
  content: "✓";
  background: #22c55e;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer consistent cu celelalte articole */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: #f9fafb;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: #059669;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
  border-top: 1px solid #374151;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive pentru articolul HTML */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }

  .featured-content {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav {
    display: none;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .process-timeline::before {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: none;
  }

  .logo img {
    height: 28px;
  }
}

/* Responsive pentru header și footer */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: none;
  }

  .logo img {
    height: 28px;
  }
}
