/* Blog Single Article Page Styles */

/* Article Container */
.article {
  padding: 100px 0 var(--space-64);
  background-color: #fff;
}

.article .container {
  max-width: var(--container-max);
}

/* Article Inner Content - 75% width centered for readability */
.article__header,
.article__featured-image,
.article__content,
.article__tags,
.article__share,
.article__author-bio {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

/* Article Header */
.article__header {
  margin-bottom: var(--space-32);
}

.article__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-16);
}

.article__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c9a227;
}

.article__meta-separator {
  width: 4px;
  height: 4px;
  background-color: #ccc;
  border-radius: 50%;
}

.article__date {
  font-size: 13px;
  color: #666;
}

.article__title {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-16);
}

.article__excerpt {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  margin-bottom: var(--space-24);
}

/* Author Row */
.article__author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.article__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.article__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article__author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.article__author-title {
  font-size: 12px;
  color: #1a7f7a;
}

.article__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article__read-time {
  font-size: 13px;
  color: #888;
}

.article__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: #fff;
  color: #666;
  transition: all 0.2s ease;
}

.article__action-btn:hover {
  border-color: #ccc;
  color: var(--color-text);
}

.article__action-btn svg {
  width: 18px;
  height: 18px;
}

/* Featured Image */
.article__featured-image {
  margin-bottom: var(--space-40);
  border-radius: 16px;
  overflow: hidden;
}

.article__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article__content {
  margin-bottom: var(--space-40);
}

/* Lead Paragraph */
.article__lead,
.article__content > p:first-of-type {
  font-size: 20px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-24);
}

/* Headings */
.article__content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-top: 56px;
  margin-bottom: 24px;
}

.article__content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 20px;
}

.article__content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article__content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-top: 32px;
  margin-bottom: 14px;
}

.article__content h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article__content h6 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444;
  line-height: 1.4;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article__content h1:first-child,
.article__content h2:first-child,
.article__content h3:first-child,
.article__content h4:first-child,
.article__content h5:first-child,
.article__content h6:first-child {
  margin-top: 0;
}

/* Paragraphs */
.article__content p {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-20);
}

.article__content p:last-child {
  margin-bottom: 0;
}

/* Links */
.article__content a {
  color: #1a7f7a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article__content a:hover {
  color: #156b67;
}

/* Strong & Emphasis */
.article__content strong,
.article__content b {
  font-weight: 600;
  color: var(--color-text);
}

.article__content em,
.article__content i {
  font-style: italic;
}

/* Unordered Lists */
.article__content ul {
  margin: var(--space-20) 0;
  padding-left: var(--space-24);
  list-style: none;
}

.article__content ul li {
  position: relative;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  padding-left: var(--space-8);
}

.article__content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: #1a7f7a;
  border-radius: 50%;
}

.article__content ul li:last-child {
  margin-bottom: 0;
}

/* Nested Unordered Lists */
.article__content ul ul {
  margin: var(--space-12) 0;
}

.article__content ul ul li::before {
  width: 5px;
  height: 5px;
  background-color: transparent;
  border: 1.5px solid #1a7f7a;
}

.article__content ul ul ul li::before {
  width: 4px;
  height: 4px;
  background-color: #999;
  border: none;
}

/* Ordered Lists */
.article__content ol {
  margin: var(--space-20) 0;
  padding-left: var(--space-24);
  counter-reset: list-counter;
  list-style: none;
}

.article__content ol li {
  position: relative;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-12);
  padding-left: var(--space-12);
  counter-increment: list-counter;
}

.article__content ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: -24px;
  font-weight: 600;
  color: #1a7f7a;
}

.article__content ol li:last-child {
  margin-bottom: 0;
}

/* Nested Ordered Lists */
.article__content ol ol {
  margin: var(--space-12) 0;
  counter-reset: nested-counter;
}

.article__content ol ol li {
  counter-increment: nested-counter;
}

.article__content ol ol li::before {
  content: counter(nested-counter, lower-alpha) ".";
  color: #666;
}

/* Mixed Nested Lists */
.article__content ul ol,
.article__content ol ul {
  margin: var(--space-12) 0;
}

