/* =============================================
   MAKALE DETAY SAYFASI — STYLES
   ============================================= */

/* ========================================
   ARTICLE HERO
   ======================================== */
/* --- ORTAK AVATAR DÜZENLEME --- */

/* Yazı içi yazar kutusu resmi */
.author-bio-img {
    width: 100px !important; 
    height: 100px !important; 
    object-fit: cover !important; 
    border-radius: 50% !important;
    display: block !important;
}

/* Yazar sayfası büyük profil resmi */
.author-img-big {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important; /* Büyük resim kare/kenarlı daha profesyonel durur */
}

/* Yazar kutusu kutucuk yapısı */
.author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 30px 0;
}

/* Yazar Sayfası Hero düzeni */
.author-profile-box {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 50px 0;
}

/* Grid Düzeni */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}



.article-hero {
  min-height: 60vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding-top: 80px; padding-bottom: 4rem;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #080d14 0%, #0a1628 40%, #0e1f3a 70%, #132240 100%);
}
.article-hero-content {
  position: relative; z-index: 1;
  max-width: 1340px; margin: 0 auto;
  padding: 0 2rem; width: 100%;
}
.article-cat-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(192,57,43,0.18);
  border: 1px solid rgba(192,57,43,0.4);
  color: #e74c3c; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4em 1em; border-radius: 100px;
  margin-bottom: 1.2rem;
}
.article-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600; color: #fff; line-height: 1.25;
  margin-bottom: 2rem; max-width: 860px;
}
.article-hero-meta {
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.meta-author { display: flex; align-items: center; gap: 0.8rem; }
.meta-author .author-av {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
}
.meta-author strong { display: block; color: #fff; font-size: 0.9rem; }
.meta-author span { font-size: 0.75rem; color: var(--gold); }
.meta-items { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.meta-items span { font-size: 0.78rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 0.35rem; }
.meta-items i { color: var(--gold); font-size: 0.7rem; }

/* ========================================
   ARTICLE LAYOUT
   ======================================== */
.article-layout-wrap { padding: 3.5rem 0 5rem; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */
.article-content { position: relative; }

/* Reading progress bar (inside article) */
.article-progress-wrap {
  height: 3px; background: var(--gray-200);
  border-radius: 100px; overflow: hidden;
  margin-bottom: 2.5rem;
}
.article-reading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  width: 0%; transition: width 0.1s;
}

/* Sticky share bar */
.share-sticky {
  position: sticky; top: 100px;
  float: left; margin-left: -70px;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  z-index: 50;
}
.share-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); writing-mode: vertical-rl; text-orientation: mixed; }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; border: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.share-btn.twitter { background: rgba(29,161,242,0.1); color: #1da1f2; }
.share-btn.twitter:hover { background: #1da1f2; color: #fff; }
.share-btn.linkedin { background: rgba(0,119,181,0.1); color: #0077b5; }
.share-btn.linkedin:hover { background: #0077b5; color: #fff; }
.share-btn.whatsapp { background: rgba(37,211,102,0.1); color: #25d366; }
.share-btn.whatsapp:hover { background: #25d366; color: #fff; }
.share-btn.copy { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.share-btn.copy:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.share-btn.bookmark { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.share-btn.bookmark.saved { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* Article cover */
.article-cover { margin-bottom: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article-cover-ph {
  width: 100%; height: 380px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; color: rgba(201,168,76,0.2);
  position: relative; overflow: hidden;
}
.cover-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cover-caption { background: var(--gray-100); padding: 0.75rem 1.2rem; font-size: 0.78rem; color: var(--gray-500); font-style: italic; }

/* Article body typography */
.article-body { font-size: 1rem; line-height: 1.9; color: var(--gray-700); }
.lead-paragraph { font-size: 1.1rem; line-height: 1.85; font-weight: 400; color: var(--black); border-left: 3px solid var(--gold); padding-left: 1.5rem; margin-bottom: 2.5rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 600;
  color: var(--black); line-height: 1.3;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}
.article-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--black); margin: 1.8rem 0 0.7rem; }
.article-body p { margin-bottom: 1.2rem; }

/* TOC */
.toc-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.toc-header {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.toc-list { padding-left: 1.2rem; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a { font-size: 0.88rem; color: var(--navy-light); transition: var(--transition); }
.toc-list a:hover { color: var(--gold); padding-left: 4px; }

/* Info cards */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.8rem 0; }
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: var(--transition);
}
.info-card:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-sm); }
.info-card-icon { font-size: 1.4rem; color: var(--gold); margin-bottom: 0.7rem; }
.info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--black); }
.info-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.7; margin: 0; }

/* Lists */
.article-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.article-list li { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.article-list li:last-child { border-bottom: none; }
.article-list i { color: var(--gold); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.article-list.check i { color: #48bb78; }

/* Highlight boxes */
.highlight-box {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  font-size: 0.88rem; line-height: 1.7;
}
.highlight-box.warning { background: rgba(230,126,34,0.08); border: 1px solid rgba(230,126,34,0.25); }
.highlight-box.warning > i { color: #e67e22; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.highlight-box.info { background: rgba(52,152,219,0.08); border: 1px solid rgba(52,152,219,0.25); }
.highlight-box.info > i { color: #3498db; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.highlight-box strong { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--black); }
.highlight-box p { margin: 0; color: var(--gray-700); }

/* Quote block */
.quote-block { margin: 2.5rem 0; display: flex; gap: 1.2rem; align-items: flex-start; }
.quote-line { width: 4px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem; font-style: italic;
  color: var(--navy-light); line-height: 1.7;
  margin: 0 0 0.5rem;
}
cite { font-size: 0.8rem; color: var(--gray-500); }

/* Penalty table */
.penalty-table { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.penalty-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.penalty-row.header { background: var(--navy); color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.penalty-row span { padding: 0.85rem 1.2rem; font-size: 0.85rem; border-right: 1px solid var(--gray-200); }
.penalty-row:not(.header):nth-child(even) { background: var(--gray-100); }
.penalty-row:not(.header):hover { background: var(--gold-pale); }
.penalty-row.header span { border-color: rgba(255,255,255,0.1); }

/* Steps */
.steps-list { display: flex; flex-direction: column; gap: 0; margin: 1.5rem 0; }
.step { display: flex; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200); }
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--gray-200); line-height: 1;
  flex-shrink: 0; width: 50px;
  transition: var(--transition);
}
.step:hover .step-num { color: var(--gold); }
.step-body h4 { font-size: 0.95rem; font-weight: 600; color: var(--black); margin-bottom: 0.4rem; }
.step-body p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.75; margin: 0; }

/* Article footer */
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  padding: 2rem 0; border-top: 1px solid var(--gray-200);
  margin-top: 3rem;
}
.article-tags { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.article-tags span { font-size: 0.75rem; color: var(--gray-500); }
.article-tags a { font-size: 0.75rem; font-weight: 500; padding: 0.3em 0.85em; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 100px; color: var(--gray-700); transition: var(--transition); }
.article-tags a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.article-share { display: flex; align-items: center; gap: 0.6rem; }
.article-share span { font-size: 0.8rem; color: var(--gray-500); }
.share-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); }
.share-icon.twitter { background: rgba(29,161,242,0.1); color: #1da1f2; }
.share-icon.twitter:hover { background: #1da1f2; color: #fff; }
.share-icon.linkedin { background: rgba(0,119,181,0.1); color: #0077b5; }
.share-icon.linkedin:hover { background: #0077b5; color: #fff; }
.share-icon.whatsapp { background: rgba(37,211,102,0.1); color: #25d366; }
.share-icon.whatsapp:hover { background: #25d366; color: #fff; }


/* Comments */
.comments-section { margin-top: 3rem; }
.comments-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.6rem; }
.comments-title i { color: var(--gold); }
.comments-title span { font-size: 0.85rem; color: var(--gray-500); font-weight: 400; }
.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment { display: flex; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200); }
.comment.reply { padding-left: 3rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: 1.2rem; margin: 0.5rem 0 0.5rem 3rem; border-bottom: none; }
.comment-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 0.95rem; }
.comment-av.female { background: linear-gradient(135deg, #f8e1f8, #e1c4f8); color: #8e44ad; }
.comment-av.author-reply { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold); }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-header strong { font-size: 0.88rem; }
.comment-header > span:not(.author-badge) { font-size: 0.75rem; color: var(--gray-500); }
.author-badge { background: var(--gold); color: var(--navy); font-size: 0.65rem; font-weight: 700; padding: 0.15em 0.6em; border-radius: 100px; letter-spacing: 0.05em; }
.comment-body p { font-size: 0.88rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 0.7rem; }
.comment-actions { display: flex; gap: 0.8rem; }
.comment-actions button { background: none; border: none; font-size: 0.78rem; color: var(--gray-500); cursor: pointer; display: flex; align-items: center; gap: 0.35rem; transition: var(--transition); font-family: var(--font-body); padding: 0; }
.comment-actions button:hover { color: var(--gold); }
.comment-form { background: var(--gray-100); border-radius: var(--radius-lg); padding: 1.8rem; margin-top: 2.5rem; border: 1px solid var(--gray-200); }
.comment-form h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form input,
.comment-form textarea {
  width: 100%; background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body); font-size: 0.85rem; color: var(--black);
  outline: none; transition: var(--transition);
}
.comment-form textarea { margin-bottom: 1rem; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--gold); background: var(--white); }
.btn-comment {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; border: none; cursor: pointer;
  padding: 0.8rem 1.8rem; border-radius: 100px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.btn-comment:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); transform: translateY(-2px); }

/* ========================================
   ARTICLE SIDEBAR
   ======================================== */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.back-to-blog {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-light);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.65rem 1.2rem;
  border-radius: 100px;
  transition: var(--transition);
  align-self: flex-start;
}
.back-to-blog:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--gold); }
.reading-progress-card { padding: 1.2rem 1.6rem; }
.rp-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; }
.rp-bar-wrap { background: var(--gray-200); border-radius: 100px; height: 6px; overflow: hidden; margin-bottom: 0.5rem; }
.rp-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 100px; width: 0%; transition: width 0.2s; }
.rp-percent { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-align: right; }
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-item { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; transition: var(--transition); padding: 0.5rem; border-radius: var(--radius-sm); }
.related-item:hover { background: var(--gold-pale); }
.related-img { width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.related-item strong { display: block; font-size: 0.8rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; color: var(--black); }
.related-item span { font-size: 0.72rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.3rem; }
.related-item span i { color: var(--gold); font-size: 0.65rem; }

/* ========================================
   DARK MODE EXTRAS
   ======================================== */
[data-theme="dark"] .article-body,
[data-theme="dark"] .lead-paragraph { color: var(--gray-700); }
[data-theme="dark"] .toc-box,
[data-theme="dark"] .comment-form { background: var(--gray-200); border-color: var(--gray-300); }
[data-theme="dark"] .info-card,
[data-theme="dark"] .author-bio { background: var(--gray-100); border-color: var(--gray-200); }
[data-theme="dark"] .penalty-row:not(.header):nth-child(even) { background: var(--gray-200); }
[data-theme="dark"] .cover-caption { background: var(--gray-200); }
[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea { background: var(--gray-300); border-color: var(--gray-300); color: var(--black); }
[data-theme="dark"] .article-tags a { background: var(--gray-200); border-color: var(--gray-300); }
[data-theme="dark"] .share-btn.copy,
[data-theme="dark"] .share-btn.bookmark { background: var(--gray-200); border-color: var(--gray-300); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr 280px; }
  .share-sticky { display: none; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .share-sticky { display: none; }
  .info-cards { grid-template-columns: 1fr; }
  .comment-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-hero-title { font-size: 1.6rem; }
  .penalty-row { grid-template-columns: 1fr; }
  .penalty-row span { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .article-footer { flex-direction: column; align-items: flex-start; }
}
