/* ============================================================
   Takasal — Modern Anasayfa Stilleri
   Tüm kurallar .hp altında izole; global stilleri etkilemez.
   Marka: sarı (#f5b301) + siyah, modern & temiz.
   ============================================================ */

.hp {
    --hp-yellow: #f5b301;
    --hp-yellow-dark: #d99a00;
    --hp-yellow-soft: #fff8e6;
    --hp-ink: #15171c;
    --hp-text: #2c2f36;
    --hp-muted: #8a8f99;
    --hp-bg: #ffffff;
    --hp-soft: #f6f7f9;
    --hp-soft-2: #eef0f3;
    --hp-border: #e9ebef;
    --hp-success: #16a34a;
    --hp-r: 18px;
    --hp-r-sm: 12px;
    --hp-r-pill: 999px;
    --hp-shadow: 0 10px 40px rgba(20, 23, 28, .08);
    --hp-shadow-sm: 0 4px 16px rgba(20, 23, 28, .06);
    --hp-shadow-hover: 0 18px 50px rgba(20, 23, 28, .14);
    --hp-ff: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;

    color: var(--hp-text);
    font-family: var(--hp-ff);
    background: var(--hp-bg);
    overflow-x: hidden;
}

.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }

/* ---------- Ortak bölüm yapısı ---------- */
.hp-section { padding: 64px 0; }
.hp-section.soft { background: var(--hp-soft); }
.hp-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.hp-head { margin-bottom: 34px; }
.hp-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hp-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--hp-yellow-dark); margin-bottom: 10px;
}
.hp-eyebrow i { color: var(--hp-yellow); }
.hp-title {
    font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--hp-ink); margin: 0;
    letter-spacing: -.02em;
}
.hp-subtitle { color: var(--hp-muted); font-size: 15px; margin: 8px 0 0; }

/* ---------- Butonlar ---------- */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none;
    padding: 13px 22px; border-radius: var(--hp-r-pill); border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.hp-btn:active { transform: translateY(1px); }
.hp-btn-primary { background: var(--hp-yellow); color: var(--hp-ink); box-shadow: 0 8px 22px rgba(245,179,1,.32); }
.hp-btn-primary:hover { background: var(--hp-yellow-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,179,1,.4); }
.hp-btn-dark { background: var(--hp-ink); color: #fff; }
.hp-btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.hp-btn-ghost { background: #fff; color: var(--hp-ink); border-color: var(--hp-border); }
.hp-btn-ghost:hover { border-color: var(--hp-ink); transform: translateY(-2px); }
.hp-btn-sm { padding: 10px 16px; font-size: 13.5px; }
.hp-link {
    display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px;
    color: var(--hp-ink); text-decoration: none; transition: gap .15s ease, color .15s ease;
}
.hp-link:hover { color: var(--hp-yellow-dark); gap: 11px; }

/* ============================================================
   HERO
   ============================================================ */
.hp-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 88% -10%, var(--hp-yellow-soft) 0%, rgba(255,248,230,0) 60%),
        linear-gradient(180deg, #fff 0%, var(--hp-soft) 100%);
    padding: 70px 0 80px;
    overflow: hidden;
}
.hp-hero::before {
    content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(245,179,1,.18) 0%, rgba(245,179,1,0) 70%); border-radius: 50%;
}
.hp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hp-hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm); border-radius: var(--hp-r-pill); padding: 7px 14px;
    font-size: 13px; font-weight: 700; color: var(--hp-text); margin-bottom: 20px;
}
.hp-hero-badge i { color: var(--hp-yellow); }
.hp-hero h1 {
    font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 800; color: var(--hp-ink);
    letter-spacing: -.03em; margin: 0 0 16px;
}
.hp-hero h1 .accent,
.hp-hero h1 .text-fade,
.hp-hero h1 strong { color: var(--hp-yellow-dark); font-weight: 800; }
.hp-hero-lead { font-size: 17px; line-height: 1.55; color: var(--hp-muted); margin: 0 0 26px; max-width: 520px; }
.hp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hp-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hp-stat { display: flex; flex-direction: column; }
.hp-stat-num { font-size: 22px; font-weight: 800; color: var(--hp-ink); }
.hp-stat-label { font-size: 13px; color: var(--hp-muted); }
.hp-stat-divider { width: 1px; background: var(--hp-border); }

