/* =========================================================
   neredeo.com - anasayfa
   Renk/yazı değişkenleri nd-tema.css içinde (header ile birlikte yüklenir).
   ========================================================= */

/* Bu dosya sadece anasayfada yüklenir: footer'a kadar gri zemin devam etsin */
body {
    background: var(--nd-bg);
}

.nd-home {
    font-family: var(--nd-font);
    color: var(--nd-ink);
    background: var(--nd-bg);
    padding-bottom: 8px;
}

    .nd-home h1, .nd-home h2, .nd-home h3 {
        font-family: var(--nd-font);
        color: inherit;
        margin: 0;
    }

.nd-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------- ARAMA ALANI ---------------- */
.nd-hero {
    background: var(--nd-navy);
    color: #fff;
    overflow: hidden;
}

.nd-hero .nd-hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 88px; /* kategori kartları bu alanın üzerine biner */
}

.nd-hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
}

.nd-hero-text > p {
    margin: 14px 0 26px;
    font-size: 18px;
    line-height: 1.5;
    color: #D5D7EE;
    max-width: 52ch;
}

.nd-hero-search {
    position: relative;
    display: flex;
    max-width: 720px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(10, 12, 40, .25);
}

    .nd-hero-search .bi {
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 19px;
        color: var(--nd-muted);
        pointer-events: none;
    }

    .nd-hero-search input {
        flex: 1 1 auto;
        min-width: 0;
        border: 0;
        outline: 0;
        padding: 0 14px 0 48px;
        font: 500 17px/1 var(--nd-font);
        color: var(--nd-ink);
        background: transparent;
    }

        .nd-hero-search input::placeholder {
            color: #8A8DAA;
            font-weight: 400;
        }

    .nd-hero-search button {
        flex: 0 0 auto;
        border: 0;
        border-radius: 8px;
        padding: 0 26px;
        background: var(--nd-amber);
        color: var(--nd-navy-900);
        font: 700 16px/1 var(--nd-font);
        cursor: pointer;
    }

        .nd-hero-search button:hover {
            background: var(--nd-amber-600);
        }

    .nd-hero-search:focus-within {
        box-shadow: 0 0 0 4px rgba(249, 178, 51, .55), 0 10px 30px rgba(10, 12, 40, .25);
    }

.nd-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px !important;
}

    .nd-quick a {
        display: inline-block;
        padding: 7px 14px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .28);
        color: #fff;
        font-size: 14px;
        font-weight: 500;
    }

        .nd-quick a:hover {
            background: #fff;
            border-color: #fff;
            color: var(--nd-navy);
        }

/* Logodaki işaretli "o" — sayfanın tek dekoratif öğesi */
.nd-hero-art {
    justify-self: end;
    width: 300px;
    margin-right: -20px;
    margin-bottom: -60px;
}

    .nd-hero-art svg {
        display: block;
        width: 100%;
        height: auto;
    }

/* ---------------- ANA KATEGORİLER ---------------- */
.nd-cats {
    position: relative;
    margin-top: -56px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--nd-paper);
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    overflow: hidden;
}

.nd-cat {
    padding: 20px 20px 18px;
    border-left: 1px solid var(--nd-line);
}

    .nd-cat:first-child {
        border-left: 0;
    }

.nd-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--nd-ink);
    font-size: 17px;
    font-weight: 700;
}

    .nd-cat-head .bi {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--nd-amber-050);
        color: var(--nd-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        flex: 0 0 auto;
    }

    .nd-cat-head:hover {
        color: var(--nd-navy);
    }

        .nd-cat-head:hover .bi {
            background: var(--nd-amber);
        }

