/* =========================================
   CSI HABER PANELİ
========================================= */

.news-panel-overlay,
.news-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(3, 5, 10, 0.84);

    backdrop-filter:
        blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.news-panel-overlay.active,
.news-preview-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   NAVBAR HABER PANELİ BUTONU
========================================= */

.news-panel-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border:
        1px solid rgba(246, 201, 76, 0.22);

    background:
        rgba(246, 201, 76, 0.06);

    color: #f2cd61;
}

.news-panel-nav:hover {
    border-color:
        rgba(246, 201, 76, 0.55);

    background:
        rgba(246, 201, 76, 0.12);
}

/* =========================================
   HABER PANELİ ANA POPUP
========================================= */

.news-admin-popup {
    position: relative;

    width: min(1450px, 96vw);
    height: min(880px, 92vh);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #161a23 0%,
            #0e1118 100%
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.62);

    transform:
        translateY(12px)
        scale(0.98);

    transition:
        transform 0.22s ease;
}

.news-panel-overlay.active
.news-admin-popup {
    transform:
        translateY(0)
        scale(1);
}

/* =========================================
   KAPATMA BUTONU
========================================= */

.news-admin-close,
.news-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #d9dde6;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.news-admin-close:hover,
.news-preview-close:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(255, 83, 105, 0.42);

    background:
        rgba(255, 83, 105, 0.11);

    color: #ff7789;
}

/* =========================================
   ÜST BAŞLIK
========================================= */

.news-admin-header {
    flex-shrink: 0;

    padding: 24px 76px 22px 28px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        radial-gradient(
            circle at top left,
            rgba(246, 201, 76, 0.12),
            transparent 40%
        );
}

.news-admin-header > span {
    display: block;

    margin-bottom: 6px;

    color: #f2c64f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.news-admin-header h2 {
    margin: 0 0 7px;

    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.news-admin-header p {
    max-width: 760px;
    margin: 0;

    color: #929aaa;
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================
   PANEL İÇ DÜZENİ
========================================= */

.news-admin-layout {
    flex: 1;

    display: grid;

    grid-template-columns:
        minmax(300px, 360px)
        minmax(0, 1fr);

    min-height: 0;
}

/* =========================================
   SOL HABER LİSTESİ
========================================= */

.news-admin-sidebar {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    border-right:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(8, 11, 17, 0.58);
}

.news-admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.news-admin-sidebar-header h3 {
    margin: 0 0 4px;

    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
}

.news-admin-sidebar-header p {
    margin: 0;

    color: #747d8f;
    font-size: 10px;
}

.news-create-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 38px;
    padding: 0 12px;

    border:
        1px solid rgba(246, 201, 76, 0.32);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #e8b92d,
            #c98c13
        );

    color: #171208;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.news-create-new-btn:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(210, 154, 27, 0.24);

    filter:
        brightness(1.05);
}

/* =========================================
   FİLTRE
========================================= */

.news-admin-filter-row {
    padding: 12px 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}

.news-admin-filter-row select {
    width: 100%;
    min-height: 39px;

    padding: 0 12px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 9px;
    outline: none;

    background:
        #151923;

    color: #dce1e9;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.news-admin-filter-row select:focus {
    border-color:
        rgba(246, 201, 76, 0.58);

    box-shadow:
        0 0 0 3px
        rgba(246, 201, 76, 0.07);
}

/* =========================================
   HABER LİSTESİ
========================================= */

.news-admin-article-list {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 9px;

    min-height: 0;
    padding: 13px;

    overflow-y: auto;
}

.news-admin-article-list::-webkit-scrollbar,
.news-admin-editor::-webkit-scrollbar {
    width: 6px;
}

.news-admin-article-list::-webkit-scrollbar-track,
.news-admin-editor::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, 0.02);
}

.news-admin-article-list::-webkit-scrollbar-thumb,
.news-admin-editor::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.14);
}

