/*
Theme Name: PixelForge
Theme URI: https://example.com/pixelforge
Author: WP Factory
Description: 2026 bold editorial dergi teması. Asimetrik grid, gazete tipografisi, DM Sans + Satoshi fontları. Renk blokları, bold vurgular. %100 Semantic SEO, Schema.org JSON-LD, hızlı indexlenme.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pixelforge
Tags: blog, news, magazine, editorial, custom-colors, custom-logo, featured-images, translation-ready
*/

/* ─── CSS Değişkenler ────────────────────── */
:root {
    --pf-primary: #e11d48;
    --pf-primary-rgb: 225, 29, 72;
    --pf-secondary: #7c3aed;
    --pf-secondary-rgb: 124, 58, 237;
    --pf-accent: #0ea5e9;
    --pf-accent-rgb: 14, 165, 233;
    --pf-text: #0f172a;
    --pf-muted: #64748b;
    --pf-surface: #fafafa;
    --pf-border: #e5e7eb;
    --pf-font-heading: 'DM Sans', sans-serif;
    --pf-font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ─── Genel ──────────────────────────────── */
body {
    font-family: var(--pf-font-body);
    color: var(--pf-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pf-font-heading);
    font-weight: 700;
}

/* ─── Header ─────────────────────────────── */
#pf-header {
    transition: all 0.3s ease;
}

#pf-header.pf-scrolled {
    box-shadow: 0 1px 0 var(--pf-border);
}

/* ─── Navigasyon ─────────────────────────── */
.pf-nav-link {
    font-family: var(--pf-font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--pf-text);
    padding: 0.375rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.pf-nav-link:hover {
    color: rgba(var(--pf-primary-rgb));
}

.pf-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(var(--pf-primary-rgb));
    transition: width 0.2s ease;
}

.pf-nav-link:hover::after {
    width: 100%;
}

/* ─── Mobil Menü ─────────────────────────── */
#pf-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#pf-mobile-nav.pf-open {
    max-height: 600px;
}

/* ─── Kartlar ────────────────────────────── */
.pf-card {
    background: #fff;
    border: 1px solid var(--pf-border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.pf-card:hover {
    border-color: rgba(var(--pf-primary-rgb), 0.2);
}

.pf-card-sharp {
    background: #fff;
    border: 2px solid var(--pf-text);
    overflow: hidden;
    transition: all 0.15s ease;
}

.pf-card-sharp:hover {
    background: rgba(var(--pf-primary-rgb), 0.03);
}

/* ─── Bold Kategori Tag ─────────────────── */
.pf-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-family: var(--pf-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(var(--pf-primary-rgb));
    color: #fff;
    transition: background 0.2s ease;
}

.pf-tag:hover {
    background: rgba(var(--pf-secondary-rgb));
}

.pf-tag-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-family: var(--pf-font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1.5px solid var(--pf-text);
    color: var(--pf-text);
    transition: all 0.2s ease;
}

.pf-tag-outline:hover {
    background: var(--pf-text);
    color: #fff;
}

/* ─── Bölüm Başlıkları — Gazete Stili ───── */
.pf-section-heading {
    font-family: var(--pf-font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pf-text);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--pf-text);
    margin-bottom: 1.5rem;
}

.pf-divider {
    border: 0;
    border-top: 1px solid var(--pf-border);
    margin: 0;
}

.pf-divider-bold {
    border: 0;
    border-top: 3px solid var(--pf-text);
    margin: 0;
}

/* ─── Makale İçeriği ─────────────────────── */
.pf-article-content {
    font-family: var(--pf-font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #1e293b;
}

.pf-article-content h2,
.pf-article-content h3,
.pf-article-content h4 {
    font-family: var(--pf-font-heading);
    font-weight: 800;
    color: var(--pf-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.pf-article-content h2 {
    font-size: 1.625rem;
    line-height: 1.3;
}

.pf-article-content h3 {
    font-size: 1.25rem;
}

.pf-article-content p {
    margin-bottom: 1.25rem;
}

.pf-article-content blockquote {
    border-left: 4px solid rgba(var(--pf-primary-rgb));
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #334155;
    background: rgba(var(--pf-primary-rgb), 0.03);
}

.pf-article-content a {
    color: rgba(var(--pf-primary-rgb));
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(var(--pf-primary-rgb), 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.pf-article-content a:hover {
    text-decoration-color: rgba(var(--pf-primary-rgb));
}

.pf-article-content img {
    margin: 1.5rem 0;
}

.pf-article-content ul,
.pf-article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.pf-article-content li {
    margin-bottom: 0.375rem;
}

/* ─── Sayfalama ──────────────────────────── */
.page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-family: var(--pf-font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1.5px solid var(--pf-border);
    transition: all 0.15s ease;
    color: var(--pf-muted);
    background: white;
}

.page-numbers a:hover {
    border-color: var(--pf-text);
    color: var(--pf-text);
}

.page-numbers .current {
    background: var(--pf-text);
    color: white;
    border-color: var(--pf-text);
}

/* ─── Breadcrumb ─────────────────────────── */
.pf-breadcrumb {
    font-family: var(--pf-font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pf-muted);
}

.pf-breadcrumb a {
    color: var(--pf-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pf-breadcrumb a:hover {
    color: rgba(var(--pf-primary-rgb));
}

/* ─── Footer ─────────────────────────────── */
.pf-footer-heading {
    font-family: var(--pf-font-heading);
    font-weight: 800;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.25rem;
}

/* ─── Scroll-to-top ──────────────────────── */
#pf-scroll-top {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

#pf-scroll-top.pf-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ─── Önceki/Sonraki Navigasyon ──────────── */
.pf-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.pf-post-nav a {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1.5px solid var(--pf-border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pf-post-nav a:first-child {
    border-right: 0;
}

.pf-post-nav a:hover {
    background: rgba(var(--pf-primary-rgb), 0.02);
    border-color: rgba(var(--pf-primary-rgb), 0.2);
}

/* ─── Reading Progress Bar ───────────────── */
#pf-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: rgba(var(--pf-primary-rgb));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ─── Arama Paneli ───────────────────────── */
#pf-search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#pf-search-panel.pf-open {
    max-height: 100px;
}

/* ─── Görsel Olmayan Kartlar ─────────────── */
.pf-card:not(:has(img)) {
    border-left: 3px solid rgba(var(--pf-primary-rgb));
}

.pf-card:not(:has(img)) .p-5 {
    padding-top: 1.25rem;
}

.pf-card-sharp:not(:has(img)) {
    border-left-width: 4px;
    border-left-color: rgba(var(--pf-primary-rgb));
}

/* ─── Genel Kompaktlık ───────────────────── */
.pf-section-heading {
    margin-bottom: 1.25rem;
}

.pf-card {
    display: flex;
    flex-direction: column;
}

.pf-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pf-card > a > div:last-child {
    flex: 1;
}
