/* =============================================================
   Neds Digital — Bölüm stilleri
   Orijinal sayfalarda satır içi (inline) yazılmış kuralların
   sürdürülebilir CSS karşılıkları. Markup temiz kalır, görünüm aynı.
   ============================================================= */

/* ---------------------------------------------------------------
   bento-box-section — 4 kartlık mozaik
   --------------------------------------------------------------- */

.bento-header h2 {
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #000;
    margin: 0;
    padding: 0;
}

.bento-header p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 18px);
    line-height: clamp(26px, 3vw, 28px);
    color: #000;
    margin: 0;
    padding: 0;
}

.bento-grid > [class^="bento-card"] {
    position: relative;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Mozaik yerleşimi — orijinaldeki satır içi grid değerleri */
.bento-grid > *:nth-child(1) { grid-column: 1; grid-row: 1 / 3; min-height: 874px; }
.bento-grid > *:nth-child(2) { grid-column: 2; grid-row: 1;     min-height: 336px; }
.bento-grid > *:nth-child(3) { grid-column: 1; grid-row: 3;     min-height: 336px; }
.bento-grid > *:nth-child(4) { grid-column: 2; grid-row: 2 / 4; min-height: 672px; }

.bento-card__body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.bento-card__body h3 {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 24px);
    line-height: clamp(28px, 3.5vw, 32px);
    color: #fff;
    margin: 0 0 16px;
    padding: 0;
}

.bento-card__body p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: clamp(22px, 2.8vw, 24px);
    color: #fffc;
    margin: 0;
    padding: 0;
}

.bento-card__tag {
    margin-top: 20px;
}

.bento-card__tag span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffffe6;
}

.bento-card__dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #fff3;
    border-radius: 50%;
    position: relative;
}

.bento-card__dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.bento-card__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bento-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Kaynak tasarımda kart görselinin üstünde karartma katmanı YOKTUR.
   Eklendiğinde marka renkleri soluyor; bu yüzden bilinçli olarak kullanılmıyor. */

/* Güvenlik ağı: kartın arka plan görseli yoksa metin beyaz olduğu için
   beyaz zeminde kaybolur. Bu durumda koyu bir zemin verilir. */
.bento-card--gorselsiz {
    background: linear-gradient(155deg, #211415 0%, #14181f 55%, #0b0d12 100%);
}

@media (max-width: 900px) {
    .bento-grid > *:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        min-height: 320px;
    }
}

/* ---------------------------------------------------------------
   connected-tools-section — "Görünürlükten Dönüşüme" ve süreç blokları

   Kaynak sayfada bu bölümün tüm stilleri satır içi yazılmıştı; bağlı
   CSS dosyalarında tek bir kuralı yoktu. Değerler birebir buraya taşındı.
   Arka plan rengini kaydırmaya göre değiştiren animasyon JS tarafındadır.
   --------------------------------------------------------------- */

.connected-tools-section {
    background-color: rgb(33, 20, 21);
    padding-top: clamp(80px, 10vw, 120px);
    padding-bottom: clamp(80px, 10vw, 120px);
    position: relative;
    width: 100%;
    transition: background-color .3s;
}

.connected-tools-section > div {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: clamp(20px, 6vw, 75px);
    padding-right: clamp(20px, 6vw, 75px);
}

.connected-tools-section h2 {
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: clamp(32px, 4vw, 56px);
    line-height: clamp(42px, 5vw, 66px);
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 30px;
    padding: 0;
    text-align: center;
}

.connected-tools-section > div > div > p {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: clamp(28px, 3.5vw, 34px);
    color: #fffc;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0;
    text-align: center;
}

/* Araç ikonları */
.connected-tools-section .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.connected-tools-section .social-icon img,
.connected-tools-section .social-icon svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Üç kartlık şerit */
.connected-tools-section .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.connected-tools-section .scroll-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1113;
}

/* Kart görseli arka planda, metin üstünde */
.connected-tools-section .scroll-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.connected-tools-section .scroll-card > div {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #0006 0%, #0000001a 50%, #0009 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.connected-tools-section .scroll-card h3 {
    color: #fff;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    margin: 0;
}

