/* Project: Premium Corporate Blog Detail
    Brand: Creaegg
    Note: Font family removed to prevent forcing. Styles inherit from global settings.
*/

/* 1. GLOBAL & RESET */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Taşmayı engellemek için kritik */
    background-color: var(--prem-bg); 
    color: var(--prem-text); 
}

:root {
    --prem-bg: #f8fafc;
    --prem-surface: #ffffff;
    --prem-text: #475569;
    --prem-title: #0f172a;
    --prem-accent: #0056b3; 
    --prem-border: #e2e8f0;
    --shadow-soft: 0 20px 40px -10px rgba(15, 23, 42, 0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar, .header-main {
    position: relative; 
    z-index: 9999 !important;
}

/* 2. LAYOUT */
.blog-detail-sec { 
    padding: 0 0 100px 0 !important; 
    position: relative;
    z-index: 1; 
}

.blog-wrapper { 
    width: 100%;
    max-width: 1600px; 
    margin: 0 auto !important; 
    padding: 0 15px; 
    display: grid;
    /* minmax(0, ...) grid içindeki taşmaların ana çözümüdür */
    grid-template-columns: minmax(0, 1150px) 340px; 
    justify-content: center; 
    gap: 50px; 
    align-items: start; 
}

.blog-main-col {
    min-width: 0; 
}

.blog-sidebar-wrapper {
    width: 100%;
    position: sticky;
    top: 120px;
}

/* 3. HEADER & BREADCRUMB */
.blog-header-box { 
    margin-top: 0 !important; 
    margin-bottom: 30px; 
    padding-top: 20px; 
    text-align: center; 
}

.premium-breadcrumb {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    justify-content: flex-start; 
}

.premium-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-breadcrumb li {
    display: flex;
    align-items: center;
    color: #94a3b8;
}

.premium-breadcrumb li a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-breadcrumb li a:hover {
    color: var(--prem-accent);
}

.premium-breadcrumb li::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
    color: #cbd5e1;
}

.premium-breadcrumb li:last-child::after { display: none; }
.premium-breadcrumb li.active { color: var(--prem-title); font-weight: 600; }

.category-tag { color: var(--prem-accent); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.blog-title { font-size: clamp(28px, 5vw, 38px); font-weight: 500; color: var(--prem-title); margin-bottom: 5px; letter-spacing: -1.5px; line-height: 1.1; }

/* 4. SHARE BAR & META */
.premium-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--prem-border);
    border-bottom: 1px solid var(--prem-border);
}

.share-bar-left { display: flex; flex-direction: column; align-items: flex-start; }
.blog-meta-info { display: flex; gap: 20px; font-size: 14px; font-weight: 600; color: #94a3b8; }
.blog-meta-info span { display: flex; align-items: center; gap: 8px; }
.blog-meta-info i { color: var(--prem-accent); }

.share-group { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: 11px; font-weight: 800; color: var(--prem-title); text-transform: uppercase; letter-spacing: 1px; }

.premium-share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--prem-bg); color: var(--prem-title);
    text-decoration: none; transition: var(--transition);
    border: 1px solid var(--prem-border); font-size: 14px;
}

