﻿/* Haber Sayfası Font Tanımı */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Haber Detay Sayfası Stilleri */
html, body{
    background-color: #fff !important;
}
main{
    background-color: #fff !important;
}

.content-wrapper {
    padding: 2rem 1rem;
    background-color: #fff;
    max-width: 100%;
    box-sizing: border-box;
}

.baslik-container {
    color: #000;
    position: relative;
}

.tarih-label {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.sag-bilgi {
    text-align: center;
    color: #000;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .sag-bilgi p {
        margin: 0;
        /*text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);*/
        font-weight: 400;
        font-size: 1.2rem;
    }


    .sag-bilgi .aciklama-container {
    margin-bottom: 1rem;
    }

.big-image {
    width: 100%;
    max-width: 750px;
    height: auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.thumbnail-image {
    cursor: pointer;
    border: none !important;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#lightboxModal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightboxClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

#lightboxImg {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
}

#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

@media (min-width: 1401px) {
    .tarih-label {
        position: absolute !important;
        top: 0;
        right: 0;
        background-color: rgba(0,0,0,0.6);
        padding: 5px 10px;
        border-radius: 5px;
        color: #fff;
        font-size: 0.9rem;
        display: inline-block;
    }

    .baslik-container {
        display: block;
    }

        .baslik-container h3 {
            margin-bottom: 0;
        }
}
/* Masaüstü ve geniş ekranlar (1200px ve üstü) */
@media (min-width: 1200px) {
    .content-wrapper .row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        align-items: flex-start;
    }

        .content-wrapper .row > div {
            max-width: none;
        }

    .sag-bilgi {
        text-align: center;
        padding-top: 4rem;
        max-width: 450px;
    }
}

@media (max-width: 1400px) {
    .baslik-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
    }

        .baslik-container h3 {
            margin-bottom: 0.5rem;
            width: 100%;
            text-align: center;
        }

    .tarih-label {
        position: static !important;
        align-self: flex-end;
        background-color: rgba(0,0,0,0.6);
        padding: 5px 10px;
        border-radius: 5px;
        color: #fff;
        font-size: 0.9rem;
        display: inline-block;
    }

    /* iPad yatay ve benzeri (768px - 1199px) */
    @media (min-width: 768px) and (max-width: 1199px) {
        .content-wrapper .row {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 1.5rem;
            align-items: flex-start;
            flex-wrap: wrap;
        }

            .content-wrapper .row > div {
                flex: 1 1 45%;
                max-width: 45%;
            }

        .sag-bilgi {
            text-align: center;
            padding-top: 2rem;
            max-width: 100%;
        }

        .big-image {
            max-width: 100%;
            max-height: none;
        }
    }

    /* Tablet ve küçük tablet (600px - 767px) */
    @media (min-width: 600px) and (max-width: 767px) {
        .content-wrapper .row {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

            .content-wrapper .row > div {
                max-width: 100%;
                padding: 0;
                margin: 0 auto;
            }

        .big-image {
            max-width: 350px;
            margin-bottom: 1.5rem;
        }

        .sag-bilgi {
            padding-top: 1.5rem;
            margin-bottom: 1rem;
            text-align: center;
        }
    }

    /* Telefonlar (600px altı) */
    @media (max-width: 599px) {

        .baslik-container {
            position: static; /* absolute pozisyonu iptal */
            padding-top: 0; /* varsa üst padding kaldır */
        }

            .baslik-container h3 {
                margin-bottom: 0.5rem; /* başlık ile tarih arası boşluk */
            }

        .tarih-label {
            position: static !important; /* absolute kaldır */
            display: inline-block; /* veya block da olabilir */
            margin-top: 1rem;
            text-align: right;
            border-radius: 5px;
            font-size: 0.9rem;
        }

        .content-wrapper .row {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

            .content-wrapper .row > div {
                max-width: 100%;
                padding: 0;
                margin: 0 auto;
            }

        .big-image {
            max-width: 90vw;
            margin-bottom: 1rem;
        }

        .sag-bilgi {
            padding-top: 1rem;
            margin-bottom: 1rem;
            text-align: center;
        }
    }
}
