/* =========================
   NEWS.CSS (CLEAN)
   - only what news.html needs
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #333;
    --background-color: #d0d7f3;
    --border-color: #ddd;
}

/* Genel */
body {
    margin: 0;
    padding: 0;
    /* top right bottom left */
    font-family: "Times New Roman", Georgia, Garamond, serif;
    font-size: 18px;
    line-height: 1.2;
    background-color: #f2f2f2;
    /* senin standart görünüm */
}

#wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2px;
    background-color: var(--background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#wrapper[data-page="800"] {
    max-width: 800px;
}

/* Banner */
#banner {
    position: relative;
    width: 100%;
    margin-bottom: 0px;
    text-align: center;
}

#banner img {
    max-width: 100%;
    height: auto;
    display: block;
    /* boşluğu kaldırır */
}

/* Başlık */
h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 10px 0;
    color: #000;
    font-family: "Times New Roman", Georgia, Garamond, serif;
}

/* =========================
   NEWS LIST
   ========================= */

#news-container {
    margin: 10px 0 0 0;
    padding: 0;
}

.text {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 1px 0;
    background: #fff;
}

.news-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 14px;
    margin: 10px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.news-date {
    font-size: 14px;
    color: #777;
    margin: 0 0 4px 0;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    margin: 4px 0 10px 0;
    line-height: 1.25;
    color: #111;
}


.news-link a {
    text-decoration: none;
    color: #0033FF;
    /* sitenle uyumlu lacivert */
    font-weight: bold;
}

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

.news-content {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 8px;
}

.img-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.img-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    height: auto;
    box-shadow: 0 0 20px #000;
    border-radius: 4px;
}



/* content içindeki paragraf boşluklarını azalt */
.news-content p {
    margin: 6px 0;
    /* önce/sonra boşluk */
    line-height: 1.35;
    /* daha sıkı */
}

/* ekstra: ilk paragraf üst boşluk almasın, son paragraf alt boşluk almasın */
.news-content p:first-child {
    margin-top: 0;
}

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

.news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.news-thumb {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 4px;
}

.news-actions {
    margin: 6px 0 8px 0;
}

.news-actions a {
    text-decoration: none;
    color: #000;
}

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


.news-button {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    color: #000;
    text-decoration: none;

    border: 1px solid #888;
    border-radius: 3px;

    background: linear-gradient(#ffffff, #e6e6e6);
}


.news-button:hover {
    background: linear-gradient(#f5f5f5, #dcdcdc);
}

.arrow {
    color: #7c2828;
    /* hafif kırmızı */
    margin-right: 4px;
    /* yazıyla arası */
}

.input-wide {
    width: 100%;
}


/* =========================
   RSS
   ========================= */

#rss {
    white-space: nowrap;
    font-size: 15px;
}

#rss a {
    text-decoration: none;
    color: #000;
}

#rss a:hover {
    text-decoration: underline;
}


#web_push {
    margin-left: auto;
    text-align: right;
}

/* =========================
   PAGINATION
   ========================= */

.pagination {
    text-align: center;

    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 10px;
    margin: 10px 0;
    background: #fff;
}

.pagination button {
    padding: 8px 15px;
    margin: 0 6px;
    cursor: pointer;

    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Mobil */
@media (max-width: 768px) {
    body {
        padding: 0 5px 5px 5px;
    }

    #wrapper {
        max-width: 100%;
        padding: 10px;
    }

    #news-container {
        padding: 0;
    }

    /* Link input'u uzat */
    .input-wide {
        width: 100%;
    }

    /* İstersen biraz daha rahat görünüm */
    .input-wide {
        padding: 10px;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* Cancel için hafif stil (isteğe bağlı) */
    .btn.ghost {
        background: transparent;
        border: 1px solid #bbb;
    }

    .pagination button {
        font-size: 15px;
        padding: 8px 12px;
        margin: 0 4px;
    }
}


.footer {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1;
    font-size: 12px;
    color: #6c757d;
}

.footer a {
    color: #007bff;
    /* Linklere mavi renk */
    text-decoration: none;
    /* Alt çizgiyi kaldır */
}

.footer a:hover {
    text-decoration: underline;
    /* Hover sırasında alt çizgi ekle */
}



/* =========================
   WEB PUSH UI
   ========================= */

.web-push-box {
    width: 100%;
    text-align: right;
    margin: 0px 0px 0px 0;
}

.web-push-label {
    display: inline-flex;
    /* sadece içeriği kadar yer kaplar */
    align-items: center;
    gap: 2px;
    user-select: none;
    font-size: 15px;

    cursor: pointer;
    /* yazı + checkbox üstünde el */
    width: fit-content;
    /* bazı tarayıcılarda ekstra garanti */
}


.web-push-text {
    font-family: "Times New Roman", Georgia, serif;
    text-decoration: none;
    transition: text-decoration 0.15s ease;
}

.web-push-label:hover .web-push-text {
    text-decoration: underline;
}

.web-push-status {
    margin-left: 6px;
    /* kutuya daha yakın */
    font-size: 13px;
    color: #666;
    cursor: default;
    /* el değil ok */
    user-select: none;
    /* istersen kalsın/çıkar */
    padding-right: 10px;
}

#pushToggle {
    width: 15px;
    height: 15px;
    transform: scale(1.1);
    transform-origin: center;
    cursor: pointer;
    /* zaten pointer; label da pointer */
}