.news-admin-article-list::-webkit-scrollbar-thumb:hover,
.news-admin-editor::-webkit-scrollbar-thumb:hover {
    background:
        rgba(246, 201, 76, 0.46);
}

.news-admin-article-item {
    position: relative;

    width: 100%;
    padding: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.026);

    color: inherit;
    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.news-admin-article-item:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(255, 255, 255, 0.14);

    background:
        rgba(255, 255, 255, 0.045);
}

.news-admin-article-item.active {
    border-color:
        rgba(246, 201, 76, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(246, 201, 76, 0.1),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.2);
}

.news-admin-article-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
}

.news-admin-article-item-top strong {
    flex: 1;

    display: -webkit-box;

    overflow: hidden;

    color: #edf0f5;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-admin-article-item p {
    display: -webkit-box;

    margin: 8px 0 10px;

    overflow: hidden;

    color: #8c95a5;
    font-size: 10px;
    line-height: 1.5;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-admin-article-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    color: #697284;
    font-size: 9px;
    font-weight: 650;
}

/* =========================================
   LİSTE DURUM ETİKETLERİ
========================================= */

.news-admin-list-status {
    flex-shrink: 0;

    padding: 4px 7px;

    border:
        1px solid transparent;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.news-admin-list-status.draft {
    border-color:
        rgba(246, 201, 76, 0.22);

    background:
        rgba(246, 201, 76, 0.08);

    color: #e6c257;
}

.news-admin-list-status.published {
    border-color:
        rgba(76, 220, 139, 0.26);

    background:
        rgba(76, 220, 139, 0.08);

    color: #6fe0a2;
}

.news-admin-list-status.archived {
    border-color:
        rgba(143, 151, 168, 0.25);

    background:
        rgba(143, 151, 168, 0.08);

    color: #adb3c0;
}

.news-admin-featured-label {
    display: inline-flex;
    align-items: center;

    margin-top: 10px;
    padding: 4px 7px;

    border:
        1px solid rgba(246, 201, 76, 0.26);

    border-radius: 999px;

    background:
        rgba(246, 201, 76, 0.08);

    color: #f1c957;
    font-size: 8px;
    font-weight: 900;
}

/* =========================================
   YÜKLENİYOR / BOŞ MESAJI
========================================= */

.news-admin-message {
    padding: 24px 16px;

    color: #81899a;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================
   SAĞ EDİTÖR
========================================= */

.news-admin-editor {
    min-width: 0;
    min-height: 0;

    padding: 22px;

    overflow-y: auto;

    background:
        rgba(14, 17, 24, 0.72);
}

.news-admin-editor-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 21px;
    padding-bottom: 17px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.news-admin-editor-title > div:first-child {
    min-width: 0;
}

.news-admin-editor-title span:first-child {
    display: block;

    margin-bottom: 5px;

    color: #d6af3e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.news-admin-editor-title h3 {
    margin: 0;

    overflow: hidden;

    color: #ffffff;
    font-size: 20px;
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   EDİTÖR DURUM ROZETİ
========================================= */

.news-editor-status {
    flex-shrink: 0;

    padding: 7px 11px;

    border:
        1px solid transparent;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 900;
}

.news-editor-status.draft {
    border-color:
        rgba(246, 201, 76, 0.25);

    background:
        rgba(246, 201, 76, 0.08);

    color: #e5c053;
}

.news-editor-status.published {
    border-color:
        rgba(67, 211, 136, 0.28);

    background:
        rgba(67, 211, 136, 0.09);

    color: #71e0a6;
}

.news-editor-status.archived {
    border-color:
        rgba(148, 157, 176, 0.24);

    background:
        rgba(148, 157, 176, 0.08);

    color: #b0b6c2;
}

/* =========================================
   FORM GRID
========================================= */

.news-admin-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.news-admin-field {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 7px;

    min-width: 0;
}

.news-admin-field-full {
    grid-column: 1 / -1;
}

.news-admin-field label {
    color: #c8ced8;
    font-size: 10px;
    font-weight: 850;
}

.news-admin-field input,
.news-admin-field select,
.news-admin-field textarea {
    width: 100%;

    border:
        1px solid rgba(255, 255, 255, 0.095);

    border-radius: 10px;
    outline: none;

    background:
        rgba(255, 255, 255, 0.04);

    color: #edf0f5;
    font-family: inherit;
    font-size: 12px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.news-admin-field input,
.news-admin-field select {
    min-height: 43px;
    padding: 0 12px;
}

.news-admin-field textarea {
    padding: 12px;

    line-height: 1.6;

    resize: vertical;
}

.news-admin-field input::placeholder,
.news-admin-field textarea::placeholder {
    color: #626b7c;
}

.news-admin-field input:focus,
.news-admin-field select:focus,
.news-admin-field textarea:focus {
    border-color:
        rgba(246, 201, 76, 0.62);

    background:
        rgba(255, 255, 255, 0.055);

    box-shadow:
        0 0 0 3px
        rgba(246, 201, 76, 0.07);
}

.news-admin-field select {
    cursor: pointer;
}

.news-admin-field select option {
    background: #161a23;
    color: #f1f3f7;
}

/* =========================================
   KARAKTER SAYACI
========================================= */

.news-character-counter {
    align-self: flex-end;

    margin-top: -2px;

    color: #656f81;
    font-size: 9px;
    font-weight: 650;
}

/* =========================================
   GÖRSEL ÖNİZLEMESİ
========================================= */

.news-image-preview-wrapper {
    grid-column: 1 / -1;

    width: 100%;
    max-height: 300px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 12px;

    background:
        rgba(0, 0, 0, 0.22);
}

.news-image-preview-wrapper img {
    display: block;

    width: 100%;
    height: 260px;

    object-fit: cover;
}

/* =========================================
   ÖNE ÇIKARMA ALANI
========================================= */

.news-feature-area {
    margin-top: 18px;
    padding: 14px 15px;

    border:
        1px solid rgba(246, 201, 76, 0.16);

    border-radius: 11px;

    background:
        rgba(246, 201, 76, 0.04);
}

.news-feature-area label {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #e7e9ed;
    font-size: 11px;
    font-weight: 850;

    cursor: pointer;
}

.news-feature-area input[type="checkbox"] {
    width: 17px;
    height: 17px;

    accent-color: #e7b82e;

    cursor: pointer;
}

.news-feature-area p {
    margin: 7px 0 0 26px;

    color: #7f8797;
    font-size: 9px;
    line-height: 1.5;
}

/* =========================================
   GERİ BİLDİRİM
========================================= */

.news-panel-feedback {
    min-height: 22px;

    margin-top: 13px;

    color: #ff7d8f;
    font-size: 10px;
    font-weight: 750;
}

.news-panel-feedback.success {
    color: #69dca0;
}

/* =========================================
   ALT AKSİYON BUTONLARI
========================================= */

.news-admin-actions {
    position: sticky;
    bottom: -22px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;

    margin: 0 -22px -22px;
    padding: 14px 22px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(13, 16, 23, 0.96);

    backdrop-filter:
        blur(8px);
}

.news-admin-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 0 15px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.news-admin-actions button:hover {
    transform:
        translateY(-1px);
}

.news-admin-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.news-admin-secondary-btn {
    border:
        1px solid rgba(255, 255, 255, 0.12);

    background:
        rgba(255, 255, 255, 0.05);

    color: #d6dae2;
}

.news-admin-secondary-btn:hover {
    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(255, 255, 255, 0.08);
}

.news-admin-danger-btn {
    border:
        1px solid rgba(255, 74, 98, 0.32);

    background:
        rgba(255, 74, 98, 0.09);

    color: #ff7588;
}

.news-admin-danger-btn:hover {
    border-color:
        rgba(255, 74, 98, 0.56);

    background:
        rgba(255, 74, 98, 0.15);
}

.news-admin-primary-btn {
    border:
        1px solid rgba(246, 201, 76, 0.34);

    background:
        linear-gradient(
            135deg,
            #ebbc31,
            #c98f18
        );

    color: #181207;
}

.news-admin-primary-btn:hover {
    box-shadow:
        0 8px 22px
        rgba(211, 156, 28, 0.24);
}

/* =========================================
   HABER ÖNİZLEME POPUP
========================================= */

.news-preview-overlay {
    z-index: 99999;
}

.news-preview-popup {
    position: relative;

    width: min(780px, 94vw);
    max-height: 90vh;

    overflow-y: auto;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            #171b24,
            #0f1218
        );

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.62);

    transform:
        translateY(10px)
        scale(0.98);

    transition:
        transform 0.22s ease;
}

.news-preview-overlay.active
.news-preview-popup {
    transform:
        translateY(0)
        scale(1);
}

.news-preview-popup::-webkit-scrollbar {
    width: 6px;
}

.news-preview-popup::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.15);
}