.nd-cat li a {
    display: block;
    padding: 4px 0;
    color: var(--nd-muted);
    font-size: 14px;
}

    .nd-cat li a:hover {
        color: var(--nd-navy);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* ---------------- REKLAM ---------------- */
.nd-ad {
    position: relative;
    display: block;
    border-radius: var(--nd-radius);
    overflow: hidden;
    border: 1px solid var(--nd-line);
    background: var(--nd-paper);
}

    .nd-ad img {
        display: block;
        width: 100%;
        height: auto;
    }

.nd-ad-yatay {
    margin-top: 24px;
}

.nd-ad-label {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(27, 30, 56, .6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* ---------------- İÇERİK + SAĞ REKLAM ---------------- */
.nd-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
    align-items: start;
}

.nd-rail {
    position: sticky;
    top: 140px;
    margin-top: 40px;
}

.nd-section {
    margin-top: 40px;
}

.nd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

    .nd-section-head h2 {
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

.nd-section-links {
    display: flex;
    gap: 18px;
    flex: 0 0 auto;
}

    .nd-section-links a {
        color: var(--nd-navy);
        font-weight: 600;
        font-size: 15px;
        border-bottom: 2px solid var(--nd-amber);
        padding-bottom: 1px;
    }

        .nd-section-links a:hover {
            color: var(--nd-navy-900);
            border-bottom-color: var(--nd-navy);
        }

/* ---------------- İLAN KARTLARI ---------------- */
.nd-grid {
    display: grid;
    /* 6 sütun: vitrinler 12 ve 30 kayıt döndüğü için satırlar tam dolar */
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

    .nd-grid[hidden] {
        display: none;
    }

.nd-card {
    display: flex;
    flex-direction: column;
    background: var(--nd-paper);
    border: 1px solid var(--nd-line);
    border-radius: var(--nd-radius);
    overflow: hidden;
    color: var(--nd-ink);
    transition: border-color .15s ease;
}

    .nd-card:hover {
        border-color: var(--nd-navy);
        color: var(--nd-ink);
    }

        .nd-card:hover .nd-card-title {
            color: var(--nd-navy);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.nd-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--nd-navy-050) url('/noimages/find.png') center / 40px no-repeat;
    border-bottom: 1px solid var(--nd-line);
}

    .nd-card-img img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: var(--nd-paper);
    }

/* Ürün fotoğrafları (enstrüman) kırpılmasın */
.nd-card-img-contain img {
    object-fit: contain;
    padding: 8px;
}

.nd-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--nd-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

    .nd-badge[data-tip*="kiralik"] {
        background: var(--nd-amber);
        color: var(--nd-navy-900);
    }

    .nd-badge:empty {
        display: none !important;
    }

.nd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 10px 12px 12px;
    gap: 4px;
}

.nd-card-title {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.nd-card-meta {
    font-size: 13px;
    color: var(--nd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.3em;
}

.nd-card-foot {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nd-loc {
    font-size: 13px;
    color: var(--nd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

    .nd-loc .bi {
        margin-right: 3px;
    }

.nd-price {
    order: -1; /* fiyat konumun üstünde */
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 800;
    color: var(--nd-navy);
    white-space: nowrap;
}

.nd-price-ask {
    font-size: 13px;
    font-weight: 600;
    color: var(--nd-muted);
}

/* ---------------- SEKMELER ---------------- */
.nd-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

    .nd-tabs::-webkit-scrollbar {
        display: none;
    }

.nd-tab {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--nd-line);
    border-radius: 999px;
    background: var(--nd-paper);
    color: var(--nd-ink);
    font: 600 14px/1 var(--nd-font);
    cursor: pointer;
}

    .nd-tab:hover {
        border-color: var(--nd-navy);
    }

    .nd-tab[aria-selected="true"] {
        background: var(--nd-navy);
        border-color: var(--nd-navy);
        color: #fff;
    }

/* ---------------- İŞ İLANLARI ---------------- */
.nd-jobs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--nd-paper);
    border: 1px solid var(--nd-line);
    border-radius: var(--nd-radius);
    overflow: hidden;
}

.nd-job {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-top: 1px solid var(--nd-line);
    color: var(--nd-ink);
}

    .nd-job:nth-child(-n+2) {
        border-top: 0;
    }

    .nd-job:nth-child(even) {
        border-left: 1px solid var(--nd-line);
    }

    .nd-job:hover {
        background: var(--nd-bg);
        color: var(--nd-ink);
    }

        .nd-job:hover .nd-job-title {
            color: var(--nd-navy);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.nd-job-ico {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--nd-amber-050);
    color: var(--nd-navy);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.nd-job-body {
    display: block !important;
    min-width: 0;
}

.nd-job-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nd-job-firm {
    display: block !important;
    margin-top: 2px;
    font-size: 14px;
    color: var(--nd-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nd-job-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--nd-muted);
}

    .nd-job-meta .bi {
        margin-right: 4px;
    }

/* ---------------- UYGULAMA ---------------- */
.nd-app {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    border-radius: 14px;
    background: var(--nd-amber);
    color: var(--nd-navy-900);
}

    .nd-app h2 {
        font-size: 24px;
        font-weight: 800;
    }

    .nd-app p {
        margin: 4px 0 0;
        font-size: 16px;
    }

.nd-app-stores {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

    .nd-app-stores img {
        display: block;
        height: 44px;
        width: auto;
    }

/* ---------------- DUYARLI ---------------- */
@media (max-width: 1199.98px) {
    .nd-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .nd-rail {
        display: none;
    }

    .nd-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nd-cat:nth-child(4) {
        border-left: 0;
    }

    .nd-cat:nth-child(n+4) {
        border-top: 1px solid var(--nd-line);
    }
}

@media (max-width: 991.98px) {
    /* Anasayfada mobilde büyük arama kutusu var; header'daki ikinci kutuyu gizle */
    .nd-header .nd-search {
        display: none;
    }

    .nd-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .nd-hero .nd-hero-in {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 30px;
        padding-bottom: 76px;
    }

    .nd-hero-art {
        position: absolute;
        right: -40px;
        top: -30px;
        width: 210px;
        margin: 0;
        opacity: .18;
    }

    .nd-hero-text {
        position: relative;
    }

    .nd-jobs {
        grid-template-columns: minmax(0, 1fr);
    }

    .nd-job:nth-child(2) {
        border-top: 1px solid var(--nd-line);
    }

    .nd-job:nth-child(even) {
        border-left: 0;
    }

    .nd-app {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .nd-hero-text > p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .nd-hero-search {
        height: 54px;
    }

        .nd-hero-search input {
            font-size: 16px;
            padding-left: 42px;
        }

        .nd-hero-search .bi {
            left: 18px;
        }

        .nd-hero-search button {
            padding: 0 16px;
            font-size: 15px;
        }

    .nd-quick {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -20px !important;
        padding-right: 20px;
        scrollbar-width: none;
    }

        .nd-quick::-webkit-scrollbar {
            display: none;
        }

        .nd-quick li {
            flex: 0 0 auto;
        }

    /* Kategoriler mobilde 2x3 sade ikon ızgarası */
    .nd-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: -48px;
    }

    .nd-cat {
        padding: 16px 8px 14px;
        text-align: center;
    }

        .nd-cat ul {
            display: none;
        }

    .nd-cat-head {
        flex-direction: column;
        gap: 8px;
        margin: 0;
        font-size: 14px;
    }

        .nd-cat-head .bi {
            width: 46px;
            height: 46px;
            font-size: 22px;
        }

    .nd-section {
        margin-top: 32px;
    }

    .nd-section-head h2 {
        font-size: 20px;
    }

    .nd-section-links {
        gap: 12px;
    }

        .nd-section-links a {
            font-size: 14px;
        }

    .nd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .nd-card-body {
        padding: 8px 10px 10px;
    }

    .nd-card-title {
        font-size: 14px !important;
    }

    .nd-price {
        font-size: 15px;
    }

        .nd-price.nd-price-ask {
            font-size: 13px;
        }

    .nd-app {
        padding: 22px;
    }

    .nd-app-stores img {
        height: 40px;
    }
}

@media (max-width: 380px) {
    .nd-section-head {
        flex-wrap: wrap;
    }
}
