@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Detail page layout ---------- */
.hc-detail-wrap {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-top: 24px;
}
.hc-article {
    flex: 1 1 0%;
    max-width: 820px;
    min-width: 0;
}
.hc-side-news {
    position: sticky;
    top: 110px;
    width: 320px;
    background: #fff;
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 22px 14px 14px 14px;
    box-shadow: 0 4px 18px rgba(18,33,53,.08);
    margin-top: 60px;
    align-self: flex-start;
}
.hc-side-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--hc-blue);
    margin-bottom: 16px;
    text-align: left;
}
.hc-side-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hc-article-summary {
    font-size: 1.13rem;
    color: var(--hc-muted);
    margin: 12px 0 22px 0;
    font-style: italic;
}
@media (max-width: 991.98px) {
    .hc-detail-wrap { flex-direction: column; gap: 0; }
    .hc-side-news { position: static; width: 100%; margin-top: 28px; }
    .hc-article { max-width: 100%; }
}
/* ---------- Side news (detail sağ panel) ---------- */
.hc-side-news {
    position: absolute; right: 0; top: 0; width: 340px; max-width: 100vw;
    background: #fff; border: 1px solid var(--hc-border); border-radius: 10px;
    padding: 18px 12px 12px 12px; box-shadow: 0 4px 18px rgba(18,33,53,.08);
    margin-left: 32px;
}
.hc-side-title { font-size: 1.1rem; font-weight: 700; color: var(--hc-blue); margin-bottom: 10px; }
.hc-side-list { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 991.98px) {
    .hc-side-news { position: static; width: 100%; margin-left: 0; margin-top: 24px; }
}

:root {
    --hc-primary:    #6b0d2f; /* primary brand */
    --hc-secondary:  #8c1d40; /* secondary / headline */
    --hc-accent:     #ec671b; /* legacy accent / orange for hero titles */
    --hc-orange:     #ec671b; /* accent orange for footer headers etc. */
    --hc-blue:       var(--hc-secondary);
    --hc-dark:       #122135;
    --hc-bg:         #f6f7fb;
    --hc-card:       #ffffff;
    --hc-text:       #1a1f2b;
    --hc-muted:      #6b7280;
    --hc-border:     #e5e7eb;
    --hc-menu-bg:    #f9f9f9; /* menu background */
}

html { font-size: 16px; }
body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--hc-bg);
    color: var(--hc-text);
    line-height: 1.55;
}

/* global links */
a { color: var(--hc-blue); text-decoration: none; }
a:hover { color: var(--hc-primary); }