.news-preview-cover {
    width: 100%;
    height: 340px;

    overflow: hidden;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    background:
        rgba(0, 0, 0, 0.25);
}

.news-preview-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.news-preview-body {
    padding: 27px;
}

.news-preview-category {
    display: inline-flex;

    margin-bottom: 12px;
    padding: 6px 10px;

    border:
        1px solid rgba(246, 201, 76, 0.25);

    border-radius: 999px;

    background:
        rgba(246, 201, 76, 0.08);

    color: #ebc552;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.news-preview-body h2 {
    margin: 0 0 13px;

    color: #ffffff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    line-height: 1.2;
}

.news-preview-summary {
    margin: 0 0 22px;
    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    color: #a9b0bd;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.news-preview-content {
    color: #d9dde5;
    font-size: 14px;
    line-height: 1.85;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .news-admin-popup {
        width: 96vw;
        height: 94vh;
    }

    .news-admin-layout {
        grid-template-columns:
            minmax(260px, 310px)
            minmax(0, 1fr);
    }

    .news-admin-header {
        padding-left: 22px;
    }

    .news-admin-editor {
        padding: 18px;
    }

    .news-admin-actions {
        bottom: -18px;

        margin:
            0 -18px -18px;

        padding:
            13px 18px;
    }

}

/* =========================================
   KÜÇÜK TABLET
========================================= */

