/* Blog Modal Styles - Responsive & Modern */
/* Header üzerine çıkması için yüksek z-index */

.blog-modal { 
    display: none; 
    position: fixed; 
    z-index: 999999; /* Header'dan (10000) daha yüksek z-index */
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); /* Modern blur efekti */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-modal.show {
    display: flex;
    opacity: 1;
}

.blog-modal-content { 
    background: #ffffff !important; 
    padding: 0;
    max-width: 800px; 
    width: 100%; 
    max-height: 90vh;
    border-radius: 12px; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); 
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal açıldığında animasyon */
.blog-modal.show .blog-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.blog-modal-close { 
    position: absolute; 
    right: 1rem; 
    top: 1rem; 
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem; 
    font-weight: 600; 
    color: #666; 
    cursor: pointer; 
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-modal-close:hover { 
    background: rgba(255, 255, 255, 1);
    color: #333; 
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Modal içerik alanı */
.blog-modal-body-wrapper {
    padding: 2rem;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Modal başlık stilleri - tutarlı yazı tipleri */
.blog-modal-title {
    font-size: 1.75rem !important; 
    font-weight: 700 !important; 
    color: #111827 !important; 
    margin: 0 0 1.5rem 0 !important; 
    line-height: 1.3 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body h1,
.blog-modal-body h2 {
    font-size: 1.75rem !important; 
    font-weight: 700 !important; 
    color: #111827 !important; 
    margin: 0 0 1.5rem 0 !important; 
    line-height: 1.3 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body h3 { 
    font-size: 1.25rem !important; 
    font-weight: 600 !important; 
    color: #1f2937 !important; 
    margin: 2rem 0 1rem 0 !important; 
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body h4 {
    font-size: 1.125rem !important; 
    font-weight: 600 !important; 
    color: #374151 !important; 
    margin: 1.5rem 0 0.75rem 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Modal içerik metni */
.blog-modal-content-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    margin-bottom: 2rem !important;
}

/* Inline CSS'leri override et */
.blog-modal-content-text * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-content-text div[style] {
    display: none !important; /* Tüm inline styled div'leri gizle */
}

.blog-modal-content-text a[style] {
    display: none !important; /* Tüm inline styled linkleri gizle */
}

.blog-modal-body p { 
    margin-bottom: 1.25rem !important; 
    line-height: 1.7 !important; 
    color: #374151 !important; 
    font-size: 1rem !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body ul, 
.blog-modal-body ol { 
    margin: 1.25rem 0 !important; 
    padding-left: 1.75rem !important; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body li { 
    margin-bottom: 0.75rem !important; 
    color: #374151 !important; 
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.blog-modal-body strong {
    font-weight: 700 !important;
    color: #111827 !important;
}

.blog-modal-body em {
    font-style: italic !important;
    color: #6b7280 !important;
}

/* Blog kategori badge */
.blog-modal-category {
    display: inline-block !important; 
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important; 
    color: #3730a3 !important; 
    font-size: 0.875rem !important; 
    font-weight: 600 !important; 
    padding: 0.5rem 1rem !important; 
    border-radius: 8px !important; 
    margin-bottom: 1.5rem !important;
    border: 1px solid #c7d2fe !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Modal aksiyon butonları */
.blog-modal-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #e5e7eb !important;
    flex-wrap: wrap !important;
}

.blog-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    flex: 1 !important;
    min-width: 160px !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
}

.get-service-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.get-service-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

.provide-service-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

.provide-service-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .blog-modal {
        padding: 0.5rem;
    }
    
    .blog-modal-content { 
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .blog-modal-body-wrapper {
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .blog-modal-close {
        width: 36px;
        height: 36px;
        right: 0.75rem;
        top: 0.75rem;
        font-size: 1.125rem;
    }
    
    .blog-modal-title,
    .blog-modal-body h1,
    .blog-modal-body h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .blog-modal-body h3 {
        font-size: 1.125rem !important;
        margin: 1.5rem 0 0.75rem 0 !important;
    }
    
    .blog-modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-action-btn {
        flex: none;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-modal {
        padding: 0.25rem;
    }
    
    .blog-modal-body-wrapper {
        padding: 1rem;
    }
    
    .blog-modal-title,
    .blog-modal-body h1,
    .blog-modal-body h2 {
        font-size: 1.375rem !important;
    }
    
    .blog-modal-content-text,
    .blog-modal-body p {
        font-size: 0.95rem !important;
    }
    
    .blog-action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Scroll bar styling - Webkit browsers */
.blog-modal-body-wrapper::-webkit-scrollbar {
    width: 6px;
}

.blog-modal-body-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.blog-modal-body-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.2s;
}

.blog-modal-body-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading state */
.blog-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6b7280;
}

.blog-modal-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus trap için */
.blog-modal-content:focus {
    outline: none;
}

/* Animasyon performansı için */
.blog-modal,
.blog-modal-content {
    will-change: transform, opacity;
}