.premium-share-btn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.btn-fb:hover { background: #1877f2; }
.btn-tw:hover { background: #0f172a; }
.btn-wp:hover { background: #25d366; }

/* 5. MAIN IMAGE & CONTENT */
.blog-main-img-box {
    width: 80%;
    margin: 0 auto 5px auto;
    height: auto; 
    border-radius: var(--radius-lg);
    overflow: hidden; 
    box-shadow: var(--shadow-soft);
    display: flex; 
    justify-content: center;
    background: var(--prem-surface); 
}

.blog-main-img-box img { 
    width: 100%; 
    height: auto; 
    max-height: 450px;
    object-fit: contain; 
    transition: transform 0.8s ease; 
}

.blog-main-img-box:hover img { transform: scale(1.05); }

.blog-content-box {
    background: var(--prem-surface); padding: 15px 35px 50px 35px; 
    border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow-soft); font-size: 18px; line-height: 1.8;
}

.blog-content-box img {
    max-width: 100%; height: auto !important;
    border-radius: var(--radius-md); margin: 20px 0; object-fit: contain; 
}

.blog-content-box p { margin-bottom: 25px; }
.blog-content-box h2, .blog-content-box h3 { color: var(--prem-title); font-weight: 600; margin: 40px 0 20px; }
.blog-content-box > *:first-child { margin-top: 0 !important; }

/* 6. NAVIGATION FOOTER */
.blog-nav-footer { margin-top: 50px; display: flex; justify-content: center; }
.btn-all-list { 
    padding: 12px 30px; border-radius: 50px; background: var(--prem-title); color: #fff;
    text-decoration: none; font-weight: 700; font-size: 14px; transition: var(--transition);
}
.btn-all-list:hover { background: var(--prem-accent); transform: scale(1.05); color: #fff; }

/* 7. SIDEBAR WIDGETS */
.blog-sidebar { margin-top: 90px; width: 340px; }
.sw-title { font-size: 18px; font-weight: 700; color: var(--prem-title); margin-bottom: 12px; }
.sw-divider { display: flex; gap: 10px; margin-bottom: 20px; }
.sw-div-active { width: 60px; height: 3px; background: #0f766e; border-radius: 4px; }
.sw-div-bg { flex-grow: 1; height: 3px; background: #cbd5e1; border-radius: 4px; }

.sw-card-container {
    background: var(--prem-surface);
    border: 1px solid var(--prem-border);
    border-radius: var(--radius-md);
    padding: 10px 25px;
}

.sw-item {
    display: flex; align-items: center; gap: 18px; padding: 22px 0;
    border-bottom: 1px solid var(--prem-border);
    text-decoration: none; transition: var(--transition);
}

.sw-item:last-child { border-bottom: none; }
.sw-item:hover .sw-item-title { color: var(--prem-accent); }
.sw-item img { width: 70px; height: 70px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.sw-info { flex-grow: 1; }
.sw-date { font-size: 13px; color: #64748b; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sw-item-title {
    font-size: 15px; font-weight: 700; color: var(--prem-title); margin: 0;
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 8. RESPONSIVE DESIGN (MOBİL TAŞMA FİX) */
@media (max-width: 1100px) {
    .blog-wrapper { grid-template-columns: 1fr; }
    .blog-sidebar { position: relative; top: 0; margin-top: 40px; width: 100%; }
}

@media (max-width: 768px) {
    body { overflow-x: hidden !important; width: 100% !important; }
    .blog-detail-sec { padding: 0 0 50px 0 !important; }
    .blog-wrapper { gap: 20px; padding: 0 20px !important; width: 100% !important; display: block !important; }
    
    .blog-main-col { width: 100% !important; max-width: 100% !important; overflow: hidden; }

    /* Breadcrumb yatay kaydırma desteği */
    .premium-breadcrumb { 
        display: block !important;
        overflow-x: auto; 
        white-space: nowrap; 
        padding-bottom: 5px; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    .premium-breadcrumb::-webkit-scrollbar { display: none; }
    .premium-breadcrumb ol { flex-wrap: nowrap; padding-left: 0 !important; }
    .premium-breadcrumb li { flex-shrink: 0; }

    .blog-header-box { text-align: left; padding-top: 15px; }
    .blog-title { font-size: 24px; word-break: break-word; }
    
    .premium-share-bar { flex-direction: column; gap: 15px; align-items: flex-start; padding: 15px 0; }
    .share-bar-left { width: 100%; align-items: flex-start; } 
    .blog-meta-info { font-size: 12px; gap: 15px; justify-content: flex-start; }
    .share-group { width: 100%; justify-content: flex-start; padding-top: 15px; border-top: 1px dashed var(--prem-border); }
    
    .blog-main-img-box { width: 100%; border-radius: 16px; margin-bottom: 0; }
    .blog-main-img-box img { max-height: 250px; object-fit: cover; }
    
    .blog-content-box { 
        padding: 25px 20px; font-size: 16px; margin-top: -30px; 
        position: relative; z-index: 5; box-shadow: 0 -10px 20px rgba(0,0,0,0.05); 
    }
}