/* ========================================
   Blog Post Detail - Sade Tasarım
   ======================================== */

/* Blog Post Detail Section */
.blog-post-detail {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Post Article */
.post-article {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Post Header */
.post-header {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Kontrast arttırıcı overlay — metin okunurluğu için */
.post-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.10));
    pointer-events: none;
}

.post-category { margin-bottom: 0; }

.category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.post-title {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: 0.1px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.post-meta {
    margin-top: 15px;
}

/* Excerpt - hero karttaki kısa açıklama */
.post-excerpt {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* İnce beyaz ayraç */
.header-divider {
    border: none;
    height: 2px;
    background: rgba(255,255,255,0.35);
    margin: 10px 0 14px 0;
}

.post-header .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-size: 13px;
    opacity: 0.98;
    position: relative;
    z-index: 1;
}

.post-header .meta span {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    padding: 7px 14px;
    border-radius: 22px;
    color: #fff;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.20);
}

.post-header .meta span::before {
    content: "\2022";
    margin-right: 8px;
    font-weight: 800;
}


/* Post Content */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 30px 0;
    position: relative;
}

.post-article > .post-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

/* İlgili yazı kartlarında üstte ince çizgi görünmesin */
.related-posts .post-content::before { display: none; content: none; }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1a1a1a;
    margin: 35px 0 15px 0;
    font-weight: 700;
    position: relative;
}

.post-content h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 15px;
    border-left: 4px solid #667eea;
    position: relative;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #667eea;
    padding-left: 10px;
    border-left: 3px solid #667eea;
    position: relative;
}

.post-content h4 {
    font-size: 1.3rem;
    color: #495057;
    padding-left: 8px;
    border-left: 2px solid #e9ecef;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 25px;
    list-style: disc !important; /* Nokta karakterlerini göster */
}

.post-content ol {
    list-style: decimal !important; /* Sayılı liste için sayıları göster */
}

.post-content ul ul {
    list-style: circle !important; /* İç içe listeler için farklı nokta */
}

.post-content ul ul ul {
    list-style: square !important; /* Üçüncü seviye listeler için kare */
}

.post-content li {
    margin-bottom: 6px;
    list-style: inherit !important; /* Liste öğelerinin noktalarını göster */
}

/* Post v2 minimal template için liste stilleri */
.pm-content ul,
.pm-content ol {
    margin: 16px 0;
    padding-left: 25px;
    list-style: disc !important; /* Nokta karakterlerini göster */
}

.pm-content ol {
    list-style: decimal !important; /* Sayılı liste için sayıları göster */
}

.pm-content ul ul {
    list-style: circle !important; /* İç içe listeler için farklı nokta */
}

.pm-content ul ul ul {
    list-style: square !important; /* Üçüncü seviye listeler için kare */
}

.pm-content li {
    margin-bottom: 6px;
    list-style: inherit !important; /* Liste öğelerinin noktalarını göster */
}

/* Genel post içeriği için liste stilleri - tüm post template'leri için */
article ul,
article ol,
.post-body ul,
.post-body ol,
.post-article ul,
.post-article ol {
    margin: 16px 0 !important;
    padding-left: 25px !important;
    list-style: disc !important; /* Nokta karakterlerini göster */
}

article ol,
.post-body ol,
.post-article ol {
    list-style: decimal !important; /* Sayılı liste için sayıları göster */
}

article ul ul,
.post-body ul ul,
.post-article ul ul {
    list-style: circle !important; /* İç içe listeler için farklı nokta */
}

article ul ul ul,
.post-body ul ul ul,
.post-article ul ul ul {
    list-style: square !important; /* Üçüncü seviye listeler için kare */
}

article li,
.post-body li,
.post-article li {
    margin-bottom: 6px !important;
    list-style: inherit !important; /* Liste öğelerinin noktalarını göster */
}

/* En güçlü CSS kuralları - tüm olasılıkları kapsar */
body .pm-content ul,
body .pm-content ol,
body .post-content ul,
body .post-content ol,
body article ul,
body article ol {
    list-style: disc !important;
    margin: 16px 0 !important;
    padding-left: 25px !important;
}

body .pm-content ol,
body .post-content ol,
body article ol {
    list-style: decimal !important;
}

body .pm-content li,
body .post-content li,
body article li {
    list-style: inherit !important;
    margin-bottom: 6px !important;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #666;
}

.post-content pre {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content code {
    background: #f1f3f4;
    color: #667eea;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

/* Post Footer */
.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tags-title,
.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags-title i,
.share-title i {
    color: #667eea;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag-link {
    display: inline-block;
    background: #f1f3f4;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-1px);
    color: white;
}

/* Related Posts */
.related-posts {
    /* Hero card ile aynı ölçüler */
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

/* Prev/Next kaldırıldı */

.section-header { text-align: center; margin-bottom: 15px; }

.section-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 6px rgba(0,0,0,0.25); }

.section-title i {
    color: #667eea;
}

.section-subtitle { color: rgba(255,255,255,0.9); font-size: 14px; margin: 0 0 10px 0; }

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-post-card { background: rgba(255,255,255,0.15); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }

.related-post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.15); }


