/* ===================================
   BLOG DETAY SAYFASI - DORUK THEME
   Ana sayfa tasarım çizgisiyle uyumlu
   =================================== */

/* Blog Detay Container */
.blog-detail {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(11, 44, 84, 0.05);
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Blog Header */
.blog-category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
}

.blog-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: #0B2C54;
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 15px;
}

.blog-meta-info {
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.blog-meta-info .meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-info .meta-item i {
    color: #FF6B35;
}

/* Blog Content */
.blog-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-top: 30px;
}

.blog-content-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0B2C54;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-content-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #0B2C54;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: #0B2C54;
    margin-top: 25px;
    margin-bottom: 12px;
}

.blog-content-body p {
    margin-bottom: 20px;
}

.blog-content-body ul,
.blog-content-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-content-body li {
    margin-bottom: 10px;
}

.blog-content-body blockquote {
    border-left: 4px solid #FF6B35;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.blog-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    /* Prevent shaking */
    -webkit-font-smoothing: subpixel-antialiased;
}

.blog-content-body img:hover {
    transform: scale(1.02);
}

/* Okuma İlerleme Çubuğu */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #0B2C54);
    width: 0%;
    transition: width 0.1s ease;
}

.blog-content-body a {
    color: #FF6B35;
    text-decoration: underline;
    font-weight: 600;
}

.blog-content-body a:hover {
    color: #0B2C54;
}

/* Etiketler */
.blog-tags h5 {
    font-size: 16px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: #FF6B35;
    color: #fff;
}

/* Sosyal Medya Paylaşım */
.blog-share h5 {
    font-size: 16px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 15px;
}

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

.share-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
}

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

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

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

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

/* İlgili Yazılar */
.related-posts {
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.related-posts .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 25px;
}

/* ===================================
   SIDEBAR STİLLERİ
   =================================== */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border: 1px solid rgba(11, 44, 84, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF6B35;
}

/* Arama Formu */
.search-form .form-control {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 10px 20px;
}

.search-form .btn {
    border-radius: 50px;
    background: #0B2C54;
    border: none;
    padding: 10px 20px;
}

/* Kategori Listesi */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #0B2C54;
    color: #fff;
}

.category-list a:hover i {
    color: #fff !important;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.category-count {
    background: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

/* Popüler Yazılar */
.popular-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.popular-post-title:hover {
    color: #FF6B35;
}

.popular-post-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Son Yazılar */
.recent-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-item a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-item a:hover {
    color: #FF6B35;
}

.recent-post-item small {
    font-size: 12px;
}

/* ===================================
   TEKNOLOJİLER VE DOKTORLAR BÖLÜMÜ
   =================================== */

.section-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF6B35;
    display: inline-block;
}

.section-subtitle i {
    color: #FF6B35;
    margin-right: 8px;
}

/* Teknoloji Kartları */
.technology-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid rgba(11, 44, 84, 0.05);
}

.technology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 44, 84, 0.12);
}

.tech-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.tech-content {
    flex: 1;
}

.tech-title {
    font-size: 16px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 8px;
}

.tech-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.tech-link {
    font-size: 14px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.tech-link:hover {
    color: #0B2C54;
    gap: 8px;
}

/* Doktor Kartları */
.doctor-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(11, 44, 84, 0.05);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 44, 84, 0.12);
}

.doctor-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #FF6B35;
}

.doctor-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-placeholder i {
    font-size: 50px;
    color: #bbb;
}

.doctor-info {
    padding: 0;
}

.doctor-name {
    font-size: 16px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 5px;
}