/* Tables */
.article__content table {
  width: 100%;
  margin: var(--space-32) 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.article__content table thead {
  background-color: #f8f6f3;
}

.article__content table th {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid #e5e5e5;
}

.article__content table td {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.article__content table tbody tr:last-child td {
  border-bottom: none;
}

.article__content table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.article__content table tbody tr:hover {
  background-color: #f5f5f5;
}

/* Responsive Table Wrapper */
.article__content .table-wrapper,
.article__content .wp-block-table {
  overflow-x: auto;
  margin: var(--space-32) 0;
  -webkit-overflow-scrolling: touch;
}

.article__content .table-wrapper table,
.article__content .wp-block-table table {
  margin: 0;
}

/* Blockquotes */
.article__content blockquote {
  position: relative;
  margin: var(--space-32) 0;
  padding: var(--space-24) var(--space-32);
  background-color: #f8f6f3;
  border-left: 4px solid #1a7f7a;
  border-radius: 0 8px 8px 0;
}

.article__content blockquote p {
  font-size: 19px;
  font-style: italic;
  color: #444;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

.article__content blockquote p:last-child {
  margin-bottom: 0;
}

.article__content blockquote cite {
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: #888;
  margin-top: var(--space-12);
}

.article__content blockquote cite::before {
  content: '— ';
}

/* Code Inline */
.article__content code {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  color: #d63384;
}

/* Code Block */
.article__content pre {
  margin: var(--space-24) 0;
  padding: var(--space-20);
  background-color: #2d2d2d;
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article__content pre code {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  background-color: transparent;
  padding: 0;
  color: #f8f8f2;
}

/* Horizontal Rule */
.article__content hr {
  margin: var(--space-40) 0;
  border: none;
  height: 1px;
  background-color: #e5e5e5;
}

/* Images */
.article__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: var(--space-32) auto;
  border-radius: 8px;
}

.article__content figure {
  margin: var(--space-32) 0;
}

.article__content figure img {
  margin: 0 auto var(--space-12);
}

.article__content figcaption {
  font-size: 14px;
  color: #888;
  text-align: center;
  font-style: italic;
}

/* WordPress Alignment Classes */
.article__content .alignleft {
  float: left;
  margin: var(--space-8) var(--space-24) var(--space-16) 0;
}

.article__content .alignright {
  float: right;
  margin: var(--space-8) 0 var(--space-16) var(--space-24);
}

.article__content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article__content .alignfull {
  margin-left: calc(-12.5% - var(--space-16));
  margin-right: calc(-12.5% - var(--space-16));
  max-width: none;
  width: calc(100% + 25% + var(--space-32));
}

.article__content .alignwide {
  margin-left: -5%;
  margin-right: -5%;
  max-width: none;
  width: 110%;
}

/* Definition Lists */
.article__content dl {
  margin: var(--space-24) 0;
}

.article__content dt {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.article__content dd {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-left: var(--space-24);
  margin-bottom: var(--space-16);
}

/* Clearfix for floats */
.article__content::after {
  content: '';
  display: table;
  clear: both;
}

/* Share Section */
.article__share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-24) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-32);
}

.article__share-label {
  font-size: 14px;
  color: #666;
}

.article__share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: opacity 0.2s ease;
}

.article__share-btn:hover {
  opacity: 0.85;
}

.article__share-btn svg {
  width: 16px;
  height: 16px;
}

.article__share-btn--facebook {
  background-color: #1877f2;
}

.article__share-btn--twitter {
  background-color: #000;
}

.article__share-btn--linkedin {
  background-color: #0a66c2;
}

/* Author Bio */
.article__author-bio {
  display: flex;
  gap: 20px;
  padding: var(--space-24);
  background-color: var(--color-bg-light);
  border-radius: 16px;
}

.article__author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article__author-bio-content {
  display: flex;
  flex-direction: column;
}

.article__author-bio-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 4px;
}

.article__author-bio-name {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.article__author-bio-title {
  font-size: 13px;
  color: #1a7f7a;
  margin-bottom: var(--space-12);
}

.article__author-bio-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Related Articles Section */
.related-articles {
  padding: var(--space-64) 0;
  background-color: #f0ebe3;
}

.related-articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-32);
}

.related-articles__title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
}

