/* Treepio main styles - light, modern, minimalist */

:root {
    --accent-color: #f6b221;
    --accent-soft: #ffe9b8;
    --text-main: #111827;
    --text-muted: #6b7280;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f5f7;
}

/* Eski logo-circle şimdilik kullanılmıyor ama dursun istersen */
.logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd55c, #f5a623);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* NAVBAR MENÜ */

.nav-link-custom {
    position: relative;
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}

/* Hover efekti - hafif gri arka plan + sarı underline */
.nav-link-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    bottom: -0.35rem;
    width: 60%;
    height: 3px;
    border-radius: 999px;
    /* background: var(--accent-color); */
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.nav-link-custom:hover {
    background-color: #f0f0f3;
    color: #111;
}

.nav-link-custom:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.75;
}

/* Aktif menü elemanı */
.nav-link-custom.is-active {
    color: #111;
    font-weight: 600;
}

.nav-link-custom.is-active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}



.text-primary {
    text-decoration: none;
    color: #6a6a6a !important;
    font-weight: 500;
}


.text-primary:hover {
    text-decoration: none;
    color: #292929 !important;
    font-weight: 600;
    font-size: 15px;
}




/* Kartlar */

.card-article {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 12px 30px rgba(15,23,42,0.07);
    overflow: hidden;
    background: #ffffff;
}

.card-article img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-article .card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.badge-category {
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: #eef2ff;
    color: #4338ca;
}

.article-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.article-title:hover {
    color: #2563eb;
}

.article-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
}



/* Makale içindeki görselleri responsive ve derli toplu göster */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 12px;
}

/* Mobilde görselin biraz daha küçük görünmesi için istersen: */
@media (max-width: 768px) {
    .article-content img {
        max-width: 95%;
    }
}






.sidebar-widget {
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 25px rgba(15,23,42,0.05);
}

/* Detail page */
.article-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.article-detail-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Divider (logo ile slogan arasında) */
.divider {
  height: 30px;
  width: 2px;
  background-color: #ccc;
  margin: 0 5px;
}

/* Offcanvas menü linkleri */
.offcanvas .nav-link-custom {
    display: block;
    padding: 8px 0;
    font-size: 16px;
    border-radius: 0; /* offcanvas'ta tam genişlik */
}

/* Mobil alt şerit (sarı bar) */

.subnav-mobile {
    background: var(--accent-color);
}

.subnav-mobile .container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.subnav-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar gizle */
.subnav-scroll::-webkit-scrollbar {
    display: none;
}

.subnav-scroll {
    scrollbar-width: none; /* Firefox */
}

/* Mobil alt şerit linkleri */

.subnav-scroll a {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #1f2933;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 218, 138, 0.54);
    backdrop-filter: blur(4px);
}

.subnav-scroll a:hover {
    background: #ffffff;
}






:root {
    --accent-color: #f6b221;
}

/* === MANŞET (HOME HERO) === */

.home-hero {
    margin-top: 0.25rem;
}

.home-hero-main {
    position: relative;
    display: block;
    border-radius: 1.2rem;
    overflow: hidden;
    min-height: 260px;
    background: #000;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .4s ease, filter .4s ease;
    filter: brightness(.8);
}

/* Koyu degrade overlay */
.home-hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.00) 0%,   /* üstü tamamen açık */
        rgba(0,0,0,0.40) 45%,  /* ortayı hafif karart */
        rgba(0,0,0,0.70) 100%  /* en altta yazıyı okuyabilmek için biraz daha koyu */
    );
    z-index: 1;
}

.home-hero-main:hover .home-hero-bg img {
    transform: scale(1.06);
    filter: brightness(.9);
}

.home-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.7rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    color: #fff;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .8rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.5);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.home-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .35rem;
}

.home-hero-meta {
    font-size: .8rem;
    color: rgba(229,231,235,0.9);
    margin-bottom: .6rem;
}

.home-hero-excerpt {
    font-size: .95rem;
    color: rgba(243,244,246,0.95);
}

