/* ── Articles Page CSS ──────────────────────────────────── */

/* Hero */
.articles-hero {
    background: linear-gradient(135deg, #1e293b 0%, #2c3e50 100%);
    padding: 64px 24px 48px;
    text-align: center;
}
.articles-hero-inner { max-width: 640px; margin: 0 auto; }
.articles-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.articles-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}
.articles-hero-sub { font-size: 16px; color: rgba(255,255,255,.65); margin: 0; line-height: 1.6; }

/* Filters */
.articles-filters { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 24px; }
.articles-filters-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    padding: 12px 0;
}
.articles-filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.articles-filter-btn:hover { border-color: #c0392b; color: #c0392b; }
.articles-filter-btn.active { background: #c0392b; color: #fff; border-color: #c0392b; font-weight: 600; }

/* Body */
.articles-body { background: #f8fafc; padding: 40px 24px; }

/* Grid */
.articles-grid {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

/* Card */
.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: all .25s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.article-card-link { text-decoration: none; color: inherit; display: block; }

.article-card-img {
    height: 180px;
    position: relative;
}
.article-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.type-cikk     { background: rgba(59,130,246,.9); color: #fff; }
.type-hir      { background: rgba(22,163,74,.9);  color: #fff; }
.type-hirdetes { background: rgba(245,158,11,.9); color: #fff; }

.article-card-body { padding: 18px; }
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.article-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-cta { font-size: 13px; font-weight: 600; color: #c0392b; }

/* Empty */
.articles-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 64px 24px;
    color: #94a3b8;
}
.articles-empty-icon { font-size: 48px; margin-bottom: 16px; }
.articles-empty h3 { font-size: 18px; color: #475569; margin: 0 0 8px; }

/* Pagination */
.articles-pagination {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
}
.articles-pagination .page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.articles-pagination .page-numbers li a,
.articles-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
}
.articles-pagination .page-numbers li a:hover { border-color: #c0392b; color: #c0392b; }
.articles-pagination .page-numbers li span.current { background: #c0392b; color: #fff; border-color: #c0392b; font-weight: 600; }

/* Newsletter */
.articles-newsletter {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e293b, #2c3e50);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
}
.articles-newsletter-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.articles-newsletter-icon { font-size: 36px; flex-shrink: 0; }
.articles-newsletter-inner h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.articles-newsletter-inner p  { font-size: 14px; opacity: .7; margin: 0; }
.articles-nl-form { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.articles-nl-input {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    width: 220px;
    outline: none;
}
.articles-nl-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: #c0392b;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.articles-nl-btn:hover { background: #a93226; }
@media (max-width: 700px) { .articles-nl-form { margin-left: 0; width: 100%; flex-wrap: wrap; } .articles-nl-input { flex: 1; min-width: 0; } .articles-nl-btn { width: 100%; } }

/* ── Single Post ─────────────────────────────────────────── */
.single-post-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 0 24px 48px;
}
.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.single-post-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; width: 100%; }
.single-post-badge-topleft {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}
.single-post-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}
.single-post-back:hover { color: #fff; }
.single-post-badges { margin-bottom: 12px; }
.single-post-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
}
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    flex-wrap: wrap;
}

/* Post body */
.single-post-body { background: #f8fafc; padding: 40px 24px; }
.single-post-content-wrap { max-width: 800px; margin: 0 auto 40px; }
.single-post-content {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}
.single-post-content h2 { font-size: 22px; font-weight: 700; color: #1e293b; margin: 28px 0 12px; }
.single-post-content h3 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 24px 0 10px; }
.single-post-content p  { margin: 0 0 16px; }
.single-post-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin: 0 0 16px; }
.single-post-content li { margin-bottom: 6px; }

/* Tags */
.single-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.single-post-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Share */
.single-post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #64748b;
}
.share-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-fb { background: #1877f2; color: #fff; }
.share-wa { background: #25d366; color: #fff; }

/* Author */
.single-post-author {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 24px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.author-name { font-size: 15px; font-weight: 700; color: #1e293b; }
.author-bio  { font-size: 13px; color: #64748b; margin-top: 2px; }

/* Related */
.single-post-related { max-width: 800px; margin: 0 auto; }
.single-post-related h3 { font-size: 20px; font-weight: 700; color: #1e293b; margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { text-decoration: none; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s; }
.related-card:hover { transform: translateY(-3px); }
.related-card-img { height: 120px; }
.related-card-body { padding: 14px; }
.related-card-body h4 { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0 0 6px; line-height: 1.4; }
.related-card-body span { font-size: 12px; color: #94a3b8; }

/* Mobile fix */
@media (max-width: 768px) {
 .single-post-hero { min-height: 280px; }
 .single-post-title { font-size: 22px !important; line-height: 1.3; }
 .single-post-content { font-size: 16px; padding: 20px 16px; }
 .single-post-content img { max-width: 100% !important; height: auto !important; display: block; margin: 16px auto; }
 .single-post-content p { margin-bottom: 16px; }
 .single-post-content h2 { font-size: 20px; }
 .single-post-content h3 { font-size: 18px; }
 .single-post-content ul, .single-post-content ol { padding-left: 20px; }
 .single-post-layout { grid-template-columns: 1fr; padding: 0 16px; }
 .single-post-sidebar { display: none; }
}

.ms-ai-notice {
  font-size: .8rem;
  color: #888;
  margin: 1.5rem 0 0.5rem;
  font-style: italic;
}
