/* Haber Detay Sayfası CSS */

.news-detail-page {
    padding-top: 150px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #224a98;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1a3a7a;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Haber Detay */
.news-detail {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: "Bebas Neue", cursive;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-meta i {
    color: #224a98;
}

.news-detail-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-detail-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #224a98;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    font-style: italic;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Galeri */
.news-gallery {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.gallery-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: "Bebas Neue", cursive;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Galeri Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.gallery-modal-close:hover {
    color: #ccc;
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    z-index: 10001;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background-color: rgba(255,255,255,0.5);
}

/* İlgili Haberler */
.related-news {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-news-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    font-family: "Bebas Neue", cursive;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.related-news-item:hover {
    background-color: #f8f9fa;
}

.related-news-image {
    flex: 0 0 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.1);
}

.related-news-content {
    flex: 1;
}

.related-news-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-news-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.related-news-item-title a:hover {
    color: #224a98;
}

.related-news-date {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail-page {
        padding-top: 150px;
    }

    .news-detail-container {
        padding: 20px 15px;
    }

    .news-detail {
        padding: 25px 20px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .related-news {
        padding: 20px;
    }

    .related-news-item {
        flex-direction: column;
    }

    .related-news-image {
        width: 100%;
        height: 200px;
    }

    .gallery-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        font-size: 30px;
        padding: 10px 15px;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }
}

