/* ============================================================
   HABERLER SAYFASI - Premium Elite Design
   Etkinlik sayfasıyla aynı tasarım dili
   ============================================================ */

/* ===== CONTAINER ===== */
.haberler-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 14px;
    background: transparent;
}

.haberler-container > .kura-header {
    max-width: 100%;
}

/* ===== GRID ===== */
.haberler-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

/* ===== KART ===== */
.haber-col {
    width: 100%;
}

.haber-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--star-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: var(--star-card-background-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.haber-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

/* ===== GÖRSEL ALANI ===== */
.haber-visual {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}

.haber-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.haber-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: brightness(0.88) saturate(1.02);
}

.haber-card:hover .haber-img {
    transform: scale(1.02);
    filter: brightness(0.95) saturate(1.05);
}

.haber-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* ===== TARİH BADGE (görsel üzeri) ===== */
.haber-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--star-border-color);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.haber-date-badge i {
    font-size: 0.7rem;
    color: var(--star-onemli-text-color);
}

.haber-date-badge span {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

/* ===== ANA İÇERİK ===== */
.haber-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 14px 12px;
    gap: 0;
}

.haber-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.haber-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--star-border-color);
    background: linear-gradient(135deg, var(--star-button-background-color) 0%, var(--star-button-hover-background-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.haber-icon-wrap i {
    font-size: 1.1rem;
    color: var(--star-button-text-color);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.haber-titlewrap {
    flex: 1;
    min-width: 0;
}

.haber-title {
    margin: 0;
    font-size: clamp(0.92rem, 0.35vw + 0.85rem, 1.08rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--star-normal-text-color);
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haber-subtext {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--star-onemsiz-text-color);
    line-height: 1.5;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.88;
}

/* ===== FOOTER (buton) ===== */
.haber-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 8px;
}

.haber-btn-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    color: var(--star-button-text-color);
    background: var(--star-button-background-color);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.haber-btn-detail:hover {
    background: var(--star-button-hover-background-color);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    color: var(--star-button-text-color);
}

.haber-btn-detail i {
    font-size: 0.88rem;
}

/* ===== BOŞ DURUM ===== */
.haberler-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid var(--star-border-color);
    border-radius: 14px;
    background: var(--star-card-background-color);
}

.haberler-empty i {
    font-size: 3rem;
    color: var(--star-onemsiz-text-color);
    opacity: 0.5;
}

.haberler-empty h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--star-normal-text-color);
    margin: 0;
}

.haberler-empty p {
    font-size: 0.88rem;
    color: var(--star-onemsiz-text-color);
    margin: 0;
    max-width: 350px;
    line-height: 1.6;
    opacity: 0.8;
}

/* ============================================================
   HABER MODAL - Premium Elite
   ============================================================ */

.haber-modal .modal-dialog {
    max-width: 680px;
    margin: auto;
}

/* Modal tam viewport yüksekliğine sığsın, scroll olmasın */
.haber-modal .modal-dialog .modal-content {
    max-height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.haber-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.haber-modal .modal-content {
    background: var(--star-card-background-color);
    border: 1px solid var(--star-border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--star-border-color);
}

/* Modal Header */
.haber-modal .modal-header {
    background: var(--star-navbar-bg);
    border-bottom: 1px solid var(--star-border-color);
    padding: 16px 20px;
    position: relative;
    overflow: visible;
}

.haber-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.08), transparent);
    animation: haber-shimmer 4s ease-in-out infinite;
}

.haber-modal-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.haber-modal-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--star-button-background-color) 0%, var(--star-button-hover-background-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.haber-modal-icon i {
    font-size: 1.1rem;
    color: var(--star-button-text-color);
}

.haber-modal-title-wrap {
    flex: 1;
    min-width: 0;
}

.haber-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--star-normal-text-color);
    margin: 0;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.haber-modal-date {
    font-size: 0.72rem;
    color: var(--star-onemsiz-text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.haber-modal-date i {
    color: var(--star-onemli-text-color);
    font-size: 0.68rem;
}

.haber-modal .btn-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/12px no-repeat;
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.haber-modal .btn-close:hover {
    background-color: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    opacity: 1;
}

/* Modal Görsel */
.haber-modal-visual {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--star-border-color);
    position: relative;
}

.haber-modal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.9) saturate(1.05);
}

/* Modal Body */
.haber-modal .modal-body {
    padding: 18px 24px;
    background: var(--star-card-background-color);
}

.haber-modal-body-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Modal Meta Bilgisi */
.haber-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 10px;
}

.haber-modal-meta i {
    color: var(--star-onemli-text-color);
    font-size: 0.9rem;
}

.haber-modal-meta span {
    font-size: 0.85rem;
    color: var(--star-onemsiz-text-color);
}

.haber-modal-meta strong {
    color: var(--star-onemli-text-color);
}

/* Modal İçerik */
.haber-modal-content-text {
    padding: 4px 0;
}

.haber-modal-content-text .ql-editor {
    padding: 0;
    background: transparent;
    color: var(--star-normal-text-color);
    line-height: 1.75;
    font-size: 0.95rem;
}

.haber-modal-content-text .ql-editor p {
    margin-bottom: 1rem;
    color: var(--star-normal-text-color);
}

.haber-modal-content-text .ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--star-border-color);
    margin: 10px 0;
}

.haber-modal-content-text .ql-editor h1,
.haber-modal-content-text .ql-editor h2,
.haber-modal-content-text .ql-editor h3 {
    color: var(--star-normal-text-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.haber-modal-content-text .ql-editor a {
    color: var(--star-onemli-text-color);
}

.haber-modal-content-text .ql-editor ul,
.haber-modal-content-text .ql-editor ol {
    padding-left: 1.5rem;
    color: var(--star-normal-text-color);
}

/* Divider */
.haber-modal-divider {
    height: 1px;
    background: var(--star-border-color);
    border: none;
    margin: 4px 0;
    opacity: 0.5;
}

/* Modal Footer */
.haber-modal .modal-footer {
    background: var(--star-navbar-bg);
    border-top: 1px solid var(--star-border-color);
    padding: 14px 24px;
}

.haber-modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid var(--star-border-color);
    background: transparent;
    color: var(--star-normal-text-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.haber-modal-close-btn:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--star-normal-text-color);
}

/* ============================================================
   ANİMASYONLAR
   ============================================================ */

@keyframes haber-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================================
   RESPONSİVE
   ============================================================ */

@media (max-width: 768px) {
    .haberler-container {
        padding: 15px 10px;
    }

    .haberler-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .haber-modal .modal-dialog {
        margin: 8px;
    }

    .haber-modal .modal-header {
        padding: 14px 16px;
    }

    .haber-modal .modal-body {
        padding: 16px;
    }

    .haber-modal .modal-footer {
        padding: 10px 16px;
    }

    .haber-modal-visual {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .haberler-row {
        gap: 12px;
    }

    .haber-card {
        border-radius: 12px;
    }

    .haber-modal .modal-content {
        border-radius: 16px;
    }

    .haber-modal-header-content {
        gap: 10px;
    }

    .haber-modal-icon {
        width: 40px;
        height: 40px;
    }

    .haber-modal .modal-title {
        font-size: 0.95rem;
    }
}
