/* Blog Post Page Styles */

/* Blog Post Page */
.blog-post-page {
  padding-top: 72px;
}

/* Hero Section */
.blog-hero {
  background: #000000;
  padding: 60px 0 40px;
}

.blog-hero-content {
  max-width: 800px;
}

.back-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.blog-hero .blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-hero .blog-date,
.blog-hero .blog-read-time {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-hero h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero .blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Hero Image */
.blog-hero-image {
  background: #000000;
  padding: 0 0 60px;
}

.before-after-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.before-after-hero .before-after-item {
  position: relative;
}

.before-after-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.before-after-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.before-after-hero .before-after-item:last-child .before-after-label {
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  border-color: transparent;
}

/* Article */
.blog-article {
  background: #000000;
  padding: 60px 0 80px;
}

.blog-article .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  max-width: 1200px;
}

.article-content {
  max-width: 100%;
}

/* Article Sections */
.article-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-section:last-of-type {
  border-bottom: none;
}

.article-section h2 {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 24px;
}

.article-section h3 {
  font-size: 1.25rem;
  color: white;
  margin: 24px 0 12px;
}

.article-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.article-section ul,
.article-section ol {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 16px 0;
  padding-left: 24px;
}

.article-section li {
  margin-bottom: 8px;
}

/* Introduction */
.article-intro {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.author-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.intro-points p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.intro-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.1rem;
  font-style: italic;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.checklist li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Tip Box */
.tip-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Highlight Box */
.highlight-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Steps */
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.step-content p {
  margin-bottom: 12px;
}

.step-content ul,
.step-content ol {
  margin: 12px 0;
}

/* Prompt Example */
.prompt-example {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: monospace;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.stat-card {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.stat-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.note {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tip-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.tip-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: white;
}

.tip-card p {
  margin: 0;
  font-size: 0.95rem;
}

.tip-card ul {
  margin: 0;
  padding-left: 20px;
}

.tip-card li {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* Comparison */
.comparison {
  margin-top: 12px;
}

.comparison .bad {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.comparison .good {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Article CTA */
.article-cta {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.article-cta h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 12px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-section h3 {
  font-size: 1rem;
  color: white;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-stats li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.quick-stats li:last-child {
  border-bottom: none;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

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

.toc a:last-child {
  border-bottom: none;
}

.sidebar-cta {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  text-align: center;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.sidebar-cta .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-article .container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .sidebar-section {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0 30px;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
  }

  .before-after-hero {
    grid-template-columns: 1fr;
  }

  .before-after-hero img {
    height: 250px;
  }

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

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

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-cta {
    padding: 32px 24px;
  }
}

/* RTL Support */
html[dir="rtl"] .back-link {
  direction: rtl;
}

html[dir="rtl"] .tip-box {
  border-left: none;
  border-right: 3px solid var(--primary-color);
  border-radius: 8px 0 0 8px;
}

html[dir="rtl"] .comparison .bad,
html[dir="rtl"] .comparison .good {
  border-left: none;
  border-right: 3px solid;
  border-radius: 6px 0 0 6px;
}

html[dir="rtl"] .before-after-label {
  left: auto;
  right: 16px;
}
