/* ═══════════════════════════════════════════════
   KARINCA Blog — Tipografi + Layout
   ═══════════════════════════════════════════════ */

/* ── Blog Hero ── */
.blog-hero {
    padding: 100px 0 60px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(80px);
}
.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.blog-hero h1 {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.blog-hero h1 .hl {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero p {
    font-size: 19px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ── Search ── */
.blog-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}
.blog-search input {
    width: 100%;
    padding: 16px 22px 16px 52px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 15px;
    font-family: var(--font);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.blog-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.blog-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-mute);
}

/* ── Categories ── */
.blog-cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 28px 0 0;
}
.blog-cat {
    padding: 8px 18px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
}
.blog-cat:hover, .blog-cat.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Featured Post ── */
.blog-featured {
    padding: 60px 0 30px;
}
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: var(--radius-xl);
    padding: 50px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.25s;
}
.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.featured-card .badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.featured-card h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.featured-card h2 a { color: var(--text); transition: color 0.2s; }
.featured-card h2 a:hover { color: var(--primary); }
.featured-card p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-mute);
    font-size: 13.5px;
}
.featured-img {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    overflow: hidden;
}
.featured-img::after {
    content: '🐣';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.4;
}

/* ── Posts Grid ── */
.blog-posts {
    padding: 60px 0 100px;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-soft);
}
.post-card-img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #FFE4D6, #FFB627);
    position: relative;
}
.post-card-img.g1 { background: linear-gradient(135deg, #FFE4D6, #FF6B35); }
.post-card-img.g2 { background: linear-gradient(135deg, #E8F0FE, #3B82F6); }
.post-card-img.g3 { background: linear-gradient(135deg, #D4F4DD, #22C55E); }
.post-card-img.g4 { background: linear-gradient(135deg, #FEF3C7, #FFB627); }
.post-card-img.g5 { background: linear-gradient(135deg, #F3E8FF, #A855F7); }
.post-card-img.g6 { background: linear-gradient(135deg, #FFE4E6, #EC4899); }
.post-card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}
.post-card-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card h3 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.post-card h3 a { color: var(--text); transition: color 0.2s; }
.post-card h3:hover a { color: var(--primary); }
.post-card p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-mute);
    font-size: 12.5px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.post-card-meta .dot { color: var(--text-mute); }

/* ═══════════ ARTICLE (Tek Post) ═══════════ */
.article-hero {
    padding: 60px 0 40px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.article-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.article-back:hover { transform: translateX(-3px); }
.article-cat {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
.article-hero h1 {
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    margin-bottom: 22px;
}
.article-hero p.lead {
    font-size: 19px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 28px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 14px;
}
.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}
.article-author strong {
    display: block;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
}
.article-author span { font-size: 13px; }
.article-meta .sep { color: var(--text-mute); }

.article-cover {
    aspect-ratio: 16/8;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto;
    max-width: 920px;
    margin-top: 40px;
}

/* ── Article Body ── */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
    font-size: 17.5px;
    line-height: 1.8;
    color: #2A2A45;
}
.article-body h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin: 56px 0 18px;
    letter-spacing: -0.5px;
    color: var(--text);
}
.article-body h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 40px 0 14px;
    color: var(--text);
}
.article-body p {
    margin-bottom: 22px;
}
.article-body p strong {
    color: var(--text);
    font-weight: 700;
}
.article-body a {
    color: var(--primary);
    border-bottom: 1.5px solid rgba(255, 107, 53, 0.3);
    transition: all 0.2s;
}
.article-body a:hover {
    border-bottom-color: var(--primary);
}
.article-body ul, .article-body ol {
    margin: 22px 0 22px 24px;
    padding-left: 0;
}
.article-body ul li, .article-body ol li {
    margin-bottom: 12px;
    padding-left: 8px;
}
.article-body ul li {
    list-style: none;
    position: relative;
    padding-left: 28px;
}
.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}
.article-body ol {
    counter-reset: list;
    list-style: none;
}
.article-body ol li {
    counter-increment: list;
    position: relative;
    padding-left: 36px;
}
.article-body ol li::before {
    content: counter(list);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}
.article-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
    font-size: 17px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 32px 0;
}
.article-body code {
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.92em;
    color: var(--primary);
    font-family: 'SF Mono', Consolas, monospace;
}
.article-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* ── Article CTA ── */
.article-cta {
    margin: 56px 0 24px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border);
}
.article-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.article-cta p {
    color: var(--text-soft);
    margin-bottom: 24px;
    font-size: 16px;
}

/* ── Tags ── */
.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.article-tag {
    padding: 6px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--text-soft);
    font-weight: 600;
    transition: all 0.2s;
}
.article-tag:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-soft);
}

/* ── Share ── */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.article-share span {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 14px;
    transition: all 0.2s;
}
.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ── Related Posts ── */
.article-related {
    background: var(--bg-soft);
    padding: 80px 0;
}
.article-related h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Reading Progress ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1000;
    transition: width 0.1s;
}

/* ── TOC (Table of Contents) ── */
.article-toc {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 32px 0 40px;
}
.article-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.article-toc ol {
    margin: 0;
    counter-reset: toc;
    list-style: none;
}
.article-toc li {
    counter-increment: toc;
    padding: 6px 0;
    font-size: 15px;
}
.article-toc li::before {
    content: counter(toc) '.';
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}
.article-toc a {
    color: var(--text);
    border: none;
    transition: color 0.2s;
}
.article-toc a:hover { color: var(--primary); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 968px) {
    .featured-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .blog-hero { padding: 60px 0 40px; }
    .blog-hero h1 { font-size: 34px; }
    .posts-grid { grid-template-columns: 1fr; }
    .article-body { padding: 40px 24px; font-size: 16.5px; }
    .article-body h2 { font-size: 24px; margin-top: 40px; }
    .article-body h3 { font-size: 20px; }
    .article-meta { flex-wrap: wrap; gap: 12px; }
    .featured-card { padding: 24px; }
    .article-cta { padding: 28px; }
}