.related-articles__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.related-articles__link:hover {
  color: #1a7f7a;
}

.related-articles__link svg {
  width: 16px;
  height: 16px;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-32);
}

/* Related Card */
.related-card {
  display: flex;
  gap: var(--space-20);
  background-color: #fff;
  border-radius: 16px;
  padding: var(--space-16);
}

.related-card__image {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__image img {
  transform: scale(1.05);
}

.related-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) 0;
}

.related-card__category {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: var(--space-8);
}

.related-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-12);
}

.related-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}

.related-card__title a:hover {
  color: #1a7f7a;
}

.related-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.related-card__meta-separator {
  width: 3px;
  height: 3px;
  background-color: #888;
  border-radius: 50%;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  /* Content Typography - Tablet */
  .article__content h1 {
    font-size: 36px;
    margin-top: 48px;
  }

  .article__content h2 {
    font-size: 30px;
    margin-top: 40px;
  }

  .article__content h3 {
    font-size: 24px;
    margin-top: 32px;
  }

  .article__content h4 {
    font-size: 20px;
  }

  .article__content h5 {
    font-size: 18px;
  }

  .article__content h6 {
    font-size: 16px;
  }

  .article__content p,
  .article__content ul li,
  .article__content ol li {
    font-size: 17px;
  }

  .article__content > p:first-of-type {
    font-size: 18px;
  }

  .article__content blockquote p {
    font-size: 17px;
  }

  /* Table - Tablet */
  .article__content table th,
  .article__content table td {
    padding: 12px 14px;
  }

  .related-articles__grid {
    gap: var(--space-24);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .article {
    padding: var(--space-24) 0 var(--space-48);
  }

  .article__title {
    font-size: 32px;
  }

  .article__excerpt {
    font-size: 15px;
  }

  .article__author-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .article__featured-image {
    margin-bottom: var(--space-32);
    border-radius: 12px;
  }

  /* Content Typography - Mobile */
  .article__content h1 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 18px;
  }

  .article__content h2 {
    font-size: 26px;
    margin-top: 36px;
    margin-bottom: 16px;
  }

  .article__content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 14px;
  }

  .article__content h4 {
    font-size: 20px;
    margin-top: 28px;
  }

  .article__content h5 {
    font-size: 18px;
  }

  .article__content h6 {
    font-size: 16px;
  }

  .article__content p,
  .article__content ul li,
  .article__content ol li {
    font-size: 16px;
  }

  .article__content > p:first-of-type {
    font-size: 17px;
  }

  /* Lists - Mobile */
  .article__content ul,
  .article__content ol {
    padding-left: var(--space-20);
  }

  .article__content ul li::before {
    left: -16px;
    width: 5px;
    height: 5px;
    top: 10px;
  }

  .article__content ol li::before {
    left: -20px;
  }

  /* Tables - Mobile */
  .article__content table th,
  .article__content table td {
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Blockquotes - Mobile */
  .article__content blockquote {
    padding: var(--space-16) var(--space-20);
    margin: var(--space-24) 0;
  }

  .article__content blockquote p {
    font-size: 16px;
  }

  /* Code - Mobile */
  .article__content pre {
    padding: var(--space-16);
    margin: var(--space-20) 0;
  }

  .article__content pre code {
    font-size: 13px;
  }

  /* WordPress Alignment - Mobile */
  .article__content .alignleft,
  .article__content .alignright {
    float: none;
    display: block;
    margin: var(--space-24) auto;
  }

  .article__content .alignfull,
  .article__content .alignwide {
    margin-left: -5%;
    margin-right: -5%;
    width: 110%;
  }

  .article__share {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .article__author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-20);
  }

  .article__author-bio-avatar {
    width: 70px;
    height: 70px;
  }

  .related-articles {
    padding: var(--space-48) 0;
  }

  .related-articles__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .related-articles__title {
    font-size: 26px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    padding: var(--space-12);
  }

  .related-card__image {
    width: 100px;
    height: 100px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .article__title {
    font-size: 28px;
  }

  .article__author-bio-name {
    font-size: 16px;
  }

  .related-articles__title {
    font-size: 22px;
  }

  .related-card__title {
    font-size: 14px;
  }
}