.connected-tools-section .scroll-card p {
    color: #fffc;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

/* Süreç kartları */
.connected-tools-section .enterprise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.connected-tools-section .enterprise-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.connected-tools-section .enterprise-card h3 { color: #fff; margin: 0; font-weight: 400; }
.connected-tools-section .enterprise-card p  { color: #fffc; margin: 0; }

/* Açılır liste blokları */
.connected-tools-section .techstack-extra { margin-top: 80px; }
.connected-tools-section .techstack-extra-title { color: #fff; font-weight: 400; }
.connected-tools-section .techstack-extra-desc  { color: #fffc; }

.connected-tools-section .techstack-accordion {
    border-bottom: 1px solid #ffffff1f;
    padding: 18px 0;
}

.connected-tools-section .techstack-accordion__summary {
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.connected-tools-section .techstack-accordion__body { color: #fffc; padding-top: 12px; }

/* Video vitrini — "Üretim & Topluluk Yönetimi" */
.video-showcase-wrapper { margin-top: 80px; }

.video-showcase {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
}

.video-showcase__bg { position: absolute; inset: 0; z-index: 1; }

.video-showcase__bg video,
.video-showcase__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-showcase__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 720px;
}

.video-showcase__content h3 { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 300; margin: 0 0 12px; }
.video-showcase__content p  { color: #fffc; margin: 0; }

.video-control-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #ffffff4d;
    background: #00000059;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .connected-tools-section .cards-grid,
    .connected-tools-section .enterprise-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
   service-hero — hero içindeki hızlı form
   --------------------------------------------------------------- */

.service-hero__form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-hero__form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 640px) {
    .service-hero__form .row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Logo

   Kaynak temada logoya `clip-path: inset(0 0 28% 0)` uygulanıyordu;
   bu kırpma eski logo dosyasının altındaki boşluğu gizlemek içindi.
   Panelden farklı oranda bir logo yüklendiğinde logonun kendisini
   kestiği için kırpma kaldırıldı, görsel kendi oranında gösteriliyor.

   DİKKAT: Buradaki kurallar yalnızca header ve footer logosunu
   hedefler. `.logo-img` sınıfını referans logoları da kullanır;
   kapsamsız yazılırsa "Birlikte Büyüyoruz" ızgarasındaki logolar
   beyaza boyanıp beyaz zeminde görünmez oluyor.
   --------------------------------------------------------------- */

.site-header .logo-img,
.footer-logo-img {
    clip-path: none !important;
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-logo-img { height: 44px; }

.site-header.scrolled .logo-img { transform: none; }

@media (max-width: 640px) {
    .site-header .logo-img { height: 34px; max-width: 170px; }
}

/* Referans ızgarası.

   Mevcut logo dosyalarının çoğu tek renktir. Panelden renkli bir logo
   yüklendiğinde ızgara alacalı görünmesin diye hepsi griye çevrilir;
   böylece hangi dosya yüklenirse yüklensin şerit tek tip kalır. */
.clients-section .logo-img,
.reference-grid .logo-img {
    filter: grayscale(1);
    clip-path: none;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------------------
   Blog yazısı — kenar çubukları, yazar kartı, SSS

   Yazı başlığının arka planı koyudur (kaynak tasarım: #050505).
   Bu yüzden üzerine gelen her öğe açık renk olmak zorunda.
   --------------------------------------------------------------- */

.post-author-minimal {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
}

.author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffffff1a;
    object-fit: cover;
    flex-shrink: 0;
}

/* Ekip fotoğrafı yoksa kurum logosu basılır. Logo siyahtır ve koyu
   zeminde kaybolur; beyaz daire içine alınıp içeriden boşluk verilir. */
.author-img--kurumsal {
    background: #fff;
    padding: 6px;
    border-color: #ffffff33;
    object-fit: contain;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 640px;
}

.author-name { font-size: 15px; font-weight: 500; color: #fff; }
.author-role { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #ffffff8c; }
.author-bio  { font-size: 13px; line-height: 1.6; color: #ffffffb3; margin-top: 4px; }

.author-link {
    font-size: 13px;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 4px;
    width: fit-content;
}

.post-meta-top .post-date { color: inherit; }

/* Kenar çubukları */
.post-sidebar-left .sidebar-section,
.post-sidebar-right .sidebar-section {
    margin-bottom: 36px;
}

.sidebar-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #999;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #0000000f;
}

.toc-nav ul,
.recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-nav a {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    text-decoration: none;
    display: block;
    padding-left: 12px;
    border-left: 2px solid #00000014;
    transition: color .2s, border-color .2s;
}

.toc-nav a:hover { color: #000; border-left-color: #000; }

.recent-post-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid #0000000d;
}

.recent-post-title {
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    transition: color .2s;
}

.recent-post-card:hover .recent-post-title { color: #000; }
.recent-post-date { font-size: 11px; color: #999; }

/* Paylaş ikonları — düz metin bağlantı yerine ikon şeridi */
.share-icons {
    display: flex;
    gap: 10px;
}

.share-icons a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00000014;
    border-radius: 50%;
    color: #444;
    transition: background .2s, color .2s, border-color .2s;
}

.share-icons a:hover { background: #000; color: #fff; border-color: #000; }

/* ---------------------------------------------------------------
   SSS akordiyonu — açılıp kapanma

   site.js soruya tıklandığında .faq-item üzerine `is-open` ekler.
   Kapalı durumun kuralı hiçbir dosyada tanımlı değildi; cevap sürekli
   açık kaldığı için +/− işareti bir şey yapmıyor görünüyordu.
   Kural genel yazılır: hizmet sayfalarındaki SSS de aynı yapıyı kullanır.
   --------------------------------------------------------------- */

.faq-item [data-faq-question] {
    cursor: pointer;
    user-select: none;
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 1500px;
    opacity: 1;
}

/* SSS — kaynakta kartlar arası nefes payı vardır */
.post-faq { margin-top: 72px; }

.post-faq > h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    margin: 0 0 28px;
}

.post-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-faq .faq-item {
    border-bottom: 1px solid #0000000f;
    padding: 4px 0;
}

.post-faq .faq-item h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    padding: 20px 36px 20px 0;
    cursor: pointer;
    position: relative;
}

.post-faq .faq-item h3::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    color: #888;
    transition: transform .25s;
}

.post-faq .faq-item.is-open h3::after { content: "−"; }

.post-faq .faq-answer {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    padding-right: 40px;
}

/* Alt boşluk yalnızca açıkken; kapalıyken çizgiler bitişik durmalı. */
.post-faq .faq-item.is-open .faq-answer { padding-bottom: 24px; }

@media (max-width: 1024px) {
    .post-sidebar-left,
    .post-sidebar-right { display: none; }
}

/* ---------------------------------------------------------------
   Paket kartı rozeti

   Rozet kartın üst kenarına oturan bir hap kutusudur. Panelden uzun
   bir metin yazılırsa iki satıra düşüp kutudan taşıyor; tek satırda
   tutuluyor ve gerekirse kısaltılıyor.
   --------------------------------------------------------------- */

.featured-badge {
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------------
   Sayfalama ve boş liste

   Bu iki bileşen kaynak tasarımda yok (orada sonsuz liste var),
   bizim eklediğimiz sayfalama için stil tanımlı değildi.
   --------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 56px 0 24px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00000014;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.pagination a:hover { background: #000; color: #fff; border-color: #000; }

.pagination .is-active,
.pagination [aria-current="page"] {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .is-disabled {
    opacity: .4;
    pointer-events: none;
}

.empty-state {
    padding: 56px 0;
    text-align: center;
    font-size: 15px;
    color: #777;
}

/* ---------------------------------------------------------------
   Bölümler arası ortak yardımcılar
   --------------------------------------------------------------- */

.section-lead {
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: #444;
    max-width: 760px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
