/* ═══════════════════════════════════════════
   VoltPress — Ana Stil Dosyası
   Prefix: vp-  |  Variables: --vp-*
   ═══════════════════════════════════════════ */

/* ─── CSS Değişkenler (Customizer tarafından override edilir) ── */
:root {
    --vp-primary: #3b82f6;
    --vp-secondary: #8b5cf6;
    --vp-accent: #10b981;
    --vp-text: #334155;
    --vp-font-heading: 'Space Grotesk', sans-serif;
    --vp-font-body: 'Outfit', sans-serif;
}

/* ─── Genel ──────────────────────────────── */
body {
    font-family: var(--vp-font-body);
    color: var(--vp-text);
    -webkit-font-smoothing: antialiased;
}

.font-heading {
    font-family: var(--vp-font-heading);
}

.font-body {
    font-family: var(--vp-font-body);
}

/* ─── Renk Yardımcıları (Tailwind extend) ─ */
.text-primary { color: var(--vp-primary); }
.text-secondary { color: var(--vp-secondary); }
.text-accent { color: var(--vp-accent); }
.bg-primary { background-color: var(--vp-primary); }
.bg-secondary { background-color: var(--vp-secondary); }
.bg-accent { background-color: var(--vp-accent); }
.border-primary { border-color: var(--vp-primary); }

.bg-primary\/10 { background-color: rgba(var(--vp-primary-rgb, 59, 130, 246), 0.1); }
.hover\:bg-primary\/90:hover { background-color: rgba(var(--vp-primary-rgb, 59, 130, 246), 0.9); }

/* ─── Gradient Yardımcıları ───────────────── */
.from-primary { --tw-gradient-from: var(--vp-primary); }
.to-secondary { --tw-gradient-to: var(--vp-secondary); }
.to-accent { --tw-gradient-to: var(--vp-accent); }

/* ─── Header ─────────────────────────────── */
#vp-header {
    transition: box-shadow 0.3s ease;
}

#vp-header.vp-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Navigasyon ─────────────────────────── */
.vp-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vp-nav-list li {
    margin: 0;
    padding: 0;
}

.vp-nav-list li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vp-nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.vp-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.vp-nav-link:hover::after,
.vp-nav-link.active::after {
    width: 100%;
}

/* ─── Mobil Menü ─────────────────────────── */
#vp-mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#vp-mobile-nav.vp-open {
    max-height: 500px;
}

#vp-search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

#vp-search-panel.vp-open {
    max-height: 80px;
}

/* ─── Kartlar ────────────────────────────── */
.vp-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.vp-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ─── Bölüm Başlıkları (Gradient underline) ── */
.vp-section-title {
    font-family: var(--vp-font-heading);
    font-weight: 700;
    color: #0f172a;
}

.vp-section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 2px;
    margin-top: 0.375rem;
    background: linear-gradient(to right, var(--vp-primary), var(--vp-secondary));
    border-radius: 9999px;
}

/* ─── Makale İçeriği (single.php / page.php) ── */
.article-content {
    font-family: var(--vp-font-body);
    line-height: 1.8;
    color: var(--vp-text);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--vp-font-heading);
    color: #0f172a;
}

.article-content h2 {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--vp-primary), transparent) 1;
}

.article-content blockquote {
    border-left: 3px solid var(--vp-primary);
    background: rgba(var(--vp-primary-rgb, 59, 130, 246), 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #475569;
}

.article-content a {
    color: var(--vp-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: var(--vp-primary);
}

.article-content img {
    border-radius: 0.75rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content table th {
    background: #f1f5f9;
    font-family: var(--vp-font-heading);
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
}

.article-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* ─── Sayfalama ──────────────────────────── */
.page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    list-style: none;
}

.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(--vp-font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: #475569;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.page-numbers a:hover {
    color: var(--vp-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-numbers .current {
    background: var(--vp-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--vp-primary-rgb, 59, 130, 246), 0.3);
}

.page-numbers .dots {
    background: transparent;
    box-shadow: none;
}

/* ─── Breadcrumb ─────────────────────────── */
.vp-breadcrumb {
    font-size: 0.75rem;
    color: #94a3b8;
}

.vp-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vp-breadcrumb a:hover {
    color: var(--vp-primary);
}

.vp-breadcrumb .separator {
    margin: 0 0.375rem;
    opacity: 0.5;
}

/* ─── Footer ─────────────────────────────── */
.vp-footer-title {
    font-family: var(--vp-font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.vp-footer-title::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(to right, var(--vp-primary), var(--vp-secondary));
    border-radius: 9999px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ─── Scroll-to-top ──────────────────────── */
#vp-scroll-top {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#vp-scroll-top.vp-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ─── Animasyonlar ───────────────────────── */
.vp-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.vp-fade-in.vp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── WordPress Varsayılanları ────────────── */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .article-content {
        font-size: 0.9375rem;
    }
}
