/**
 * Haber Detay Sayfası Stilleri
 */

.news-detail-main {
    background: #f4f1e9;
    padding: 2rem 0;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Haber Bilgileri */
.news-detail-info {
    color: #333;
}

.news-detail-header-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.news-detail-title {
    margin-top: 0px !important;
    margin-bottom: 0.8rem;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .news-detail-header-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-date {
        align-self: flex-start;
        font-size: 13px;
    }
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.news-detail-date,
.news-detail-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    margin-top: -10px;
}

.meta-separator {
    color: #666;
    font-weight: 600;
}

.news-detail-date i,
.news-detail-author i {
    font-size: 0.9rem;
}

/* Haber İçeriği */
.news-detail-content {
    background: #e2e1d9;
    padding: 20px 40px 25px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2ded0;
    border-top: 4px solid #e6552a;
    margin-bottom: 100px;
    width: 100%;
    box-sizing: border-box;
}

.news-detail-excerpt {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.6;
}

.news-detail-body {
    font-size: 13.8px ;
    line-height: 1.6;
    color: #333333;
    font-family: 'Roboto', sans-serif;
    font-weight: 450;
    border-bottom: 1px solid #e2ded0;
}

.news-detail-body p {
    margin-bottom: 1.5rem;
}

.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4,
.news-detail-body h5,
.news-detail-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.news-detail-body h1 { font-size: 1.8rem; }
.news-detail-body h2 { font-size: 1.6rem; }
.news-detail-body h3 { font-size: 1.4rem; }
.news-detail-body h4 { font-size: 1.2rem; }
.news-detail-body h5 { font-size: 1.1rem; }
.news-detail-body h6 { font-size: 1rem; }

.news-detail-body ul,
.news-detail-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-body li {
    margin-bottom: 0.5rem;
}

.news-detail-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0 -2.0rem 0;
}

.news-detail-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.news-detail-body pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* List styles */
.news-detail-body ul {
    list-style: none;
    padding: 0.3rem 0;
    margin: 0.6rem 0;
}

.news-detail-body ul li {
    position: relative;
    padding: 0.15rem 0 0.15rem 2rem;
    margin: 0.15rem 0;
    color: #333;
    line-height: 1.25;
}

.news-detail-body ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: bold;
}

.news-detail-body ol {
    list-style: none;
    padding: 0.3rem 0;
    margin: 0.6rem 0;
    counter-reset: list-counter;
}

.news-detail-body ol li {
    position: relative;
    padding: 0.15rem 0 0.15rem 2.5rem;
    margin: 0.15rem 0;
    color: #333;
    line-height: 1.25;
    counter-increment: list-counter;
}

.news-detail-body ol li:before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: #ff6b35;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Nested lists */
.news-detail-body ul ul,
.news-detail-body ol ol,
.news-detail-body ul ol,
.news-detail-body ol ul {
    margin: 0.15rem 0 0.15rem 1.5rem;
}

/* Additional code styling */
.news-detail-body code {
    background: #f8f6f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
    border: 1px solid #e9ecef;
}

.news-detail-body pre {
    background: #f8f6f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.news-detail-body pre code {
    background: none;
    padding: 0;
    border: none;
    color: #333;
    font-size: 0.9rem;
}

/* Inline styles */
.news-detail-body strong {
    color: #2c3e50;
    font-weight: 600;
}

.news-detail-body em {
    color: #555;
    font-style: italic;
}

.news-detail-body a {
    color: #ff6b35;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.news-detail-body a:hover {
    border-bottom: 1px solid #ff6b35;
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail-main {
        padding: 1rem 0;
    }
    
    .news-detail-header-card {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .news-detail-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-detail-content,
    .news-detail-share {
        padding: 1rem;
    }
    
    .news-detail-excerpt {
        font-size: 1rem;
    }
    
    .news-detail-body {
        font-size: 0.95rem;
    }
}

/* Scrolling is handled site-wide by .site-scroll (partials/head.php) */

/* Long unbroken words (test titles, URLs) must not push the page sideways */
.news-detail-title,
.news-detail-content {
    min-width: 0;
    overflow-wrap: anywhere;
}