@media (max-width: 820px) {

    .news-panel-overlay {
        padding: 10px;
    }

    .news-admin-popup {
        width: 100%;
        height: 96vh;

        border-radius: 14px;
    }

    .news-admin-layout {
        display: flex;
        flex-direction: column;

        overflow-y: auto;
    }

    .news-admin-sidebar {
        flex: 0 0 auto;

        max-height: 330px;

        border-right: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

    .news-admin-article-list {
        max-height: 230px;
    }

    .news-admin-editor {
        overflow: visible;
    }

    .news-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .news-admin-field-full {
        grid-column: auto;
    }

    .news-image-preview-wrapper {
        grid-column: auto;
    }

    .news-admin-actions {
        position: sticky;
        bottom: 0;

        flex-wrap: wrap;

        margin:
            15px -18px -18px;
    }

}

/* =========================================
   MOBİL
========================================= */

@media (max-width: 560px) {

    .news-panel-overlay,
    .news-preview-overlay {
        padding: 0;
    }

    .news-admin-popup,
    .news-preview-popup {
        width: 100%;
        height: 100%;
        max-height: none;

        border: 0;
        border-radius: 0;
    }

    .news-admin-header {
        padding:
            20px 60px 18px 16px;
    }

    .news-admin-header h2 {
        font-size: 21px;
    }

    .news-admin-header p {
        font-size: 11px;
    }

    .news-admin-close,
    .news-preview-close {
        top: 12px;
        right: 12px;

        width: 36px;
        height: 36px;
    }

    .news-admin-sidebar-header {
        align-items: flex-start;
        padding: 14px;
    }

    .news-create-new-btn {
        min-height: 36px;
        padding: 0 10px;

        font-size: 9px;
    }

    .news-admin-filter-row {
        padding:
            10px 14px;
    }

    .news-admin-article-list {
        padding: 10px;
    }

    .news-admin-editor {
        padding: 15px;
    }

    .news-admin-editor-title {
        margin-bottom: 17px;
    }

    .news-admin-editor-title h3 {
        max-width: 220px;

        font-size: 17px;
    }

    .news-admin-field input,
    .news-admin-field select {
        min-height: 42px;
    }

    .news-admin-field textarea {
        font-size: 11px;
    }

    .news-image-preview-wrapper img {
        height: 190px;
    }

    .news-admin-actions {
        gap: 7px;

        margin:
            14px -15px -15px;

        padding:
            11px 15px;
    }

    .news-admin-actions button {
        flex: 1 1 calc(50% - 7px);

        min-width: 120px;
        padding: 0 10px;

        font-size: 9px;
    }

    .news-preview-cover {
        height: 245px;
    }

    .news-preview-body {
        padding: 21px 17px;
    }

    .news-preview-body h2 {
        font-size: 25px;
    }

    .news-preview-summary,
    .news-preview-content {
        font-size: 12px;
    }

}

/* =========================================
   ÇOK KÜÇÜK EKRAN
========================================= */

@media (max-width: 380px) {

    .news-admin-actions button {
        flex-basis: 100%;
    }

    .news-admin-sidebar-header {
        flex-direction: column;
    }

    .news-create-new-btn {
        width: 100%;
    }

}

/* =========================================
   ANA SAYFA DİNAMİK HABERLER
========================================= */

.public-news-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.public-news-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(246, 201, 76, 0.38);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.22);
}

