/* GENEL */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
    overflow-x: hidden;
}

/* TÜM SAYFALARDA ORTAK GENİŞLİK */
.container {
    width: calc(100% - 24px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

/* HEADER */
.site-header {
    background: #111827;
    padding: 8px 0;
}

.site-header .container {
    width: calc(100% - 24px);
}

/* LOGO */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    vertical-align: middle;
    line-height: 0;
}

.logo img {
    display: block;
    width: 180px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

/* MENÜ */
.site-header nav {
    float: right;
    margin-top: 14px;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
}

/* ANA İÇERİK */
main.container {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* KARTLAR */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    min-width: 0;
}

/* BAĞLANTILAR */
a {
    color: #2563eb;
}

/* FORM ALANLARI */
input,
textarea {
    width: 100%;
    padding: 11px 12px;
    margin: 5px 0 9px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-family: inherit;
    font-size: 15px;
}

/* BUTONLAR */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 11px 18px;
    min-height: 42px;
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

/* HATA VE BAŞARI */
.error {
    color: #b91c1c;
}

.success {
    color: #15803d;
}

/* FOOTER */
.site-footer {
    margin-top: 14px;
    padding: 16px 0;
    background: #111827;
    color: #fff;
    text-align: center;
}

/* SAYFALAMA */
.pagination,
.pages,
.pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 12px 0;
}

/* KONU FOTOĞRAFLARI */
.topic-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    min-width: 0;
}

.topic-images a {
    display: block;
    width: calc(33.333% - 7px);
    min-width: 0;
}

.topic-images img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* HABER ARAMA ALANI */
.general-news .general-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.general-news .general-search input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 43px;
    margin: 0;
}

.general-news .general-search button {
    flex: 0 0 auto;
    height: 43px;
    min-height: 43px;
    margin: 0;
    white-space: nowrap;
}

/* GENEL HABER ALANI */
.general-news {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* TAŞMALARI ÖNLE */
img,
video,
iframe {
    max-width: 100%;
}

.container,
main,
.card {
    min-width: 0;
}

/* MOBİL */
@media (max-width: 700px) {

    .container {
        width: calc(100% - 20px);
    }

    .site-header {
        padding: 8px 0;
    }

    .site-header .container {
        width: calc(100% - 20px);
    }

    .logo img {
        width: 150px;
        height: auto;
        max-height: 45px;
    }

    .site-header nav {
        float: none;
        margin-top: 8px;
    }

    .site-header nav a {
        margin: 0 12px 0 0;
    }

    main.container {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .card {
        padding: 11px;
        margin-bottom: 7px;
    }

    .topic-images {
        flex-direction: column;
        gap: 10px;
    }

    .topic-images a {
        width: 100%;
    }

    .topic-images img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
        background: #f4f6f8;
    }

    .site-footer {
        margin-top: 10px;
        padding: 13px 0;
    }

    .general-news .general-search {
        gap: 7px;
    }

    .general-news .general-search button {
        padding-left: 13px;
        padding-right: 13px;
    }
}

/* ÇOK KÜÇÜK EKRANLAR */
@media (max-width: 380px) {

    .container,
    .site-header .container {
        width: calc(100% - 16px);
    }

    .general-news .general-search {
        gap: 6px;
    }

    .general-news .general-search button {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }
}