@import url("nav.css");
@import url("footer.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: whitesmoke;
    color: #333;
}

.news-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* ---------- Admin Yönetici Barı (view_A.html'deki .admin-edit-bar ile birebir aynı desen) ---------- */
.admin-edit-bar {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #dbe9f3;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(50, 132, 188, 0.08);
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
}

.admin-edit-bar button,
.admin-edit-bar a {
    padding: 5px 10px;
    cursor: pointer;
    border: 2px solid;
    border-radius: 10px;
    display: flex;
    gap: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    align-items: center;
    background: none;
    font-family: inherit;
}

#anlzNews {
    color: #27ae60;
    border-color: #27ae60;
}

#anlzNews:hover {
    background-color: #27ae60;
    color: #fff;
}

#edtNews {
    color: #3284bc;
    border-color: #3284bc;
}

#edtNews:hover {
    background-color: #3284bc;
    color: #fff;
}

#banNews {
    color: darkorange;
    border-color: darkorange;
}

#banNews:hover {
    background-color: darkorange;
    color: #fff;
}

#pubNews {
    color: #27ae60;
    border-color: #27ae60;
}

#pubNews:hover {
    background-color: #27ae60;
    color: #fff;
}

#delNews {
    color: crimson;
    border-color: crimson;
}

#delNews:hover {
    background-color: crimson;
    color: #fff;
}

.view-badge span {
    display: block;
    border-radius: 8px;
    background-color: #f0f0f0;
    padding: 5px 5px;
    color: #333;
    border: 1px solid #333;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    max-width: 120px;
    width: 100%;
}

.view-badge span i {
    margin-right: 4px;
}

@media (max-width: 768px) {
    .admin-edit-bar button {
        font-size: 14px;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .admin-edit-bar {
        flex-wrap: wrap;
    }

    .admin-edit-bar button,
    .admin-edit-bar a {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ---------- Breadcrumb ---------- */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 22px;
}

.news-breadcrumb a {
    color: #3284bc;
    text-decoration: none;
    font-weight: 600;
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

.news-breadcrumb i {
    font-size: 10px;
    color: #cbd5e1;
}

/* ---------- Makale ---------- */
.news-article {
    background: #ffffff;
    border: 1px solid #dbe9f3;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(50, 132, 188, 0.08);
}

.news-article-header {
    margin-bottom: 26px;
}

.news-article-category {
    display: inline-block;
    background: #eaf4fc;
    color: #3284bc;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.news-article-draft-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin: 0 0 14px 8px;
}

.news-article-header h1 {
    font-size: 32px;
    line-height: 1.3;
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 14px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.news-article-cover {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 28px;
}

.news-article-summary {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
    border-left: 3px solid #3284bc;
    padding-left: 18px;
    margin-bottom: 30px;
}

.news-article-content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #334155;
}

.news-article-content p {
    margin-bottom: 20px;
}

.news-article-content p:last-child {
    margin-bottom: 0;
}

.news-article-content ul,
.news-article-content ol {
    margin: 0 0 20px;
    padding-left: 34px;
}

.news-article-content ul {
    list-style-type: disc;
}

.news-article-content ol {
    list-style-type: decimal;
}

.news-article-content li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.news-article-content li:last-child {
    margin-bottom: 0;
}

.news-article-content li > ul,
.news-article-content li > ol {
    margin-top: 10px;
    margin-bottom: 0;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    margin: 26px 0 12px;
    line-height: 1.35;
    color: #1a365d;
}

.news-article-content blockquote {
    margin: 0 0 20px;
    padding: 10px 18px;
    border-left: 3px solid #3284bc;
    background: #f5fafd;
    color: #475569;
}

.news-article-empty {
    color: #94a3b8;
    font-style: italic;
}

/* ---------- İlgili İlan CTA ---------- */
.news-related-cta {
    margin-top: 36px;
    background: linear-gradient(90deg, #eaf4fc, #f5fafd);
    border: 1px solid #cfe6f5;
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.news-related-cta-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-related-cta-text i {
    font-size: 28px;
    color: #3284bc;
    flex-shrink: 0;
}

.news-related-cta-text h3 {
    font-size: 16px;
    color: #1a365d;
    margin-bottom: 4px;
}

.news-related-cta-text p {
    font-size: 13.5px;
    color: #64748b;
}

.news-related-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #3284bc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-related-cta-btn:hover {
    background-color: #2563a0;
    transform: translateY(-2px);
}

/* ---------- Diğer Haberler ---------- */
.news-more-section {
    margin-top: 50px;
}

.news-more-section h2 {
    font-size: 22px;
    color: #3284bc;
    margin-bottom: 20px;
    font-weight: 600;
}

.news-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.news-more-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbe9f3;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-more-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(50, 132, 188, 0.15);
}

.news-more-image-wrap {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.news-more-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-more-card:hover .news-more-image-wrap img {
    transform: scale(1.04);
}

.news-more-body {
    padding: 14px 16px;
}

.news-more-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #3284bc;
    margin-bottom: 6px;
}

.news-more-body h3 {
    font-size: 14.5px;
    color: #1a365d;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-more-body p {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Arşiv Sayfası (/haber/) ---------- */
.news-archive-page {
    max-width: 1200px;
    width: 100%;
}

.news-archive-header {
    margin-bottom: 28px;
}

.news-archive-header h1 {
    font-size: 30px;
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 6px;
}

.news-archive-header p {
    color: #64748b;
    font-size: 15px;
}

.news-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.news-more-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.news-archive-empty {
    background: #ffffff;
    border: 1px solid #dbe9f3;
    border-radius: 14px;
    padding: 60px 20px;
    text-align: center;
}

.news-archive-empty i {
    font-size: 42px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.news-archive-empty h3 {
    color: #334155;
    font-size: 18px;
    margin-bottom: 6px;
}

.news-archive-empty p {
    color: #94a3b8;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .news-article {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .news-article-header h1 {
        font-size: 24px;
    }

    .news-article-summary {
        font-size: 16px;
    }

    .news-article-content {
        font-size: 15.5px;
    }

    .news-related-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-related-cta-btn {
        width: 100%;
        justify-content: center;
    }
}