.post-content {
    padding: 16px;
}

/* Mini hero inside related posts */
.mini-hero__category{display:inline-block;background:rgba(255,255,255,.22);padding:6px 12px;border-radius:16px;font-size:12px;font-weight:700;color:#fff;margin-bottom:8px}
.mini-hero__title a{color:#fff;text-decoration:none}
.mini-hero__title{margin:0 0 6px 0;font-size:18px;font-weight:800;color:#fff}
.mini-hero__excerpt{color:rgba(255,255,255,.95);font-size:14px;line-height:1.5;margin:0 0 10px 0}
.mini-hero__meta{display:flex;flex-wrap:wrap;gap:8px}
.mini-hero__meta .pill{display:inline-flex;align-items:center;background:rgba(255,255,255,.18);padding:6px 10px;border-radius:18px;color:#fff;font-size:12px;border:1px solid rgba(255,255,255,.2)}

.post-category {
    margin-bottom: 8px;
}

.post-category .category-link {
    font-size: 0.75rem;
    padding: 3px 8px;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-title a:hover {
    opacity: .9;
}

.post-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.comments-header {
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title i {
    color: #667eea;
}

.comments-list {
    margin-bottom: 25px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initial{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#6a11cb,#2575fc);color:#fff;font-weight:800}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.comment-date {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-text {
    color: #333;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Comment Form */
.comment-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.captcha-pill{display:inline-block;background:#e9ecef;color:#495057;padding:6px 10px;border-radius:18px;font-weight:700}

.form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-desc {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.comment-form-inner {
    margin-top: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.btn-submit {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-submit:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Sidebar */
.sidebar {
    padding-left: 25px;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.widget__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget__title i {
    color: #667eea;
    font-size: 1rem;
}

/* Categories Widget */
.widget__categories {
    margin-top: 16px;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid #667eea;
}

.category-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(3px);
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 500;
    display: block;
    font-size: 0.9rem;
}

.category-count {
    background: #e9ecef;
    color: #666;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-link:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Popular Posts Widget */
.popular-posts {
    margin-top: 16px;
}

.popular-post {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post__title {
    margin-bottom: 6px;
}

.popular-post__title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-post__title a:hover {
    color: #667eea;
}

.popular-post__meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #666;
}

.popular-post__meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Tags Widget */
.widget__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.widget__tags .tag-link {
    background: #f1f3f4;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget__tags .tag-link:hover {
    background: #667eea;
    color: white;
}

.tag-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.widget__tags .tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-detail {
        padding: 20px 0;
    }
    
    .post-article {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .post-header {
        padding: 15px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-stats {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-pill {
        font-size: 12px;
        padding: 4px 8px;
        width: 100%;
        justify-content: center;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        padding-left: 10px;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
        padding-left: 8px;
    }
    
    .share-buttons {
        gap: 6px;
    }
    
    .share-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 25px;
    }
    
    .widget {
        padding: 16px;
    }
    
    .comment-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Dark Mode */
.dark .blog-post-detail {
    background: #1a1a1a;
}

.dark .post-article {
    background: #2d2d2d;
    color: white;
}

.dark .post-title {
    color: white;
}

.dark .post-content {
    color: #e0e0e0;
}

.dark .post-content h1,
.dark .post-content h2,
.dark .post-content h3,
.dark .post-content h4,
.dark .post-content h5,
.dark .post-content h6 {
    color: white;
}

.dark .post-content blockquote {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark .post-content pre {
    background: #1a1a1a;
    color: #f8f9fa;
}

.dark .post-content code {
    background: #1a1a1a;
    color: #667eea;
}

.dark .related-posts {
    background: #2d2d2d;
    color: white;
}

.dark .related-post-card {
    background: #1a1a1a;
    color: white;
}

.dark .related-post-card .post-title a {
    color: white;
}

.dark .related-post-card .post-title a:hover {
    color: #667eea;
}

.dark .comments-section {
    background: #2d2d2d;
    color: white;
}

.dark .comment-form {
    background: #1a1a1a;
}

.dark .form-control {
    background: #2d2d2d;
    color: white;
    border-color: #444;
}

.dark .form-control:focus {
    border-color: #667eea;
}

.dark .widget {
    background: #2d2d2d;
    color: white;
}

.dark .widget__title {
    color: white;
}

.dark .category-link {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark .category-link:hover {
    background: #667eea;
    color: white;
}

.dark .popular-post__title a {
    color: white;
}

.dark .popular-post__title a:hover {
    color: #667eea;
}

.dark .widget__tags .tag-link {
    background: #1a1a1a;
    color: #667eea;
    border-color: #444;
}

.dark .widget__tags .tag-link:hover {
    background: #667eea;
    color: white;
}