.doctor-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.doctor-link {
    font-size: 14px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.doctor-link:hover {
    color: #0B2C54;
    gap: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    .blog-detail-title {
        font-size: 28px;
    }

    .blog-content-body {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blog-detail {
        padding: 20px;
    }

    .blog-detail-title {
        font-size: 24px;
    }

    .blog-meta-info {
        flex-direction: column;
        gap: 8px !important;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .technology-card {
        flex-direction: column;
        text-align: center;
    }

    .tech-image {
        margin: 0 auto 15px;
    }
}

/* ===================================
   KAPSAMLI MOBİL RESPONSIVE
   =================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .blog-detail {
        padding: 25px;
    }

    .blog-detail-title {
        font-size: 30px;
    }

    .blog-content-body h2 {
        font-size: 26px;
    }

    .blog-content-body h3 {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .technology-card,
    .doctor-card {
        margin-bottom: 20px;
    }
}

/* Mobil (< 768px) */
@media (max-width: 767px) {

    /* Container */
    .blog-detail {
        padding: 20px 15px;
        border-radius: 15px;
    }

    /* Featured Image */
    .blog-featured-image {
        margin-bottom: 20px;
        border-radius: 15px;
    }

    .blog-featured-image img {
        max-height: 300px;
    }

    /* Başlık */
    .blog-detail-title {
        font-size: 24px;
        margin-top: 10px;
    }

    /* Kategori Badge */
    .blog-category-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Meta Info */
    .blog-meta-info {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .blog-meta-info .meta-item {
        font-size: 13px;
        width: 100%;
    }

    /* İçerik */
    .blog-content-body {
        font-size: 15px;
        margin-top: 20px;
    }

    .blog-content-body h2 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .blog-content-body h3 {
        font-size: 19px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .blog-content-body h4 {
        font-size: 17px;
    }

    .blog-content-body blockquote {
        padding: 15px;
        margin: 20px 0;
    }

    /* Etiketler */
    .tag-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* Sosyal Medya */
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .share-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    /* Teknoloji Kartları */
    .technology-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .tech-image {
        margin: 0 auto 15px;
        width: 80px;
        height: 80px;
    }

    .tech-title {
        font-size: 15px;
    }

    .tech-desc {
        font-size: 12px;
    }

    /* Doktor Kartları */
    .doctor-card {
        padding: 20px 15px;
    }

    .doctor-image,
    .doctor-placeholder {
        width: 80px;
        height: 80px;
    }

    .doctor-placeholder i {
        font-size: 40px;
    }

    .doctor-name {
        font-size: 15px;
    }

    .doctor-title {
        font-size: 12px;
    }

    /* Section Subtitle */
    .section-subtitle {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* İlgili Yazılar */
    .related-posts {
        padding-top: 30px;
        margin-top: 30px;
    }

    .related-posts .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Sidebar */
    .blog-sidebar {
        margin-top: 30px;
    }

    .sidebar-widget {
        padding: 20px 15px;
        border-radius: 15px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    /* Arama */
    .search-form .form-control {
        font-size: 14px;
        padding: 8px 15px;
    }

    .search-form .btn {
        padding: 8px 15px;
    }

    /* Kategori Listesi */
    .category-list a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .category-name {
        font-size: 13px;
    }

    .category-count {
        font-size: 11px;
        padding: 2px 8px;
    }

    /* Popüler Yazılar */
    .popular-post-item img {
        width: 60px;
        height: 60px;
    }

    .popular-post-title {
        font-size: 13px;
    }

    .popular-post-meta {
        font-size: 11px;
    }

    /* Son Yazılar */
    .recent-post-item a {
        font-size: 13px;
    }

    .recent-post-item small {
        font-size: 11px;
    }
}

/* Küçük Mobil (< 576px) */
@media (max-width: 575px) {

    /* Container */
    .blog-detail {
        padding: 15px 12px;
        border-radius: 12px;
    }

    /* Featured Image */
    .blog-featured-image {
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .blog-featured-image img {
        max-height: 250px;
    }

    /* Başlık */
    .blog-detail-title {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Meta Info */
    .blog-meta-info .meta-item {
        font-size: 12px;
        padding: 6px 0;
    }

    /* İçerik */
    .blog-content-body {
        font-size: 14px;
    }

    .blog-content-body h2 {
        font-size: 20px;
        margin-top: 25px;
    }

    .blog-content-body h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .blog-content-body h4 {
        font-size: 16px;
    }

    .blog-content-body ul,
    .blog-content-body ol {
        padding-left: 25px;
    }

    .blog-content-body blockquote {
        padding: 12px;
        font-size: 14px;
    }

    /* Kartlar */
    .technology-card,
    .doctor-card {
        padding: 15px 12px;
    }

    .tech-image,
    .doctor-image,
    .doctor-placeholder {
        width: 70px;
        height: 70px;
    }

    /* Section Titles */
    .section-subtitle {
        font-size: 16px;
    }

    .related-posts .section-title {
        font-size: 18px;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 15px 12px;
        border-radius: 12px;
    }

    .widget-title {
        font-size: 15px;
    }

    /* Blog Tags & Share */
    .blog-tags h5,
    .blog-share h5 {
        font-size: 15px;
    }
}

/* Çok Küçük Mobil (< 400px) */
@media (max-width: 399px) {
    .blog-detail {
        padding: 12px 10px;
    }

    .blog-detail-title {
        font-size: 18px;
    }

    .blog-content-body {
        font-size: 13px;
    }

    .blog-content-body h2 {
        font-size: 18px;
    }

    .blog-content-body h3 {
        font-size: 16px;
    }

    .tech-image,
    .doctor-image,
    .doctor-placeholder {
        width: 60px;
        height: 60px;
    }

    .section-subtitle {
        font-size: 15px;
    }
}

/* Landscape Mobil */
@media (max-width: 767px) and (orientation: landscape) {
    .blog-featured-image img {
        max-height: 200px;
    }

    .quick-actions {
        right: 10px;
        bottom: 10px;
    }

    .quick-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Touch-friendly butonlar */
    .quick-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .category-list a,
    .popular-post-title,
    .recent-post-item a,
    .tech-link,
    .doctor-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .share-buttons .btn {
        min-height: 48px;
    }

    .tag-badge {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
}

/* Print Styles */
@media print {

    .quick-actions,
    .share-buttons,
    .blog-sidebar,
    .breadcrumb-nav,
    .medical-disclaimer {
        display: none !important;
    }

    .blog-detail {
        box-shadow: none;
        border: none;
    }

    .blog-content-body {
        font-size: 12pt;
        line-height: 1.6;
    }

    .blog-detail-title {
        font-size: 24pt;
    }
}