/* Ana sayfa — TIP tarzı düzen (logo & renkler: Devret Link) */

.home-v2 .nav-wrapper {
    min-height: 72px;
    height: auto;
    padding: 0.65rem 0;
    align-items: center;
}

@media (max-width: 1024px) {
    .home-v2 .nav-wrapper {
        min-height: 0;
        padding: 0.3rem 0;
    }
}

.home-v2 .nav-auth-link {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    white-space: nowrap;
}

.home-v2 .nav-auth-link:hover {
    color: var(--primary);
}

@media (min-width: 1024px) {
    .home-v2 .nav-auth-link {
        display: inline-flex;
        align-items: center;
    }
}

.home-v2 .btn-ilan-ver {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.home-v2 .btn-ilan-ver svg {
    flex-shrink: 0;
}

/* Üst blok: kategori + hızlı arama */
.home-main-top {
    position: relative;
    padding-top: 72px;
    isolation: isolate;
    background-color: #0f172a;
}

/* İş / ticaret temalı arka plan (yerel görsel: images/home-hero-bg.jpg) */
.home-main-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("images/home-hero-bg.jpg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.home-main-top::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        165deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 23, 42, 0.68) 35%,
        rgba(248, 250, 252, 0.94) 100%
    );
}

.home-main-top > * {
    position: relative;
    z-index: 2;
}

.home-category-section {
    padding: 1.75rem 0 1.25rem;
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .home-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.home-cat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    min-height: 72px;
}

.home-cat-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* SVG ikon kutusu (emoji yerine) */
.home-cat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.09);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-cat-icon-wrap svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.home-cat-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    text-align: left;
}

.home-cat-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

.home-cat-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.home-cat-card.skeleton {
    pointer-events: none;
    background: #e2e8f0;
    border-color: transparent;
    animation: home-pulse 1.2s ease-in-out infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

/* Hızlı Bul şeridi */
.home-quick-search {
    padding: 0 0 2rem;
}

.home-quick-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    background: var(--gray-900);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
}

.home-quick-label {
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: #fff;
}

.home-quick-fields {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.home-quick-fields select,
.home-quick-fields input {
    border: none;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    color: var(--gray-900);
    background: #fff;
    min-width: 0;
}

.home-quick-fields select {
    cursor: pointer;
    flex: 1 1 140px;
}

.home-quick-prices {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.home-quick-prices input {
    flex: 1;
    min-width: 0;
}

.home-quick-btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.home-quick-btn:hover {
    background: var(--primary-dark) !important;
}

.home-quick-detail {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.home-quick-detail:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .home-quick-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 0.75rem;
        overflow-x: hidden;
    }

    .home-quick-fields {
        flex-direction: column;
        width: 100%;
    }

    .home-quick-fields select,
    .home-quick-fields input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex: none;
    }

    .home-quick-fields select {
        min-width: 0;
        font-size: 1rem;
        padding: 0.75rem 0.9rem;
    }

    .home-quick-fields input {
        font-size: 1rem;
        padding: 0.75rem 0.9rem;
    }

    .home-quick-prices {
        flex: none;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.5rem;
    }

    .home-quick-prices input {
        min-width: 0;
    }

    .home-quick-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .home-quick-detail {
        margin-left: 0;
        text-align: center;
        padding-top: 0.25rem;
        white-space: normal;
    }
}

/* Premium ilanlar — kart görünümü */
.home-v2 .featured-section.home-premium {
    background: var(--white);
    padding-top: 3rem;
}

.home-v2 .listing-card.home-premium-card .listing-image {
    height: 210px;
}

.home-v2 .listing-card.home-premium-card .badge.featured {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.home-card-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.home-card-img-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
    color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 500;
}

.home-v2 .featured-section .listings-slider {
    position: relative;
}

.home-v2 .featured-section .slider-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .home-v2 .slider-btn.prev {
        left: 4px;
    }

    .home-v2 .slider-btn.next {
        right: 4px;
    }
}
