/* article.css — Individual Article Page Styles */

.article-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--color-bg);
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-bottom: 3rem;
}

.article-back:hover {
  color: var(--gold);
}

.article-back-bottom {
  margin-top: 4rem;
  margin-bottom: 0;
  display: inline-flex;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.article-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.article-body {
  margin-bottom: 4rem;
}

.article-body p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.article-body strong {
  color: #fff;
  font-weight: 600;
}

.article-source {
  font-size: var(--text-sm) !important;
  color: var(--color-text-muted) !important;
  font-style: italic;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* Sales section at bottom of article */
.article-sales {
  position: relative;
  padding: 2.5rem;
  background: rgba(196, 164, 74, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.article-sales::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.article-sales-inner {
  position: relative;
}

.article-sales-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.article-sales-btn {
  white-space: nowrap;
}

/* ========== COMMENT SECTION ========== */
.comment-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.comment-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2rem;
}

/* Comment Form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.comment-form-row {
  display: flex;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color var(--transition-interactive);
}

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

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-submit-btn {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-interactive), box-shadow var(--transition-interactive);
}

.comment-submit-btn:hover {
  background: var(--green-hover);
  box-shadow: 0 0 20px var(--green-glow);
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Comment Messages */
.comment-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
  display: none;
}

.comment-msg-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.comment-msg-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Comment List */
.comment-list-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-item {
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: var(--gold-light);
  font-size: var(--text-sm);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.comment-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.comment-empty {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

.comment-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ========== NEW ARTICLE LAYOUT (Clark v2) ========== */

.article-hero {
  padding-bottom: 2rem;
}

.article-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 1rem;
}

.article-content {
  padding-bottom: 2rem;
}

.article-content p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.article-content strong {
  color: #fff;
  font-weight: 600;
}

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

.article-content li {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.article-content li strong {
  color: #fff;
}

.article-h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Sales box at bottom of article */
.sales-box {
  position: relative;
  padding: 2.5rem;
  background: rgba(196, 164, 74, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.sales-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sales-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.sales-box p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.sales-box .btn-primary {
  display: inline-flex;
  width: auto;
}

/* Back link */
.back-link-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--gold);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .article-page {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .article-container {
    padding: 0 1.25rem;
  }

  .article-title {
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
  }

  .article-subtitle {
    font-size: var(--text-sm);
  }

  .article-h2 {
    font-size: var(--text-lg);
    margin-top: 2rem;
  }

  .article-sales {
    padding: 1.5rem;
  }

  .sales-box {
    padding: 1.5rem;
  }

  .sales-box .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .comment-form-row {
    flex-direction: column;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding-top: 80px;
  }

  .article-container {
    padding: 0 1rem;
  }

  .article-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .sales-box {
    padding: 1.25rem;
  }
}
