/* =========================================================
   Theme2 — Dark Mode + Tailwind özel düzeltmeleri
   ========================================================= */

/* Prism.js kod bloklarını doğal genişlikte tut */
pre[class*="language-"] {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* showPagination($url,'active',true) → page-item / page-link / active */
.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #252525;
    background-color: #1a1a1a;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
}
.pagination .page-item .page-link:hover {
    background-color: #252525;
    color: #f9fafb;
}
.pagination .page-item.active .page-link {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
    font-weight: 600;
}

/* Breadcrumb ayırıcı */
.breadcrumb-sep::before {
    content: "/";
    margin: 0 0.4rem;
    color: #6b7280;
}

/* Blog içerik alanı — tipografi (dark) */
.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.prose-content h2, .prose-content h3 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f9fafb;
}
.prose-content p { margin-bottom: 1rem; line-height: 1.75; color: #d1d5db; }
.prose-content a { color: #34d399; text-decoration: underline; }
.prose-content ul, .prose-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: #d1d5db; }
.prose-content li { margin-bottom: 0.25rem; }
.prose-content blockquote {
    border-left: 4px solid #059669;
    padding-left: 1rem;
    color: #9ca3af;
    font-style: italic;
    margin: 1rem 0;
}
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose-content th, .prose-content td {
    border: 1px solid #252525;
    padding: 0.5rem 0.75rem;
    text-align: left;
    color: #d1d5db;
}
.prose-content th { background-color: #1a1a1a; font-weight: 600; color: #f9fafb; }

/* Yorum gravatar */
.comment-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.comment-item img { width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex-shrink: 0; }

/* Sosyal paylaşım butonları */
.share-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
             border-radius: 0.5rem; color: white; text-decoration: none; font-size: 0.875rem; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter  { background-color: #000000; }
.share-btn.linkedin { background-color: #0a66c2; }
.share-btn.whatsapp { background-color: #25d366; }

/* Sekme butonları (blog-detail.php tabs) */
.tab-btn { cursor: pointer; padding: 0.5rem 1.25rem; border-bottom: 2px solid transparent;
           font-size: 0.875rem; color: #9ca3af; background: none; }
.tab-btn.active { border-bottom-color: #059669; color: #34d399; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Input/textarea dark override (Tailwind form sınıflarını destekler) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a 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;
}


/* Prism.js kod bloklarını doğal genişlikte tut */
pre[class*="language-"] {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* showPagination($url,'active',true) → page-item / page-link / active */
.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s, color 0.15s;
}
.pagination .page-item .page-link:hover {
    background-color: #f1f5f9;
}
.pagination .page-item.active .page-link {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
    font-weight: 600;
}

/* Breadcrumb ayırıcı */
.breadcrumb-sep::before {
    content: "/";
    margin: 0 0.4rem;
    color: #94a3b8;
}

/* Blog içerik alanı — tipografi */
.prose-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.prose-content h2, .prose-content h3 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose-content p { margin-bottom: 1rem; line-height: 1.75; }
.prose-content a { color: #059669; text-decoration: underline; }
.prose-content ul, .prose-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-content li { margin-bottom: 0.25rem; }
.prose-content blockquote {
    border-left: 4px solid #059669;
    padding-left: 1rem;
    color: #475569;
    font-style: italic;
    margin: 1rem 0;
}
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose-content th, .prose-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.prose-content th { background-color: #f8fafc; font-weight: 600; }

/* Yorum gravatar */
.comment-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.comment-item img { width: 2.5rem; height: 2.5rem; border-radius: 9999px; flex-shrink: 0; }

/* Sosyal paylaşım butonları */
.share-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
             border-radius: 0.5rem; color: white; text-decoration: none; font-size: 0.875rem; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter  { background-color: #000000; }
.share-btn.linkedin { background-color: #0a66c2; }
.share-btn.whatsapp { background-color: #25d366; }

/* Aktif sekme (blog-detail.php tabs) */
.tab-btn { cursor: pointer; padding: 0.5rem 1.25rem; border-bottom: 2px solid transparent;
           font-size: 0.875rem; color: #64748b; background: none; }
.tab-btn.active { border-bottom-color: #059669; color: #059669; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
