/* =========================================================
   Theme2 — Tailwind dışı entegrasyon stilleri
   (PHP tarafında üretilen markup: pagination, prose, prism)
   ========================================================= */

/* Prism.js kod blokları */
pre[class*="language-"] {
    border-radius: 0.75rem;
    font-size: 0.875rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* showPagination($url,'active',true) → page-item / page-link / active */
.pagination {
    display: flex;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.625rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(26, 26, 26, 0.6);
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8125rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    transition: all 0.15s;
}
.pagination .page-item .page-link:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    background-color: #1a1a1a;
}
.pagination .page-item.active .page-link {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 20px -6px rgba(16, 185, 129, 0.5);
}

/* Breadcrumb ayırıcı */
.breadcrumb-sep::before {
    content: "/";
    margin: 0 0.5rem;
    color: #303030;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Blog içerik alanı — tipografi (dark) */
.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.prose-content h2,
.prose-content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #f9fafb;
    letter-spacing: -0.01em;
}
.prose-content h2 { font-size: 1.375rem; }
.prose-content h3 { font-size: 1.125rem; }
.prose-content p { margin-bottom: 1rem; line-height: 1.8; color: #d1d5db; }
.prose-content a { color: #34d399; text-decoration: underline; text-underline-offset: 3px; }
.prose-content a:hover { color: #6ee7b7; }
.prose-content ul, .prose-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: #d1d5db; }
.prose-content ul { list-style: disc; }
.prose-content ol { list-style: decimal; }
.prose-content li { margin-bottom: 0.375rem; line-height: 1.7; }
.prose-content blockquote {
    border-left: 3px solid #059669;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.75rem 1.25rem;
    color: #9ca3af;
    font-style: italic;
    margin: 1.25rem 0;
}
.prose-content code:not([class*="language-"]) {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
    padding: 0.125rem 0.375rem;
    color: #6ee7b7;
}
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.prose-content th, .prose-content td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.625rem 0.875rem;
    text-align: left;
    color: #d1d5db;
    font-size: 0.9375rem;
}
.prose-content th { background-color: rgba(26, 26, 26, 0.8); font-weight: 600; color: #f9fafb; }

/* Yorum gravatar */
.comment-item { display: flex; gap: 0.875rem; }
.comment-item > img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sosyal paylaşım butonları */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.125rem;
    border-radius: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: opacity 0.15s, transform 0.15s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter  { background-color: #000000; border: 1px solid rgba(255,255,255,0.15); }
.share-btn.linkedin { background-color: #0a66c2; }
.share-btn.whatsapp { background-color: #25d366; }

/* Sekme butonları (blog-detail.php) */
.tab-btn {
    cursor: pointer;
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    transition: color 0.15s;
}
.tab-btn:hover { color: #d1d5db; }
.tab-btn.active { border-bottom-color: #10b981; color: #34d399; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Autofill dark düzeltmesi */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f0f0f inset !important;
    -webkit-text-fill-color: #f9fafb !important;
    caret-color: #f9fafb;
}

/* Video 16:9 ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-ratio iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Hero arka plan deseni (grid + emerald parlama) */
.hero-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 55% at 70% -10%, rgba(16, 185, 129, 0.13), transparent 65%),
        radial-gradient(ellipse 40% 50% at 20% 110%, rgba(16, 185, 129, 0.06), transparent 60%);
}