.public-news-card-image {
    width: 100%;
    height: 190px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.035);
}

.public-news-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.public-news-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 17px;
}

.public-news-meta,
.public-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.public-news-category {
    padding: 5px 8px;

    border:
        1px solid rgba(246, 201, 76, 0.26);

    border-radius: 999px;

    background:
        rgba(246, 201, 76, 0.08);

    color: #f0c849;
    font-size: 9px;
    font-weight: 900;
}

.public-news-date,
.public-news-author {
    color: #7f8796;
    font-size: 9px;
    font-weight: 650;
}

.public-news-card-content h3 {
    margin: 14px 0 9px;

    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.public-news-card-content > p {
    display: -webkit-box;

    margin: 0 0 18px;

    overflow: hidden;

    color: #aeb5c2;
    font-size: 12px;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.public-news-footer {
    margin-top: auto;
}

.public-news-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 35px;
    padding: 0 11px;

    border:
        1px solid rgba(246, 201, 76, 0.3);

    border-radius: 8px;

    background:
        rgba(246, 201, 76, 0.09);

    color: #efc53e;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;

    cursor: pointer;
}

.public-featured-news {
    display: grid;
    grid-template-columns:
        minmax(260px, 42%)
        minmax(0, 1fr);

    margin-bottom: 18px;
    overflow: hidden;

    border:
        1px solid rgba(246, 201, 76, 0.38);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(246, 201, 76, 0.1),
            rgba(255, 255, 255, 0.025)
        );
}

.public-featured-news-image {
    min-height: 260px;
}

.public-featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-featured-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 25px;
}

.public-featured-news-badge {
    width: fit-content;
    padding: 6px 10px;

    border-radius: 999px;

    background: #e8b82e;
    color: #191306;

    font-size: 9px;
    font-weight: 900;
}

.public-featured-news-content h3 {
    margin: 14px 0 10px;

    color: #fff;
    font-size: 26px;
}

.public-featured-news-content p {
    margin: 0 0 13px;

    color: #adb5c2;
    font-size: 13px;
    line-height: 1.65;
}

.public-featured-news-info {
    margin-bottom: 18px;

    color: #777f8f;
    font-size: 10px;
}

.public-news-empty {
    grid-column: 1 / -1;

    padding: 55px 20px;

    color: #8790a1;
    text-align: center;
}