/* Arama kartı */
.hp-search-card {
    background: #fff; border: 1px solid var(--hp-border); border-radius: 22px;
    box-shadow: var(--hp-shadow); padding: 26px; position: relative; z-index: 1;
}
.hp-search-card h2 { font-size: 20px; font-weight: 800; color: var(--hp-ink); margin: 0 0 4px; }
.hp-search-card .sc-sub { font-size: 14px; color: var(--hp-muted); margin: 0 0 18px; }

/* Kategori pill sekmeleri */
.hp-search-card .nav-tabs { border: 0; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.hp-search-card .nav-tabs::-webkit-scrollbar { height: 5px; }
.hp-search-card .nav-tabs::-webkit-scrollbar-thumb { background: var(--hp-soft-2); border-radius: 10px; }
.hp-search-card .nav-tabs .nav-link {
    border: 1px solid var(--hp-border); background: var(--hp-soft); color: var(--hp-text);
    border-radius: var(--hp-r-pill); padding: 8px 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: all .15s ease;
}
.hp-search-card .nav-tabs .nav-link:hover { border-color: var(--hp-yellow); color: var(--hp-ink); }
.hp-search-card .nav-tabs .nav-link.active { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }
.hp-search-card .input-group { border: 1px solid var(--hp-border); border-radius: var(--hp-r-sm); overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.hp-search-card .input-group:focus-within { border-color: var(--hp-yellow); box-shadow: 0 0 0 3px rgba(245,179,1,.18); }
.hp-search-card .input-group-text { background: #fff; border: 0; color: var(--hp-muted); padding-left: 14px; }
.hp-search-card .form-select,
.hp-search-card .form-control { border: 0; box-shadow: none !important; padding: 12px 12px; font-size: 14.5px; font-style: normal !important; }
.hp-search-card .form-select:focus, .hp-search-card .form-control:focus { outline: 0; }
.hp-search-card .btn-yellow {
    background: var(--hp-yellow); color: var(--hp-ink); border: 0; font-weight: 700; padding: 0 22px; border-radius: 0;
    transition: background .15s ease;
}
.hp-search-card .btn-yellow:hover { background: var(--hp-yellow-dark); color: #fff; }

/* ============================================================
   KATEGORİLER (owl)
   ============================================================ */
.hp .category-slider { margin-top: 8px; }
.hp .category-slider-item {
    display: flex !important; flex-direction: column; align-items: center; gap: 12px;
    text-decoration: none; color: var(--hp-text); padding: 22px 12px; border-radius: var(--hp-r);
    border: 1px solid var(--hp-border); background: #fff; transition: all .2s ease; text-align: center;
}
.hp .category-slider-item:hover { border-color: var(--hp-yellow); box-shadow: var(--hp-shadow-sm); transform: translateY(-4px); }
.hp .category-slider-item .category-icon {
    width: 76px; height: 76px; border-radius: 50%; background: var(--hp-yellow-soft);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hp .category-slider-item .category-icon img { width: 44px; height: 44px; object-fit: contain; }
.hp .category-slider-item span { font-size: 14px; font-weight: 600; color: var(--hp-ink); }
.hp .category-slider .owl-nav button.owl-prev,
.hp .category-slider .owl-nav button.owl-next {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
    background: #fff !important; border: 1px solid var(--hp-border) !important; border-radius: 50% !important;
    box-shadow: var(--hp-shadow-sm); color: var(--hp-ink) !important; font-size: 18px !important;
}
.hp .category-slider .owl-nav button.owl-prev { left: -10px; }
.hp .category-slider .owl-nav button.owl-next { right: -10px; }
.hp .category-slider .owl-nav button:hover { background: var(--hp-yellow) !important; }

/* ============================================================
   İLAN KARTLARI (Son ilanlar)
   ============================================================ */
.hp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hp-card {
    background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-r); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hp-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-hover); border-color: transparent; }
.hp-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--hp-soft-2); }
.hp-card-media a, .hp-card-media .carousel, .hp-card-media .carousel-inner, .hp-card-media .carousel-item { height: 100%; }
.hp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hp-card:hover .hp-card-media img { transform: scale(1.05); }
.hp-card-views {
    position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(21,23,28,.72); color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--hp-r-pill); backdrop-filter: blur(4px);
}
.hp-card-views i { color: var(--hp-yellow); margin-right: 4px; }
.hp-card-media .carousel-indicators { margin-bottom: 8px; }
.hp-card-media .carousel-indicators [data-bs-target] { width: 7px; height: 7px; border-radius: 50%; }
.hp-card-media .carousel-control-prev, .hp-card-media .carousel-control-next { width: 16%; opacity: 0; transition: opacity .2s; }
.hp-card:hover .hp-card-media .carousel-control-prev, .hp-card:hover .hp-card-media .carousel-control-next { opacity: 1; }