/* ---------- Header ---------- */
.hc-header { background: #fff; border-bottom: 3px solid var(--hc-primary); }

.hc-header, .hc-topbar {
    /* Force header/topbar to scroll with the page and override Bootstrap utilities */
    position: static !important;
    top: auto !important;
    inset: auto !important;
    z-index: auto !important;
    background: var(--hc-menu-bg);
    color: var(--hc-text);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hc-topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 60px;
    padding: 8px 0;
}
.hc-brand { display: inline-flex; align-items: center; }
.hc-brand img { height: 40px; width: auto; display: block; }

.hc-top-menu {
    list-style: none;
    margin: 0 auto;
    padding: 6px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    background: var(--hc-primary);
    border-radius: 8px;
    overflow: visible;
    max-width: 92%;
}
.hc-top-menu > li { list-style: none; flex: 0 0 auto; }
.hc-top-menu > li > a {
    display: inline-block;
    padding: 10px 14px;
    color: #ffffff;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 6px;
    transition: background .12s ease, color .12s ease;
}
.hc-top-menu > li > a:hover {
    background: #ffffff;
    color: var(--hc-primary);
}

/* Prevent Bootstrap sticky/fixed utilities from keeping the header pinned */
.hc-header .sticky-top,
.hc-header .sticky-sm-top,
.hc-header .sticky-md-top,
.hc-header .sticky-lg-top,
.hc-header .sticky-xl-top,
.hc-header .position-sticky,
.hc-header .position-fixed,
.hc-header .fixed-top,
.hc-topbar .sticky-top,
.hc-topbar .position-sticky,
.hc-topbar .position-fixed,
.hc-topbar .fixed-top {
    position: static !important;
    top: auto !important;
    inset: auto !important;
    z-index: auto !important;
}


/* "Haberler" hover dropdown */
.hc-top-dropdown { position: relative; }
.hc-top-dropdown > a {
    background: transparent !important;
    color: #fff !important;
    padding: 10px 14px; border-radius: 6px;
}
.hc-top-dropdown > a:hover { background: #ffffff !important; color: var(--hc-primary) !important; }
.hc-dropdown-panel {
    position: absolute; top: 100%; right: 0;
    background: #fff; color: var(--hc-text);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    min-width: 220px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(18,33,53,.18);
    display: none;
    z-index: 1030;
}
.hc-dropdown-panel a {
    display: block; padding: 8px 12px; border-radius: 4px;
    color: var(--hc-dark); font-size: .9rem;
}
.hc-dropdown-panel a:hover { background: var(--hc-bg); color: var(--hc-primary); }
.hc-top-dropdown:hover .hc-dropdown-panel,
.hc-top-dropdown:focus-within .hc-dropdown-panel { display: block; }

.hc-date { color: var(--hc-muted); font-size: .9rem; white-space: nowrap; }

/* Mobil navigasyon */
.hc-nav { background: var(--hc-menu-bg); }
.hc-nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.hc-nav-list.open {
    /* Limit height to viewport minus header and allow internal scrolling */
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.hc-nav-list li a {
    display: block; padding: 12px 14px;
    color: var(--hc-text); font-size: .92rem; font-weight: 500;
    border-bottom: 1px solid var(--hc-border);
}
.hc-nav-list li a:hover { background: rgba(0,0,0,.03); color: var(--hc-primary); }
.hc-nav-toggle {
    background: transparent; color: var(--hc-text); border: 0;
    padding: 10px 0; font-size: 1rem; cursor: pointer;
}

@media (max-width: 767.98px) {
    .hc-topbar-inner { grid-template-columns: auto 1fr; gap: 10px; min-height: 56px; }
    .hc-brand img { height: 34px; }
}

/* Mobile nav overlay: keep nav out of document flow so opening it doesn't resize header/main */
@media (max-width: 767.98px) {
    /* Anchor the mobile nav to the header (positioned within the fixed header)
       so it always sits immediately below the topbar and there is no gap. */
    .hc-nav {
        position: absolute;
        top: 100%; /* directly under the header content */
        left: 0;
        right: 0;
        width: 100%;
        height: auto; /* don't force full-height when closed */
        z-index: 9998;
        background: var(--hc-menu-bg);
        -webkit-overflow-scrolling: touch;
    }

    .hc-nav-list {
        list-style: none; margin: 0; padding: 0;
        display: flex; flex-direction: column;
        max-height: 0; /* default: collapsed */
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .hc-nav-list.open {
        max-height: calc(100vh - 72px); /* expand inside viewport under header */
        overflow-y: auto;
        overscroll-behavior: contain; /* prevent scroll chaining/bounce affecting page */
    }

    /* Prevent horizontal layout shifts on mobile when overlay appears */
    html, body { overflow-x: hidden; }
}

/* ---------- Main ---------- */
.hc-main { padding: 22px 0 60px; }

.hc-section-title {
    display: flex; align-items: center; justify-content: space-between;
    margin: 28px 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--hc-border);
}
.hc-section-title h2 {
    font-size: 1.15rem; margin: 0;
    padding-left: 12px; border-left: 5px solid var(--hc-primary);
    color: var(--hc-dark); font-weight: 700;
}
.hc-section-title a { font-size: .85rem; color: var(--hc-blue); font-weight: 600; }

/* ---------- News cards ---------- */
.hc-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.hc-card {
    background: var(--hc-card);
    border: 1px solid var(--hc-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
    display: flex; flex-direction: column;
}
.hc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18,33,53,.08); }
.hc-card .hc-thumb {
    width: 100%; aspect-ratio: 16/9;
    background: #e5e7eb center/cover no-repeat;
    display: block;
}
.hc-card .hc-thumb-empty {
    background: linear-gradient(135deg, var(--hc-blue), var(--hc-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.hc-card .hc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hc-card .hc-title {
    font-size: 1rem; font-weight: 600; color: var(--hc-dark);
    line-height: 1.3; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-card .hc-meta { color: var(--hc-muted); font-size: .78rem; margin-top: auto; }

/* Manşet kartı – daha geniş */
.hc-hero {
    grid-column: 1 / -1;
    position: relative; border-radius: 10px; overflow: hidden;
    min-height: 320px;
    background: var(--hc-dark) center/cover no-repeat;
    color: #fff; display: flex; align-items: flex-end;
}
.hc-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(18,33,53,.85) 100%);
}
.hc-hero .hc-hero-body { position: relative; padding: 22px; z-index: 1; }
.hc-hero .hc-hero-tag {
    display: inline-block; background: var(--hc-secondary); color: #fff;
    font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
}
.hc-hero h2 { font-size: 1.7rem; margin: 0; line-height: 1.25; color: #ffffff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,.5); }

/* ---------- Detail page ---------- */
.hc-article { background: #fff; border: 1px solid var(--hc-border); border-radius: 10px; padding: 22px; }
.hc-article h1 { color: var(--hc-primary); font-size: 1.7rem; margin: 0 0 8px; }
.hc-article .hc-article-meta { color: var(--hc-muted); font-size: .85rem; margin-bottom: 16px; }
.hc-article .hc-article-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.hc-article .hc-article-content { font-size: 1.02rem; }
.hc-article .hc-article-content p { margin: 0 0 14px; }
.hc-article video { width: 100%; max-height: 480px; border-radius: 8px; margin: 12px 0; }
.hc-source {
    display: inline-block;
    background: var(--hc-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 18px;
    font-size: .95rem;
}

/* ---------- Pagination ---------- */
.hc-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 32px 0 8px;
}
.hc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--hc-border, #e3e6ef);
    border-radius: 8px;
    background: #fff;
    color: var(--hc-text, #1a1f2b);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.hc-page-link:hover {
    background: var(--hc-bg, #f6f7fb);
    border-color: var(--hc-primary);
    color: var(--hc-primary);
}
.hc-page-link.active {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    color: #fff;
    cursor: default;
}
.hc-page-ellipsis {
    padding: 0 4px;
    color: var(--hc-muted, #6b7280);
}

/* ---------- Yukarı Çık Butonu ---------- */
.hc-scrolltop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--hc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s, background .15s;
    box-shadow: 0 6px 20px rgba(18,33,53,.28);
}
.hc-scrolltop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hc-scrolltop:hover {
    background: #5a0b27;
}
@media (max-width: 575.98px) {
    .hc-scrolltop { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------- Footer ---------- */
.hc-footer {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
    color: #e8e0f0;
    padding: 0;
    margin-top: 48px;
    font-size: .9rem;
    border-top: 3px solid var(--hc-primary);
}
.hc-footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 40px;
    padding: 44px 0 32px;
}
@media (max-width: 768px) {
    .hc-footer-top { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 20px; }
}
.hc-footer-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.hc-footer-desc {
    color: #b8a8cc;
    font-size: .88rem;
    line-height: 1.6;
    margin: 0;
}
.hc-footer-links h6,
.hc-footer-contact h6 {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hc-orange);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.hc-footer-links ul,
.hc-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hc-footer-links li {
    display: flex;
}
.hc-footer-links li::before {
    content: '›';
    color: var(--hc-primary);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-right: 7px;
    font-weight: 700;
}
.hc-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #b8a8cc;
    font-size: .86rem;
    line-height: 1.55;
}
.hc-footer-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hc-orange);
}
.hc-footer a {
    color: #d4c8e8;
    text-decoration: none;
    transition: color .18s;
}
.hc-footer a:hover { color: #ffffff; text-decoration: none; }
.hc-footer-contact a { color: #b8a8cc; }
.hc-footer-contact a:hover { color: #ffffff; }
.hc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 14px 0;
    text-align: center;
    font-size: .82rem;
    color: #8070a0;
}

/* ---------- Admin ---------- */
.admin-shell { max-width: 1200px; }
.admin-card { background: #fff; border: 1px solid var(--hc-border); border-radius: 8px; padding: 18px; }
.admin-stat {
    background: linear-gradient(135deg, var(--hc-blue), var(--hc-dark));
    color: #fff; padding: 14px 16px; border-radius: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.admin-stat .num { font-size: 1.6rem; font-weight: 700; color: var(--hc-orange); }
.admin-stat .lbl { font-size: .85rem; opacity: .85; }
.admin-table th { background: var(--hc-dark); color: #fff; font-weight: 600; }
.btn-hc { background: var(--hc-primary); border-color: var(--hc-primary); color: #fff; }
.btn-hc:hover { background: #5a0b27; border-color: #5a0b27; color: #fff; }
.btn-hc-outline { background: transparent; border: 1px solid var(--hc-blue); color: var(--hc-blue); }
.btn-hc-outline:hover { background: var(--hc-blue); color: #fff; }

/* Login */
.login-wrap { max-width: 380px; margin: 60px auto; }
.login-wrap .card { border: 0; box-shadow: 0 10px 30px rgba(18,33,53,.12); }
.login-wrap .logo { text-align: center; margin-bottom: 18px; }
.login-wrap .logo img { height: 56px; }

/* ---------- Hero slider ---------- */
.hc-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 460px;
    background: var(--hc-dark);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(18,33,53,.10);
}
.hc-slides { position: absolute; inset: 0; }
.hc-slide {
    position: absolute; inset: 0;
    background: var(--hc-dark) center/cover no-repeat;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
}
.hc-slide.active { opacity: 1; pointer-events: auto; }
.hc-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(18,33,53,.88) 100%);
}
.hc-slide-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 80px 28px 22px; z-index: 2;
    color: #fff;
}
.hc-slide-tag {
    display: inline-block; background: var(--hc-primary); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
}
.hc-slide-title {
    font-size: 1.5rem; line-height: 1.25; margin: 0;
    color: #ffffff; font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 80%;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.hc-slide-link { position: absolute; inset: 0; z-index: 1; }

.hc-slide-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0,0,0,.45); color: #fff; border: 0;
    font-size: 1.3rem; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.hc-slide-nav:hover { background: var(--hc-primary); }
.hc-slide-prev { left: 14px; }
.hc-slide-next { right: 14px; }

.hc-slide-dots {
    position: absolute; right: 14px; bottom: 14px;
    display: flex; gap: 6px; z-index: 5; flex-wrap: nowrap;
    justify-content: flex-end; max-width: 80%;
}
.hc-slide-dot {
    min-width: 30px; height: 26px; padding: 0 7px;
    background: rgba(255,255,255,.25); color: #fff;
    border: 0; border-radius: 5px;
    font-size: .82rem; font-weight: 700; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.hc-slide-dot:hover { background: rgba(255,255,255,.5); transform: translateY(-1px); }
.hc-slide-dot.active { background: var(--hc-primary); }

@media (max-width: 575.98px) {
    .hc-slider { aspect-ratio: 4 / 3; }
    .hc-slide-title { font-size: 1.05rem; max-width: 100%; }
    .hc-slide-body { padding: 14px 14px 56px 14px; }
    .hc-slide-dots { left: 14px; right: 14px; bottom: 8px; justify-content: center; max-width: none; flex-wrap: wrap; }
    .hc-slide-nav { width: 36px; height: 36px; }
}

/* Top-row için: slider'ı manşet ile aynı hizada göster (md ve üstü) */
@media (min-width: 768px) {
    .hc-top-row > [class*="col-"] { display: flex; flex-direction: column; }
    .hc-top-row .hc-slider { min-height: 420px; aspect-ratio: auto; max-height: none; margin-bottom: 0; }
    .hc-top-row .hc-slider .hc-slides { height: 100%; }
    .hc-top-row .hc-slide { inset: 0; }
}

/* ---------- Article tags ---------- */
.hc-tags { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--hc-border); }
.hc-tags-title { font-size: .8rem; color: var(--hc-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.hc-tag {
    display: inline-block; margin: 4px 4px 0 0;
    background: var(--hc-bg); color: var(--hc-blue);
    border: 1px solid var(--hc-border); border-radius: 999px;
    padding: 4px 12px; font-size: .82rem; font-weight: 500;
}
.hc-tag:hover { background: var(--hc-primary); color: #fff; border-color: var(--hc-primary); }

/* ---------- Fixed header (kalıcı üst çubuk) ---------- */
/* Makes the whole header stay at the top of the viewport while scrolling */
.hc-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    background: var(--hc-menu-bg);
}

/* Prevent page content from sliding under the fixed header. Adjust value if header height differs. */
body { padding-top: 72px; }

/* ---------- Haber içi görseller ---------- */
.hc-article img, .news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