.public-news-empty i {
    margin-bottom: 12px;

    color: #d8af34;
    font-size: 34px;
}

.public-news-empty h3 {
    margin: 0 0 8px;

    color: #fff;
}

.public-news-empty p {
    margin: 0;
}

/* HABER DETAYI */

.public-news-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.82);

    backdrop-filter:
        blur(7px);
}

.public-news-detail-popup {
    position: relative;

    width: min(850px, 96vw);
    max-height: 92vh;

    overflow-y: auto;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            #171b24,
            #0e1117
        );

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.62);
}

.public-news-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 10px;

    background:
        rgba(0, 0, 0, 0.55);

    color: #ffffff;

    cursor: pointer;
}

.public-news-detail-cover {
    height: 360px;
}

.public-news-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-news-detail-body {
    padding: 28px;
}

.public-news-detail-category {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(246, 201, 76, 0.1);

    color: #edc64e;

    font-size: 9px;
    font-weight: 900;
}

.public-news-detail-body h2 {
    margin: 15px 0 8px;

    color: #ffffff;
    font-size: 32px;
    line-height: 1.25;
}

.public-news-detail-info {
    color: #777f90;
    font-size: 10px;
}

.public-news-detail-summary {
    margin: 20px 0;
    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.09);

    color: #aeb6c3;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.65;
}

.public-news-detail-content {
    color: #d8dde6;
    font-size: 14px;
    line-height: 1.85;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 700px) {

    .public-featured-news {
        grid-template-columns: 1fr;
    }

    .public-featured-news-image {
        min-height: 210px;
    }

    .public-news-detail-cover {
        height: 230px;
    }

    .public-news-detail-body {
        padding: 20px 16px;
    }

    .public-news-detail-body h2 {
        font-size: 24px;
    }

}

/* =========================================
   HABER / DUYURU PANEL SEKMELERİ
========================================= */

.content-panel-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;
}

.content-panel-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 39px;
    padding: 0 15px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #aeb5c2;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.content-panel-tab:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(246, 201, 76, 0.32);

    color: #e9c451;
}

.content-panel-tab.active {
    border-color:
        rgba(246, 201, 76, 0.5);

    background:
        rgba(246, 201, 76, 0.12);

    color: #f0c94f;

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, 0.15);
}

.content-management-section {
    display: none;
    flex: 1;
    min-height: 0;
}

.content-management-section.active {
    display: flex;
}

.content-management-section
.news-admin-layout {
    flex: 1;
    width: 100%;
}

/* =========================================
   DUYURU CANLI ÖNİZLEME
========================================= */

.announcement-live-preview {
    margin-top: 18px;
    padding: 15px;

    border:
        1px solid rgba(246, 201, 76, 0.15);

    border-radius: 12px;

    background:
        rgba(246, 201, 76, 0.035);
}

.announcement-preview-label {
    display: block;

    margin-bottom: 10px;

    color: #d8b13c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.announcement-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.035);
}

.announcement-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 9px;

    background:
        rgba(246, 201, 76, 0.1);

    font-size: 18px;
}

.announcement-preview-card strong {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.announcement-preview-card p {
    margin: 0;

    color: #9ca4b3;
    font-size: 10px;
    line-height: 1.55;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 560px) {

    .content-panel-tabs {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .content-panel-tab {
        width: 100%;
        padding: 0 8px;
    }

}

/* =========================================
   ANA SAYFA DUYURULARI
========================================= */

#duyuruContainer {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.public-announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    padding: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.035);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.public-announcement-item:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(246, 201, 76, 0.3);

    background:
        rgba(246, 201, 76, 0.055);
}

.public-announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border:
        1px solid rgba(246, 201, 76, 0.17);

    border-radius: 9px;

    background:
        rgba(246, 201, 76, 0.08);

    font-size: 18px;
}

.public-announcement-content {
    flex: 1;
    min-width: 0;
}

.public-announcement-content strong {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}