.hp-card-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.hp-card-cat { font-size: 12px; color: var(--hp-muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.hp-card-cat i { font-size: 9px; opacity: .6; }
.hp-card-title {
    font-size: 15.5px; font-weight: 700; color: var(--hp-ink); line-height: 1.35; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.hp-card-title:hover { color: var(--hp-yellow-dark); }
.hp-card-loc { font-size: 13px; color: var(--hp-muted); display: flex; align-items: center; gap: 6px; }
.hp-card-loc i { color: var(--hp-yellow); }
.hp-card-price { font-size: 20px; font-weight: 800; color: var(--hp-success); margin-top: 2px; }
.hp-card-price .empty { color: var(--hp-muted); font-size: 14px; font-weight: 600; }
.hp-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.hp-card-actions .hp-btn { padding: 10px 8px; font-size: 13px; }
.hp-card-empty {
    grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--hp-muted);
    background: #fff; border: 1px dashed var(--hp-border); border-radius: var(--hp-r);
}
.hp-card-empty i { font-size: 40px; color: var(--hp-soft-2); display: block; margin-bottom: 12px; }

/* ============================================================
   MOBİL UYGULAMA
   ============================================================ */
.hp-app { background: linear-gradient(135deg, var(--hp-ink) 0%, #23262e 100%); color: #fff; border-radius: 28px; overflow: hidden; position: relative; }
.hp-app::before { content: ""; position: absolute; left: -80px; bottom: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(245,179,1,.22) 0%, rgba(245,179,1,0) 70%); border-radius: 50%; }
.hp-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 52px; position: relative; z-index: 1; }
.hp-app h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 24px; }
.hp-app-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.hp-app-features li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #e8e9ec; }
.hp-app-features li i { color: var(--hp-yellow); font-size: 18px; }
.hp-app-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.hp-app-badges img { height: 52px; transition: transform .15s ease; }
.hp-app-badges a:hover img { transform: translateY(-3px); }
.hp-app-mockup { text-align: center; }
.hp-app-mockup img { max-height: 380px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.4)); }

/* ============================================================
   YORUMLAR
   ============================================================ */
.hp .testimonial-card {
    background: #fff; border: 1px solid var(--hp-border); border-radius: var(--hp-r); padding: 26px;
    box-shadow: var(--hp-shadow-sm); height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}
.hp .testimonial-card .stars { color: var(--hp-yellow); font-size: 15px; }
.hp .testimonial-text { color: var(--hp-text); font-size: 15px; line-height: 1.6; font-style: italic; }
.hp .testimonial-author img { width: 48px; height: 48px; }
.hp .testimonial-author h5 { color: var(--hp-ink); }
.hp .testimonials-slider .owl-nav button.owl-prev,
.hp .testimonials-slider .owl-nav button.owl-next {
    width: 40px; height: 40px; background: #fff !important; border: 1px solid var(--hp-border) !important;
    border-radius: 50% !important; box-shadow: var(--hp-shadow-sm); color: var(--hp-ink) !important;
}
.hp .testimonials-slider .owl-dots .owl-dot.active span { background: var(--hp-yellow) !important; }

/* ============================================================
   SEO METNİ
   ============================================================ */
.hp-seo { padding: 40px 0 64px; }
.hp-seo h3 { font-size: 18px; font-weight: 800; color: var(--hp-ink); margin: 0 0 10px; }
.hp-seo p { font-size: 14px; line-height: 1.7; color: var(--hp-muted); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hp-app-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 26px; }
    .hp-app-features li { justify-content: center; }
    .hp-app-badges { justify-content: center; }
    .hp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .hp-section { padding: 44px 0; }
    .hp-hero { padding: 44px 0 50px; }
    .hp-title { font-size: 24px; }
    .hp-hero-stats { gap: 18px; }
    .hp-search-card { padding: 20px; }
}
@media (max-width: 560px) {
    .hp-cards { grid-template-columns: 1fr; }
    .hp-card-actions { grid-template-columns: 1fr; }
}
