/* Genel Stiller */
:root {
    --primary-color: #ff8006;
    --secondary-color: #2c3e50;
    --light-gray: #f8f9fa;
    --text-color: #343a40;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-gray);
}

/* Ana Konteyner */
.news-detail-container {
    max-width: 1400px; /* Daha dar, okunabilir bir genişlik */
    margin: 3rem auto 6rem;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.news-detail-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.breadcrumb-item:hover {
    color: var(--primary-color);
}
.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}
.breadcrumb-separator {
    color: var(--border-color);
    font-size: 0.7rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.back-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Ana İçerik Alanı */
.news-detail-main {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Haber Başlık */
.news-detail-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
}

.news-detail-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #FFF5E8;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.3;
}

/* Haber Banner */
.news-detail-banner {
    height: 450px;
}
.news-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Haber İçerik */
.news-detail-content {
    padding: 3rem;
}

.news-detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}
.news-detail-text p,
.news-detail-text ul,
.news-detail-text ol {
    margin-bottom: 1.5rem;
}
.news-detail-text h1, .news-detail-text h2, .news-detail-text h3,
.news-detail-text h4, .news-detail-text h5, .news-detail-text h6 {
    color: var(--secondary-color);
    margin: 2.5rem 0 1.5rem;
    line-height: 1.4;
}
.news-detail-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

/* Haber Bulunamadı */
.news-not-found {
    text-align: center;
    padding: 4rem 2rem;
}
.not-found-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.news-not-found h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.news-not-found p {
    color: var(--text-light);
    margin-bottom: 2rem;
}
.btn-return {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-return:hover {
    transform: scale(1.05);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .news-detail-title {
        font-size: 2.2rem;
    }
    .news-detail-banner {
        height: 350px;
    }
    .news-detail-header, .news-detail-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .news-detail-container {
        margin: 2rem auto 4rem;
        padding: 0 1rem;
    }
    .news-detail-breadcrumb {
        margin-bottom: 2rem;
    }
    .news-detail-title {
        font-size: 1.8rem;
    }
    .news-detail-banner {
        height: 250px;
        margin: 0 -1rem; /* Make banner bleed */
        width: calc(100% + 2rem);
    }
    .news-detail-header {
        padding: 1.5rem;
    }
    .news-detail-content {
        padding: 2rem 1.5rem;
    }
    .news-detail-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* İçerik Stilleri (MarkupString) */
.news-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.news-detail-text iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
    margin: 2rem 0;
}

.news-detail-text table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.news-detail-text th,
.news-detail-text td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap; /* Prevent table cell content from wrapping */
}

.news-detail-text th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--secondary-color);
}

.news-detail-text blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
}