/* ═══════════════════════════════════════════════════
   AWAKE NEWS — Article Page Styles
   Site: awakenewsroom.com
   Depends on: css/style.css (load first)
═══════════════════════════════════════════════════ */

/* ─── BREADCRUMB ─── */
.breadcrumb-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  transition: var(--trans-theme);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
}

.breadcrumb-link {
  color: var(--brand);
  transition: opacity var(--trans);
}

.breadcrumb-link:hover { opacity: 0.7; color: var(--brand); }

.breadcrumb-sep {
  font-size: 10px;
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ─── ARTICLE GRID ─── */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding: 24px 0 40px;
}

/* ─── ARTICLE COLUMN ─── */
.article-col {
  min-width: 0;
}

/* ─── ARTICLE HEADER ─── */
.article-header {
  margin-bottom: 16px;
}

.article-header .cat-badge {
  margin-bottom: 12px;
  font-size: 11px;
  padding: 4px 10px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.article-deck {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--brand);
  padding-left: 14px;
  margin-bottom: 0;
}

/* ─── META ROW ─── */
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.article-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name-sm {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-role-sm {
  font-size: 11px;
  color: var(--text-tertiary);
}

.article-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-sep { color: var(--border-strong); }

/* ─── SHARE BAR ─── */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.share-bar--bottom {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 14px;
  padding-bottom: 0;
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  text-decoration: none;
}

.share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-x:hover  { background: #000;    color: #fff; border-color: #000; }
.share-copy:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.copy-confirm {
  font-size: 12px;
  color: var(--cat-sports);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.copy-confirm.show { opacity: 1; }

/* ─── KEY POINTS ─── */
.key-points {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--trans-theme);
}

.key-points-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  padding: 10px 16px;
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
}

.key-points-list {
  list-style: none;
  padding: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.key-points-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ─── FEATURED IMAGE ─── */
.article-figure {
  margin-bottom: 20px;
}

.article-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.large-placeholder {
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.large-placeholder i { font-size: 40px; }

.article-caption {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
}

/* ─── AD SLOTS (article-specific) ─── */
.ad-article-top {
  height: 90px;
  margin-bottom: 20px;
}

.ad-article-mid {
  height: 90px;
  margin: 24px 0;
}

/* ─── ARTICLE BODY ─── */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.article-body p {
  margin-bottom: 18px;
}

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

.article-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-body strong { font-weight: 600; color: var(--text-primary); }

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { opacity: 0.8; }

.article-body ul, .article-body ol {
  margin: 0 0 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li { font-size: 16px; line-height: 1.7; }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--brand);
  margin: 24px 0;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: var(--trans-theme);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 8px !important;
}

.pull-quote cite {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: normal;
  font-weight: 500;
}

/* ─── TAGS ─── */
.article-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.tags-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
  white-space: nowrap;
}

.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.tag-pill:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
}

/* ─── AUTHOR CARD ─── */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
  transition: var(--trans-theme);
}

.author-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-card-body { flex: 1; }

.author-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.author-card-role {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.author-card-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.author-articles-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  transition: opacity var(--trans);
}

.author-articles-link:hover { opacity: 0.75; color: var(--brand); }

/* ─── COMMENTS ─── */
.comments-section {
  margin: 32px 0;
  padding-top: 8px;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-title i { color: var(--brand); }

.comments-count {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.comments-sort-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}

.comments-sort-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Comment form */
.comment-form-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  transition: var(--trans-theme);
}

.comment-form-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.comment-form-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-field:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.required { color: var(--brand); }

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-tertiary); }

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.form-checkbox { flex-direction: row; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.field-error {
  font-size: 12px;
  color: #c0392b;
  min-height: 16px;
}

.submit-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 16px;
  transition: background var(--trans), transform var(--trans);
}

.submit-comment-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.submit-comment-btn:active { transform: translateY(0); }
.submit-comment-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  margin-top: 12px;
  font-size: 13px;
  color: var(--cat-sports);
  font-weight: 500;
  min-height: 20px;
}

/* Comment list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: var(--trans-theme);
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.comment-sep { color: var(--border-strong); font-size: 11px; }

.comment-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.comment-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-like-btn,
.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px 9px;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  font-family: var(--font-body);
}

.comment-like-btn:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.comment-reply-btn:hover { background: var(--bg-secondary); color: var(--text-primary); }

.comment-like-btn.liked { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }

/* ─── RELATED STORIES ─── */
.related-section { margin-top: 32px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
}

.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.related-card-link { display: block; }

.related-card-img {
  height: 110px;
  overflow: hidden;
}

.related-card-img .img-placeholder { font-size: 20px; height: 100%; }

.related-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.related-card-link:hover .related-card-title { color: var(--brand); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .ad-sidebar { display: none; }

  .article-title { font-size: 24px; }

  .related-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .article-title { font-size: 20px; }
  .article-deck { font-size: 14px; }

  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .comment-form-row { grid-template-columns: 1fr; }

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

  .share-bar { gap: 5px; }
  .share-btn { font-size: 11px; padding: 5px 9px; }

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

  .breadcrumb-current { display: none; }

  .large-placeholder { height: 220px; }
}

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