/* ===========================================
   ARTICLE PAGE — idealbrico.ro
   =========================================== */

/* ── Title ─────────────────────────────────── */
.article-page .article-title {
  max-width: 820px;
}

.article-page .article-title h1 {
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0;
}

/* ── Meta info ─────────────────────────────── */
.article-page .article-info {
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 13px;
  line-height: 1.4em;
  padding: 12px 0;
  border-bottom: 1px solid var(--miscellaneous-color, #f0f0f0);
  margin-bottom: 24px;
}

.article-page .article-info .author {
  color: #555;
  font-weight: 600;
}

.article-page .article-info .author::before {
  content: '·';
  margin-right: 12px;
  color: #ccc;
}

/* ── Featured image ────────────────────────── */
.article-page .article-image {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.article-page .article-image img {
  width: 100%;
  display: block;
}

/* ── Content ───────────────────────────────── */
.article-page .article-content {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--miscellaneous-color, #f0f0f0);
}

.article-page .article-content p {
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
  line-height: 1.7em;
  font-size: 16px;
  display: block;
  color: #333;
  margin-bottom: 20px;
}

.article-page .article-content h2,
.article-page .article-content h3,
.article-page .article-content h4,
.article-page .article-content h5,
.article-page .article-content h6 {
  max-width: 820px;
  margin: 32px auto 16px;
  color: #1a1a1a;
}

.article-page .article-content h2 {
  font-size: 26px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color, #05a845);
}

.article-page .article-content h3 {
  font-size: 22px;
  font-weight: 700;
}

.article-page .article-content h4 {
  font-size: 18px;
  font-weight: 700;
}

.article-page .article-content h2 a,
.article-page .article-content h3 a,
.article-page .article-content h4 a,
.article-page .article-content h5 a,
.article-page .article-content h6 a {
  color: inherit;
  text-decoration: none;
}

.article-page .article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.article-page .article-content blockquote {
  max-width: 780px;
  margin: 24px auto;
  padding: 20px 24px;
  border-left: 4px solid var(--primary-color, #05a845);
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.article-page .article-content ul,
.article-page .article-content ol {
  max-width: 820px;
  margin: 16px auto;
  padding-left: 24px;
  line-height: 1.7;
  color: #333;
}

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

.article-page .article-content table {
  margin: 20px auto;
  max-width: 820px;
  width: 100%;
  border-collapse: collapse;
}

.article-page .article-content table th,
.article-page .article-content table td {
  padding: 10px 14px;
  border: 1px solid var(--miscellaneous-color, #e8e8e8);
  text-align: left;
}

.article-page .article-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

.article-page .article-content .fs-16 {
  font-size: 16px;
  line-height: 1.6em;
}

.article-page .article-content .fs-17 {
  font-size: 17px;
  line-height: 1.7em;
}

.article-page .article-content .fs-18 {
  font-size: 18px;
  line-height: 1.8em;
  font-weight: 500;
}

.article-page .article-content .flex {
  align-items: center;
}

/* ── Social share ──────────────────────────── */
.article-page .share-social {
  max-width: 820px;
  margin: 40px auto 50px;
  display: flex;
}

.article-page .social-sharing {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  transition: all .2s ease-in-out;
}

.article-page .social-sharing.active {
  display: flex;
}

.article-page .social-sharing > li {
  padding: 0;
}

.article-page .social-sharing a {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.2s, opacity 0.2s;
}

.article-page .social-sharing a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.article-page .social-sharing a svg {
  width: 14px;
  height: 14px;
}

.article-page .social-sharing a svg path {
  fill: #fff;
}

.article-page .share-facebook { background: #4267b2; }
.article-page .share-twitter { background: #1da1f2; }
.article-page .share-pinterest { background: #cb2027; }

.article-page .share-list-btn {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-color, #05a845);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.article-page .share-list-btn:hover {
  transform: scale(1.1);
}

.article-page .share-list-btn svg {
  width: 14px;
  height: 14px;
}

.article-page .share-list-btn svg path {
  fill: #fff;
}

/* ── Comments ──────────────────────────────── */
.article-page .section-container > .h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.article-page .list-comments {
  margin-bottom: 35px;
}

.article-page .comment-item {
  background: #f8f9fa;
  border: 1px solid var(--miscellaneous-color, #e8e8e8);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 10px;
}

.article-page .comment-inner {
  margin: 0;
}

.article-page .comment-inner > div {
  padding: 0;
}

.article-page .comment-author {
  flex: 0 0 32px;
  max-width: 32px;
  -webkit-margin-end: 15px;
  margin-inline-end: 15px;
}

.article-page .comment-info {
  margin-bottom: 10px;
}

.article-page .comment-info .comment-author {
  -webkit-margin-end: 5px;
  margin-inline-end: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.article-page .comment-create-at {
  color: #888;
  font-size: 13px;
}

.article-page .comment-content {
  line-height: 1.55em;
  color: #444;
}

.article-page .comment-content p {
  margin: 0;
}

/* ── Comment form ──────────────────────────── */
.article-comment-form-wrapper {
  margin-bottom: 60px;
  margin-top: 40px;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--miscellaneous-color, #e8e8e8);
}

.article-comment-form-wrapper h2 {
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.article-comment-form-wrapper .form-status {
  font-size: 15px;
  margin-bottom: 20px;
}

.article-comment-form-wrapper input:not(.btn),
.article-comment-form-wrapper textarea {
  background: #fff;
  border: 1px solid var(--miscellaneous-color, #e8e8e8);
  border-radius: var(--border-radius, 6px);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.article-comment-form-wrapper input:not(.btn):focus,
.article-comment-form-wrapper textarea:focus {
  border-color: var(--primary-color, #05a845);
  box-shadow: 0 0 0 3px rgba(5,168,69,0.12);
  outline: none;
}

.article-comment-form-wrapper input.btn {
  max-width: 220px;
  background: var(--primary-color, #05a845);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  height: 46px;
  border-radius: var(--border-radius, 6px);
  transition: background 0.2s;
}

.article-comment-form-wrapper input.btn:hover {
  background: #048a38;
}

.article-comment-form-wrapper .label-field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.article-comment-form-wrapper .form-warning {
  color: var(--primary-color, #05a845);
  font-size: 13px;
  margin-bottom: 16px;
}

.article-comment-form-wrapper .form-field {
  margin-bottom: 16px;
}

.article-comment-form-wrapper .form__message {
  font-size: 14px;
  font-weight: 400;
  color: #dc2626;
  margin-top: 6px;
  display: block;
}

/* ── Desktop ───────────────────────────────── */
@media (min-width: 1000px) {
  .article-page .article-title h1 {
    font-size: 42px;
  }
}