/* Sağ taraftaki küçük öne çıkanlar */

.home-hero-side-list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.home-hero-side-item {
    display: flex;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: .9rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-hero-side-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}

.home-hero-side-thumb {
    flex: 0 0 86px;
    height: 60px;
    border-radius: .7rem;
    overflow: hidden;
}

.home-hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-side-content {
    flex: 1;
    min-width: 0;
}

.home-hero-side-category {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.home-hero-side-title {
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
}

.home-hero-side-meta {
    font-size: .75rem;
    color: #9ca3af;
}

/* Keşfet chip bar */

.home-filter-bar {
    padding: .7rem 0 0.9rem 0;
    border-bottom: 2px solid rgb(246 178 33 / 55%);
    margin-bottom: 1.25rem;
    border-radius: 1rem;

}

.home-filter-label {
    font-size: .85rem;
    color: #6b7280;
    margin-right: .5rem;
}

.home-chip-link {
    font-size: .85rem;
    padding: .40rem .95rem;
    border-radius: 15px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    border: 1px solid rgba(148,163,184,0.38);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-chip-link:hover {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}

/* Daha küçük ekranlarda hero yüksekliğini biraz küçültelim */

@media (max-width: 991.98px) {
    .home-hero-main {
        min-height: 220px;
    }
    .home-hero-overlay {
        padding: 1.1rem 1.2rem 1.3rem 1.2rem;
    }
    .home-hero-title {
        font-size: 1.25rem;
    }
}



/* Carousel içindeki hero kartının tam çalışması için */

.home-hero-carousel .carousel-item {
    min-height: 260px;
}

.home-hero-carousel .home-hero-main {
    height: 100%;
}



/* === Manşet slider kontrolleri (oklar) === */

.home-hero-carousel {
    position: relative;
}

/* Her bir slide item'ı konumlandır */
.home-hero-carousel .carousel-item {
    position: relative;
}

/* Linki (home-hero-main) z-index 1'e alalım */
.home-hero-main {
    position: relative;
    z-index: 1;
}

/* Ok butonları her şeyin üstünde olsun */
.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    z-index: 5;                 /* linklerin üstüne çıkar */
    width: 10%;                 /* tıklanabilir alanı genişlet */
    opacity: 0.8;               /* daha görünür olsun */
    transition: opacity .2s, transform .2s;
}

/* Hover’da iyice belirgin olsun */
.home-hero-carousel .carousel-control-prev:hover,
.home-hero-carousel .carousel-control-next:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Ok ikonlarının arkasına yuvarlak bir arka plan verelim */
.home-hero-carousel .carousel-control-prev-icon,
.home-hero-carousel .carousel-control-next-icon {
    background-color: rgb(189 189 189 / 55%);  /* koyu yarı saydam arka plan */
    border-radius: 999px;
    padding: 10px;
    background-size: 60% 60%;              /* ok svg'si biraz küçülsün */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    filter: none;                          /* bazı tarayıcılarda silikleşmesin */
}



.carousel-item {
    height: 320px !important;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}




/* Küçük ekranlarda tıklama alanını biraz daraltalım */
@media (max-width: 576px) {
    .home-hero-carousel .carousel-control-prev,
    .home-hero-carousel .carousel-control-next {
        width: 15%;
    }
}









/* === SLIDER GENİŞLETİLMİŞ YÜKSEKLİK === */
.featured-slide {
    height: 460px !important;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Resmi tam kapla */
.featured-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider içeriği */
.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    background: linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.05));
    color: #fff;
    border-radius: 0 0 20px 20px;
}

/* Slider navigation arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    background-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.slider-arrow:hover {
    background-color: rgba(255,255,255,0.45);
}

.slider-arrow.left {
    left: 18px;
}
.slider-arrow.right {
    right: 18px;
}

/* === DOT NAVIGATION === */
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 40;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.55);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    width: 14px;
    height: 14px;
    background: #f6b221; /* Sarı */
}
