/* ==========================================
   5StarsStocks.news - Article Page Styles
   ========================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #3182ce;
}

.breadcrumb .separator {
  color: #9ca3af;
  font-size: 10px;
}

.breadcrumb .current {
  color: #1a202c;
  font-weight: 500;
}

/* Article Page */
.article-page {
  padding: 32px 0 60px;
}

/* Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}

.article-category-badge {
  display: inline-block;
  background: #3182ce;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a202c;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.article-meta .date {
  color: #6b7280;
}

.article-meta .separator {
  width: 4px;
  height: 4px;
  background: #9ca3af;
  border-radius: 50%;
}

.article-meta .read-time {
  color: #6b7280;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

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

.placeholder-image.large {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #718096;
  font-size: 14px;
}

/* Article Body */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: #2d3748;
}

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

.article-lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #1a202c;
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-body a {
  color: #3182ce;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: #2c5282;
}

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

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.article-body figure {
  margin: 32px 0;
}

.article-body figcaption {
  font-size: 13px;
  color: #718096;
  text-align: center;
  margin-top: 8px;
}

/* Article Quote */
.article-quote {
  border-left: 4px solid #3182ce;
  background: #f7fafc;
  padding: 24px 24px 24px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2d3748;
  font-size: 18px;
  line-height: 1.7;
}

.article-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: #718096;
  font-weight: 500;
}

/* Article List */
.article-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 24px;
}

.article-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.7;
  color: #2d3748;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #3182ce;
  border-radius: 50%;
}

/* Article Numbered List */
.article-numbered-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 24px;
  counter-reset: article-counter;
}

.article-numbered-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #2d3748;
  counter-increment: article-counter;
}

.article-numbered-list li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: #3182ce;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Article Tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.article-tags .tag-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}

.article-tags .tag {
  display: inline-block;
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #4a5568;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.2s;
}

.article-tags .tag:hover {
  background: #3182ce;
  color: #ffffff;
  border-color: #3182ce;
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.article-share .share-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}

.article-share .share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 16px;
}

.article-share .share-btn:hover {
  background: #3182ce;
  color: #ffffff;
  border-color: #3182ce;
}

.article-share .share-btn.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.article-share .share-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.article-share .share-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.article-share .share-btn.email:hover {
  background: #718096;
  border-color: #718096;
}

/* Comments Section */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.comments-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.comments-header .comment-count {
  font-size: 14px;
  color: #718096;
  background: #edf2f7;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: 600;
  font-size: 16px;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-name {
  font-weight: 600;
  color: #1a202c;
  font-size: 15px;
}

.comment-date {
  font-size: 13px;
  color: #718096;
}

.comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
}

.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.comment-actions button {
  background: none;
  border: none;
  color: #718096;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.comment-actions button:hover {
  color: #3182ce;
}

/* Comment Form */
.comment-form {
  margin-top: 32px;
  padding: 24px;
  background: #f7fafc;
  border-radius: 8px;
}

.comment-form h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 20px;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 15px;
  color: #2d3748;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

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

.comment-form .submit-btn {
  background: #3182ce;
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit-btn:hover {
  background: #2c5282;
}

/* Related Articles */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.related-articles h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 24px;
}

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

.related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.related-card .card-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

.related-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .card-content {
  padding: 16px;
}

.related-card .card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #3182ce;
  margin-bottom: 8px;
}

.related-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.related-card .card-title a:hover {
  color: #3182ce;
}

.related-card .card-meta {
  font-size: 12px;
  color: #718096;
}

/* Responsive - Tablet (1024px) */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .placeholder-image.large {
    height: 350px;
  }

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

/* Responsive - Mobile Landscape (768px) */
@media (max-width: 768px) {
  .article-page {
    padding: 24px 0 40px;
  }

  .article-layout {
    gap: 32px;
  }

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

  .article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .placeholder-image.large {
    height: 280px;
  }

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

  .article-lead {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-quote {
    font-size: 16px;
    padding: 20px;
    margin: 24px 0;
  }

  .article-list li,
  .article-numbered-list li {
    font-size: 16px;
    padding-left: 28px;
  }

  .article-numbered-list li {
    padding-left: 32px;
  }

  .article-tags {
    gap: 8px;
    margin-top: 32px;
  }

  .article-share {
    flex-wrap: wrap;
    gap: 10px;
  }

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

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

  .related-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .related-card .card-image {
    height: 100%;
  }

  .related-card .card-content {
    padding: 12px;
  }

  .related-card .card-title {
    font-size: 14px;
  }
}

/* Responsive - Mobile Portrait (480px) */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 11px;
    gap: 6px;
  }

  .article-category-badge {
    font-size: 10px;
    padding: 5px 10px;
  }

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

  .article-meta {
    font-size: 12px;
    gap: 6px;
  }

  .placeholder-image.large {
    height: 200px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 20px;
    margin-top: 28px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .article-quote {
    font-size: 15px;
    padding: 16px;
  }

  .article-list li,
  .article-numbered-list li {
    font-size: 15px;
    padding-left: 24px;
    line-height: 1.6;
  }

  .article-numbered-list li {
    padding-left: 28px;
  }

  .article-numbered-list li::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .article-tags .tag {
    font-size: 11px;
    padding: 5px 12px;
  }

  .article-share .share-label {
    font-size: 13px;
    width: 100%;
  }

  .article-share .share-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .comments-header h3 {
    font-size: 20px;
  }

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

  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .comment-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .comment-name {
    font-size: 14px;
  }

  .comment-text {
    font-size: 14px;
  }

  .comment-form {
    padding: 16px;
  }

  .comment-form h4 {
    font-size: 16px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .comment-form .submit-btn {
    width: 100%;
    padding: 14px;
  }

  .related-articles h2 {
    font-size: 20px;
  }

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

  .related-card .card-image {
    height: 140px;
  }
}