.public-announcement-content p {
    margin: 0;

    color: #a0a8b6;
    font-size: 10px;
    line-height: 1.55;

    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.public-announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-top: 9px;

    color: #6f7889;
    font-size: 8px;
    font-weight: 650;
}

.public-announcement-empty {
    padding: 30px 12px;

    color: #808999;
    font-size: 10px;
    text-align: center;
}

/* =========================================
   İÇERİK SİLME ONAY POPUP
========================================= */

.content-delete-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.78);

    backdrop-filter:
        blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.content-delete-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.content-delete-confirm-popup {
    width: min(420px, 94vw);

    padding: 27px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            #171b24,
            #0e1117
        );

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.62);

    text-align: center;

    transform:
        translateY(10px)
        scale(0.97);

    transition:
        transform 0.2s ease;
}

.content-delete-confirm-overlay.active
.content-delete-confirm-popup {
    transform:
        translateY(0)
        scale(1);
}

.content-delete-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 16px;

    border:
        1px solid rgba(255, 83, 105, 0.28);

    border-radius: 50%;

    background:
        rgba(255, 83, 105, 0.1);

    color: #ff7185;
    font-size: 22px;
}

.content-delete-confirm-popup h3 {
    margin: 0 0 10px;

    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.content-delete-confirm-popup p {
    margin: 0;

    color: #9da5b4;
    font-size: 12px;
    line-height: 1.6;
}

.content-delete-confirm-actions {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 23px;
}

.content-delete-confirm-actions button {
    min-height: 42px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.content-delete-confirm-actions button:hover {
    transform:
        translateY(-1px);
}

.content-delete-confirm-cancel {
    border:
        1px solid rgba(255, 255, 255, 0.12);

    background:
        rgba(255, 255, 255, 0.05);

    color: #d7dbe3;
}

.content-delete-confirm-cancel:hover {
    background:
        rgba(255, 255, 255, 0.08);
}

.content-delete-confirm-approve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border:
        1px solid rgba(255, 74, 98, 0.38);

    background:
        linear-gradient(
            135deg,
            #d74359,
            #a9283b
        );

    color: #ffffff;
}

.content-delete-confirm-approve:hover {
    border-color:
        rgba(255, 98, 119, 0.65);

    background:
        linear-gradient(
            135deg,
            #e34b62,
            #b42d42
        );
}

@media (max-width: 460px) {

    .content-delete-confirm-popup {
        padding: 23px 18px;
    }

}

/* =========================================
   HABER KAPAK GÖRSELİ YÜKLEME
========================================= */

.news-image-upload-area {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 14px;

    border:
        1px dashed rgba(246, 201, 76, 0.3);

    border-radius: 11px;

    background:
        rgba(246, 201, 76, 0.035);
}

.news-image-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;
    padding: 0 15px;

    flex-shrink: 0;

    border:
        1px solid rgba(246, 201, 76, 0.36);

    border-radius: 9px;

    background:
        rgba(246, 201, 76, 0.1);

    color: #edc64b;
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.news-image-select-btn:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(246, 201, 76, 0.6);

    background:
        rgba(246, 201, 76, 0.16);
}

.news-image-select-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.news-image-upload-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.news-image-upload-info strong {
    overflow: hidden;

    color: #e5e8ee;
    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-image-upload-info span {
    color: #747d8e;
    font-size: 9px;
}

.news-image-preview-wrapper {
    position: relative;
}

.news-image-preview-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 10px;

    background:
        rgba(7, 9, 14, 0.84);

    backdrop-filter:
        blur(6px);
}

.news-image-preview-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 34px;
    padding: 0 10px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 900;

    cursor: pointer;
}

@media (max-width: 560px) {

    .news-image-upload-area {
        align-items: stretch;
        flex-direction: column;
    }

    .news-image-select-btn {
        width: 100%;
    }

    .news-image-preview-actions {
        position: static;

        justify-content: stretch;

        border: 0;
        border-radius: 0;

        background:
            rgba(8, 10, 15, 0.95);
    }

    .news-image-preview-actions button {
        flex: 1;
    }

}