/* Habercode tarzı - Newsite tasarımı (header, footer, ortak bloklar) */

.habercode-theme {
    background: #f9f7f1;
    color: #222;
}
.habercode-theme a {
    color: #1a1a1a;
}

.hc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----- 1. Döviz çubuğu ----- */
.hc-topbar {
    background: #1e3a5f;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.hc-doviz-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
}
.hc-doviz-item {
    white-space: nowrap;
}
.hc-doviz-item strong {
    margin-right: 4px;
    font-weight: 600;
}

/* ----- 2. Sosyal medya ----- */
.hc-social-row {
    background: #f9f7f1;
    border-bottom: 1px solid #e8e6e0;
    padding: 10px 0;
}
.hc-social-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.hc-social-wrap a {
    color: #555;
    font-size: 1.25rem;
}
.hc-social-wrap a:hover {
    color: #1e3a5f;
}

/* ----- 3. Logo + menü ----- */
.hc-header-main {
    background: #f9f7f1;
    padding: 15px 0;
    border-bottom: 1px solid #e8e6e0;
}
.hc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.hc-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    text-decoration: none;
}
.hc-logo:hover {
    color: #2a5290;
}
.hc-logo img {
    max-height: 45px;
    width: auto;
}
.hc-nav-utils {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.hc-nav-utils a {
    font-size: 14px;
    color: #333;
}
.hc-nav-utils a:hover {
    color: #c00;
}
.hc-nav-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.hc-nav-search input {
    padding: 8px 12px;
    border: 0;
    width: 180px;
    font-size: 14px;
}
.hc-nav-search button {
    padding: 8px 12px;
    border: 0;
    background: #1e3a5f;
    color: #fff;
    cursor: pointer;
}

/* ----- 4. Kategori menüsü ----- */
.hc-nav-categories {
    background: #c00;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.hc-nav-categories .hc-container {
    position: relative;
}
.hc-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}
.hc-cat-list li a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}
.hc-cat-list li a:hover,
.hc-cat-list li a.active {
    background: rgba(0,0,0,.2);
}
.hc-mobile-menu-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.hc-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.hc-mobile-menu.active {
    display: flex;
}
.hc-mobile-menu-inner {
    background: #f9f7f1;
    padding: 2rem;
    border-radius: 8px;
    max-width: 280px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hc-mobile-menu-inner a {
    padding: 10px;
    color: #333;
    font-weight: 600;
}
.hc-mobile-menu-inner a:hover {
    background: #f0eeea;
    color: #c00;
}

/* ----- Son dakika ticker (header altı) ----- */
.hc-section-ticker {
    background: #f9f7f1;
    border-bottom: 2px solid #c00;
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.hc-ticker-label {
    float: left;
    background: #c00;
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 13px;
    margin-right: 15px;
    white-space: nowrap;
    z-index: 2;
    position: relative;
}
.hc-ticker-wrap { overflow: hidden; margin-left: 120px; margin-right: 0; }
.hc-ticker-track {
    display: flex;
    gap: 2rem;
    padding: 2px 0;
    width: max-content;
    animation: hc-ticker-sagdan-sola 80s linear infinite;
}
.hc-ticker-track:hover { animation-play-state: paused; }
@keyframes hc-ticker-sagdan-sola {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hc-ticker-item { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.hc-ticker-item .time { font-size: 12px; color: #666; font-weight: 600; }
.hc-ticker-item a { color: #222; font-size: 14px; }
.hc-ticker-item a:hover { color: #c00; text-decoration: underline; }

/* ----- Main wrapper ----- */
.hc-main {
    padding: 20px 0 40px;
}

/* ----- Ana sayfa: Slider (nokta ile) ----- */
.hc-section { margin-bottom: 30px; }
.hc-section-slider { margin-bottom: 30px; }
.hc-slider {
    position: relative;
    max-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    background: #ddd;
}
.hc-slider-item { display: none; position: relative; width: 100%; }
.hc-slider-item.active { display: block; }
.hc-slider-item a { display: block; color: #fff; text-decoration: none; }
.hc-slider-item img { width: 100%; height: 450px; object-fit: cover; }
.hc-slider-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 80px 25px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.hc-slider-caption .kategori { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; opacity: .9; }
.hc-slider-caption h2 { font-size: 1.5rem; margin: 0; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hc-slider-numbers {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 15px 0 0; margin-top: 0; position: relative; z-index: 2; background: #f9f7f1;
}
.hc-slider-num {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
    color: #333; background: #f0eeea; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s;
}
.hc-slider-num:hover { background: #e0e0e0; color: #c00; }
.hc-slider-num.active { background: #c00; color: #fff; }
.hc-slider-dots {
    position: absolute; bottom: 15px; right: 25px; display: flex; gap: 8px; z-index: 2;
}
.hc-slider-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.hc-slider-dots span.active, .hc-slider-dots span:hover { background: #f9f7f1; }

/* ----- Kategori blok: slider 1-15 + 2x4 kart ----- */
.hc-section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 3px solid #c00; color: #222; text-transform: uppercase; }
.hc-kategori-slider-section { margin-bottom: 40px; }
.hc-kategori-slider .hc-slider-inner { position: relative; margin-bottom: 0; }
.hc-kategori-slider .hc-slider-inner .hc-slider-item img { height: 380px; object-fit: cover; }
.hc-kategori-slider .hc-slider-caption h3 { font-size: 1.25rem; margin: 0; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hc-slider-alt-grid { margin-top: 20px; margin-bottom: 0; }
.hc-grid-2x4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 992px) { .hc-grid-2x4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .hc-grid-2x4 { grid-template-columns: 1fr; } }
.hc-grid-2x4-card {
    display: block; text-decoration: none; color: #222; background: #f9f7f1; border-radius: 6px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 1px solid #eee; transition: box-shadow .2s; position: relative;
}
.hc-grid-2x4-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); color: #c00; }
.hc-grid-2x4-card .hc-card-kategori {
    position: absolute; top: 10px; left: 10px; background: #000; color: #fff; font-size: 10px; font-weight: 700;
    text-transform: uppercase; padding: 4px 8px; z-index: 1;
}
.hc-grid-2x4-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.hc-grid-2x4-card .hc-card-baslik { display: block; padding: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ----- Yazarlar story ----- */
.hc-yazarlar-story { background: var(--hc-bg, #f9f7f1); padding: 20px 0; border-radius: 8px; margin-bottom: 25px; }
.hc-yazarlar-empty { color: #666; font-size: 14px; margin: 0; }
.hc-yazarlar-story .hc-yazarlar-story-wrap {
    overflow-x: auto; overflow-y: hidden; margin: 0 -15px; padding: 10px 15px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none;
}
.hc-yazarlar-story .hc-yazarlar-story-wrap::-webkit-scrollbar { display: none; }
.hc-yazarlar-story .hc-yazarlar-story-wrap.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.hc-yazarlar-story-track { display: flex; gap: 20px; width: max-content; padding-bottom: 8px; pointer-events: none; }
.hc-yazarlar-story-track a { pointer-events: auto; }
.hc-yazar-story-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #222; width: 90px; }
.hc-yazar-story-item:hover { color: #c00; }
.hc-yazar-story-avatar {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid #e0e0e0; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; background: #ebe9e3;
}
.hc-yazar-story-item:hover .hc-yazar-story-avatar { border-color: #c00; }
.hc-yazar-story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hc-yazar-story-avatar .no-img { font-size: 1.75rem; color: #999; }
.hc-yazar-story-ad { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }

/* Yazar detay sayfası */
.hc-yazar-profil { display: grid; grid-template-columns: 120px 1fr; gap: 25px; margin-bottom: 30px; align-items: start; }
.yazar-profil-foto-wrap { width: 120px; }
.yazar-profil-foto { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; display: block; }
.yazar-profil-placeholder { width: 120px; height: 120px; background: #ebe9e3; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #999; font-size: 3rem; }
.yazar-profil-info .hc-section-title { margin-bottom: 10px; }
.yazar-biyografi { color: #444; line-height: 1.6; margin: 0; }
.hc-yazar-yazilari-baslik { font-size: 1.1rem; margin: 15px 0 10px; }
.hc-yazar-yazilari-list { list-style: none; padding: 0; margin: 0; }
.hc-yazar-yazilari-list li { padding: 12px 0; border-bottom: 1px solid #ebe9e3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-yazar-yazilari-list .yazi-baslik { font-weight: 500; }
.hc-yazar-yazilari-list a { color: inherit; }
.hc-yazar-yazilari-list a:hover { color: #c00; }
.yazi-tarih { font-size: 12px; color: #888; }
.hc-yazar-yok { color: #666; margin: 10px 0 0; }

/* ----- Öne çıkanlar ----- */
.hc-onecikanlar { background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
.hc-onecikanlar-list { list-style: none; margin: 0; padding: 0; }
.hc-onecikanlar-list li { padding: 8px 0; border-bottom: 1px solid #ebe9e3; display: flex; align-items: center; gap: 10px; }
.hc-onecikanlar-list .num { font-weight: 700; color: #999; min-width: 24px; }
.hc-onecikanlar-list a:hover { color: #c00; }
.hc-onecikanlar-more { margin-top: 12px; }
.hc-onecikanlar-more a { color: #c00; font-weight: 600; }

/* ----- Özel haberler (anasayfa slider) ----- */
.hc-ozel-haberler { margin-bottom: 25px; }
.hc-ozel-haberler .hc-ozel-haberler-wrap {
    position: relative;
    margin: 0 -15px;
    padding: 10px 40px;
}
.hc-ozel-haberler .hc-ozel-haberler-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}
.hc-ozel-haberler .hc-ozel-haberler-track::-webkit-scrollbar { display: none; }
.hc-ozel-haberler .hc-ozel-haberler-card {
    flex-shrink: 0;
    width: 260px;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--hc-card, #f9f7f1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ebe9e3;
    transition: border-color .2s, box-shadow .2s;
}
.hc-ozel-haberler .hc-ozel-haberler-card:hover {
    border-color: #c00;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.hc-ozel-haberler .hc-ozel-haberler-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.hc-ozel-haberler .hc-ozel-kategori {
    display: block;
    padding: 6px 12px 0;
    font-size: 11px;
    color: #c00;
    font-weight: 600;
    text-transform: uppercase;
}
.hc-ozel-haberler .hc-ozel-baslik {
    display: block;
    padding: 8px 12px 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hc-ozel-haberler .hc-ozel-tarih {
    display: block;
    padding: 0 12px 12px;
    font-size: 12px;
    color: #666;
}
.hc-ozel-haberler .hc-ozel-prev,
.hc-ozel-haberler .hc-ozel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #333;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.hc-ozel-haberler .hc-ozel-prev { left: 5px; }
.hc-ozel-haberler .hc-ozel-next { right: 5px; }
.hc-ozel-haberler .hc-ozel-prev:hover,
.hc-ozel-haberler .hc-ozel-next:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* ----- Döviz özet ----- */
.hc-doviz-ozet {
    display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; padding: 20px; background: #f9f7f1;
    border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px;
}
.hc-doviz-ozet .item { font-size: 13px; }
.hc-doviz-ozet .item strong { margin-right: 4px; }

/* ----- Spor ----- */
.hc-spor { display: grid; grid-template-columns: 1fr 300px; gap: 25px; background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
@media (max-width: 768px) { .hc-spor { grid-template-columns: 1fr; } }
.hc-spor-baslik { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.hc-spor-baslik a { color: #c00; font-weight: 600; font-size: 14px; }
.hc-spor-list { list-style: none; margin: 0; padding: 0; }
.hc-spor-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.hc-spor-list a:hover { color: #c00; }
.hc-spor-mac { background: #f2f0eb; padding: 15px; border-radius: 6px; text-align: center; margin-bottom: 15px; }
.hc-spor-mac .hafta { font-size: 11px; color: #666; }
.hc-spor-mac .skor { font-size: 1.25rem; font-weight: 700; margin: 8px 0; }
.hc-spor-puan { font-size: 13px; }
.hc-spor-puan table { width: 100%; border-collapse: collapse; }
.hc-spor-puan th, .hc-spor-puan td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #eee; }

/* ----- Video galeri ----- */
.hc-video-galeri { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
@media (max-width: 768px) { .hc-video-galeri { grid-template-columns: 1fr; } }
.hc-video-oncikan { position: relative; border-radius: 6px; overflow: hidden; }
.hc-video-oncikan img { width: 100%; height: 220px; object-fit: cover; }
.hc-video-oncikan a { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-weight: 600; }
.hc-video-oncikan .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 3rem; color: #fff; opacity: .9; }
.hc-video-list { list-style: none; margin: 0; padding: 0; }
.hc-video-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; gap: 10px; }
.hc-video-list li a:hover { color: #c00; }

/* ----- Foto galeri ----- */
.hc-foto-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
.hc-foto-galeri a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
.hc-foto-galeri img { width: 100%; height: 120px; object-fit: cover; }
.hc-foto-galeri .baslik { padding: 8px; font-size: 13px; }
.hc-foto-galeri a:hover .baslik { color: #c00; }

/* ----- Namaz vakitleri ----- */
.hc-namaz { background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
.hc-namaz select { width: 100%; max-width: 250px; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.hc-namaz-vakitler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-namaz-vakitler .vakit { padding: 10px; background: #f2f0eb; border-radius: 4px; font-size: 13px; }
.hc-namaz-vakitler .vakit strong { display: block; font-size: 11px; color: #666; text-transform: uppercase; }
.hc-namaz-vakite-kalan { margin-bottom: 10px; font-size: 14px; }

/* ----- Hava + Gazeteler ----- */
.hc-hava-gazete-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .hc-hava-gazete-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.hc-hava { background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
.hc-hava select { width: 100%; max-width: 250px; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; }
.hc-hava-sonuc { font-size: 1.25rem; font-weight: 600; margin-top: 10px; }
.hc-gazeteler { background: #f9f7f1; padding: 25px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 25px; }
.hc-gazeteler-inner { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.hc-gazeteler-inner a { font-size: 14px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; }
.hc-gazeteler-inner a:hover { border-color: #c00; color: #c00; }

/* ----- Footer (Habercode) ----- */
.habercode-theme footer {
    background: #2c2c2c;
    color: #fff;
    padding: 25px;
    margin-top: 40px;
    border-radius: 0;
}
.habercode-theme footer a { color: #fff; opacity: .9; }
.habercode-theme footer a:hover { color: #fff; opacity: 1; text-decoration: underline; }

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .hc-nav-utils { display: none; }
    .hc-nav-search { width: 100%; }
    .hc-nav-search input { width: 100%; }
}
@media (max-width: 768px) {
    .hc-doviz-bar { font-size: 11px; gap: .5rem; }
    .hc-cat-list { display: none; }
    .hc-mobile-menu-btn { display: block; }
    .hc-header-inner { flex-direction: column; align-items: stretch; }
}
