/* ═══════════════════════════════════════════════════════
   PulsePress — Tema CSS
   Dark warm stone palette
   ═══════════════════════════════════════════════════════ */

/* ── NAV DROPDOWN ─────────────────────────────────── */
.pp-nav-list li {
    position: relative;
}
.pp-nav-list li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1c1917; /* stone-900 */
    border: 1px solid rgba(120, 113, 108, .3);
    border-radius: .5rem;
    padding: .5rem 0;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,.5);
}
.pp-nav-list li:hover > ul {
    display: block;
}
.pp-nav-list li > ul a {
    display: block;
    padding: .5rem 1rem;
    color: #a8a29e; /* stone-400 */
    font-size: .875rem;
    transition: color .15s, background .15s;
}
.pp-nav-list li > ul a:hover {
    color: #fafaf9;
    background: rgba(120, 113, 108, .15);
}

/* ── SUB-SUB MENU ─────────────────────────────────── */
.pp-nav-list li > ul li {
    position: relative;
}
.pp-nav-list li > ul li > ul {
    top: 0;
    left: 100%;
}

/* ── STICKY HEADER ────────────────────────────────── */
#pp-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

/* ── PAGINATION ───────────────────────────────────── */
.pagination-links {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.pagination-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: .25rem .75rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: #a8a29e;
    background: #1c1917;
    border: 1px solid rgba(120, 113, 108, .3);
    transition: all .2s;
}
.pagination-links .page-numbers:hover {
    color: #fafaf9;
    border-color: var(--pp-primary, #e11d48);
    background: rgba(225, 29, 72, .1);
}
.pagination-links .page-numbers.current {
    color: #fff;
    background: var(--pp-primary, #e11d48);
    border-color: transparent;
}

/* ── LINE CLAMP ───────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── GRADIENT TEXT FALLBACK ────────────────────────── */
.pp-gradient-text {
    background: linear-gradient(135deg, var(--pp-primary, #e11d48), var(--pp-secondary, #f97316));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── EMBER GLOW ───────────────────────────────────── */
.pp-ember-glow:hover {
    box-shadow: 0 0 20px rgba(225, 29, 72, .15), 0 0 40px rgba(249, 115, 22, .08);
}

/* ── TOP GRADIENT BORDER ──────────────────────────── */
.pp-top-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pp-primary, #e11d48), var(--pp-secondary, #f97316), var(--pp-accent, #06b6d4));
    border-radius: .5rem .5rem 0 0;
    opacity: 0;
    transition: opacity .3s;
}
.pp-top-gradient:hover::before {
    opacity: 1;
}

/* ── PROSE DARK OVERRIDES ─────────────────────────── */
.prose-invert a {
    color: var(--pp-primary, #e11d48);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose-invert a:hover {
    color: var(--pp-secondary, #f97316);
}
.prose-invert blockquote {
    border-left-color: var(--pp-primary, #e11d48);
    color: #d6d3d1;
}
.prose-invert code {
    background: #292524;
    padding: .15rem .35rem;
    border-radius: .25rem;
    font-size: .875em;
    color: #fbbf24;
}
.prose-invert pre {
    background: #1c1917 !important;
    border: 1px solid rgba(120, 113, 108, .2);
}

/* ═══ ARTICLE CONTENT — Makale İçerik Stilleri ═══ */
.article-content { word-break: break-word; overflow-wrap: break-word; }
.article-content h2 { position: relative; padding-bottom: 0.75rem; }
.article-content h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--pp-primary, #e11d48); border-radius: 2px; }
.article-content h3 { position: relative; padding-left: 1rem; }
.article-content h3::before { content: ''; position: absolute; left: 0; top: 0.25em; width: 4px; height: 1em; background: var(--pp-primary, #e11d48); border-radius: 2px; }
.article-content p { margin-bottom: 1.5em; }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong, .article-content b { font-weight: 700; color: #fafaf9; }
.article-content em, .article-content i { font-style: italic; color: #d6d3d1; }
.article-content ul, .article-content ol { padding-left: 1.75em; margin: 1.5em 0; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { padding: 0.35em 0; line-height: 1.75; }
.article-content li::marker { color: var(--pp-primary, #e11d48); }
.article-content blockquote { position: relative; margin: 2em 0; }
.article-content blockquote p { font-size: 1.05em; }
.article-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.article-content figure { margin: 2em 0; }
.article-content figcaption { text-align: center; font-size: 0.875rem; color: #a8a29e; margin-top: 0.75rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 2em 0; border-radius: 0.5rem; overflow: hidden; }
.article-content th { background: #292524; color: #fafaf9; font-weight: 600; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid rgba(225,29,72,0.3); }
.article-content td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(120,113,108,0.2); color: #d6d3d1; }
.article-content tr:hover td { background: rgba(255,255,255,0.02); }
.article-content a { transition: color 0.2s; }
.article-content hr { border: none; border-top: 1px solid rgba(120,113,108,0.3); margin: 3em 0; }
.article-content .wp-block-separator { border-top: 2px solid var(--pp-primary, #e11d48); width: 80px; margin: 3em auto; }
@media (max-width: 640px) {
    .article-content h2 { font-size: 1.375rem; }
    .article-content h3 { font-size: 1.2rem; }
    .article-content table { font-size: 0.875rem; }
}

/* ── SMOOTH REVEAL ────────────────────────────────── */
.pp-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.pp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── CATEGORY BADGE ───────────────────────────────── */
.pp-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: .375rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .025em;
    background: rgba(225, 29, 72, .15);
    color: var(--pp-primary, #e11d48);
    transition: all .2s;
}
.pp-cat-badge:hover {
    background: rgba(225, 29, 72, .25);
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0a09;
}
::-webkit-scrollbar-thumb {
    background: #44403c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #57534e;
}

/* ── PRINT ────────────────────────────────────────── */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    header, footer, nav, .no-print {
        display: none !important;
    }
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    .prose-invert {
        color: #000 !important;
    }
}
