/* ==========================================================================
   TakasBul Home Experience (Üç Adımda Takas, TakasZeka, Eşleştirme Motoru)
   Tüm tipografi, renkler ve kart stilleri takasbul-template.css ile tam uyumludur.
   ========================================================================== */

.home-experience {
    font-family: var(--font-sans);
    color: var(--text-primary);
}

.home-experience h2,
.home-experience h3,
.home-experience p {
    margin: 0;
    font-family: var(--font-sans);
}

.home-experience .wrap {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================================================
   Ortak Başlık & Kicker Yapısı
   ========================================================================== */

.hx-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.hx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 99px;
    padding: 6px 14px;
    background: var(--brand-yellow-light);
    color: var(--brand-yellow-text);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-experience h2 {
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 14px;
}

.hx-heading h2 > span {
    color: #d97706;
}

.hx-heading > p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ==========================================================================
   1. Bölüm: Üç Adımda Takas (.hx-process)
   ========================================================================== */

.hx-process {
    padding: 68px 0 60px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
}

.hx-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hx-process-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.hx-process-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hx-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hx-step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 800;
}

.hx-card-top > i {
    font-size: 24px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.hx-process-card:hover .hx-card-top > i {
    color: var(--brand-yellow-hover);
}

.home-experience h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text-primary);
}

.hx-process-card > p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px 0 26px;
}

.hx-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
}

.hx-card-foot > i {
    color: #d97706;
    transition: transform 0.2s ease;
}

.hx-process-card:hover .hx-card-foot > i {
    transform: translateX(3px);
}

/* ==========================================================================
   2. Bölüm: TakasZeka (.hx-intelligence)
   ========================================================================== */

.hx-intelligence {
    position: relative;
    background: var(--brand-dark);
    color: #ffffff;
    padding: 72px 0;
    overflow: hidden;
}

.hx-intelligence::before {
    content: '';
    position: absolute;
    width: 550px;
    height: 550px;
    border: 80px solid rgb(233 184 36 / 4%);
    border-radius: 50%;
    right: -300px;
    top: -320px;
    pointer-events: none;
}

.hx-intelligence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    position: relative;
}

.hx-intelligence .hx-kicker {
    color: var(--brand-yellow);
    background: rgba(233, 184, 36, 0.14);
    border: 1px solid rgba(233, 184, 36, 0.28);
}

.hx-intelligence h2 {
    color: #ffffff;
    font-size: clamp(24px, 2.5vw, 34px);
    margin-top: 16px;
}

.hx-intelligence h2 > span {
    color: var(--brand-yellow);
}

.hx-intelligence-intro {
    font-size: 14.5px;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 500px;
    margin-top: 16px !important;
}

.hx-benefits {
    display: grid;
    gap: 20px;
    list-style: none;
    margin: 28px 0;
    padding: 0;
}

.hx-benefits li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hx-benefit-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(233, 184, 36, 0.25);
    border-radius: 12px;
    background: rgba(233, 184, 36, 0.12);
    color: var(--brand-yellow);
    font-size: 16px;
}

.hx-benefits h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}

.hx-benefits p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 4px;
}

.hx-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-yellow);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    transition: all 0.15s ease;
}

.hx-text-link:hover {
    color: var(--brand-yellow-hover);
    gap: 14px;
}

.hx-analysis-preview {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #1e252b;
    padding: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    min-width: 0;
}

.hx-analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-assistant-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 16px;
}

.hx-analysis-header strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.hx-analysis-header small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.hx-example-badge {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    padding: 4px 10px;
    white-space: nowrap;
}

.hx-conversation {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
}

.hx-user-message {
    align-self: flex-end;
    max-width: 88%;
    border-radius: 14px 14px 4px 14px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.hx-assistant-message {
    max-width: 94%;
    background: #262f36;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px 14px 14px 14px;
    padding: 16px;
}

.hx-assistant-message > p {
    font-size: 13px;
    line-height: 1.55;
    color: #e2e8f0;
}

.hx-analysis-values {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(233, 184, 36, 0.25);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.hx-analysis-values > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    line-height: 1.5;
}

.hx-analysis-values dt {
    color: #94a3b8;
}

.hx-analysis-values dd {
    margin: 0;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.hx-analysis-values .hx-value-difference {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.hx-value-difference dd,
.hx-value-match {
    color: var(--brand-yellow);
    font-weight: 800;
}

.hx-analysis-summary {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hx-analysis-summary > i {
    color: var(--brand-yellow);
    margin-top: 3px;
    font-size: 16px;
}

.hx-analysis-summary p {
    font-size: 12.5px;
    line-height: 1.55;
    color: #cbd5e1;
}

.hx-preview-note {
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 16px !important;
}

/* ==========================================================================
   3. Bölüm: Eşleştirme Motoru (.hx-matching)
   ========================================================================== */

.hx-matching {
    padding: 68px 0 72px;
    background: #f8f9fa;
    border-top: 1px solid #eef2f6;
}

.hx-match-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 156px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
}

.hx-property-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    min-width: 0;
    transition: all 0.2s ease;
}

.hx-property-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.hx-property-visual {
    position: relative;
    height: 168px;
    background: #eef2f6;
    overflow: hidden;
}

.hx-property-target {
    background: #e8eef2;
}

.hx-property-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hx-property-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-dark);
    color: #ffffff;
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hx-property-target .hx-property-tag {
    background: var(--brand-yellow);
    color: var(--brand-dark);
}

.hx-property-body {
    padding: 20px;
}

.hx-property-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.hx-property-body > p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hx-property-body > p i {
    margin-right: 5px;
    color: #d97706;
}

.hx-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.hx-property-details span {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 4px 8px;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
}

.hx-property-price {
    display: block;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hx-property-price small {
    font-size: 13px;
    font-weight: 700;
}

.hx-match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hx-score-ring {
    width: 108px;
    height: 108px;
    padding: 6px;
    border-radius: 50%;
    background: conic-gradient(var(--brand-yellow) 0% 94%, #e2e8f0 94% 100%);
}

.hx-score-ring > div {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
}

.hx-score-ring strong {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hx-score-ring small {
    font-size: 14px;
    font-weight: 700;
    margin-left: 1px;
}

.hx-score-ring span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 2px;
}

.hx-match-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-yellow-light);
    color: var(--brand-yellow-text);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    white-space: nowrap;
}

.hx-match-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 20px !important;
    line-height: 1.6;
}

.hx-match-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
}

.hx-match-features > article {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: all 0.2s ease;
}

.hx-match-features > article:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.hx-feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-yellow-light);
    color: var(--brand-yellow-text);
    font-size: 18px;
    margin-bottom: 16px;
}

.hx-match-features h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.hx-match-features p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
}

.hx-section-action {
    text-align: center;
    margin-top: 36px;
}

.hx-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 28px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(233, 184, 36, 0.2);
}

.hx-primary-link:hover {
    background: var(--brand-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(233, 184, 36, 0.32);
}

.home-experience a:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px;
}

/* ==========================================================================
   Responsive Kuralları
   ========================================================================== */

@media (max-width: 900px) {
    .hx-process, .hx-matching {
        padding: 52px 0;
    }
    .hx-process-card {
        padding: 22px;
    }
    .hx-intelligence-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hx-intelligence-copy {
        max-width: 620px;
    }
    .hx-analysis-preview {
        max-width: 620px;
        width: 100%;
        justify-self: center;
    }
    .hx-match-demo {
        grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
        gap: 16px;
    }
    .hx-match-features > article {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .home-experience .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hx-process-grid,
    .hx-match-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hx-heading {
        margin-bottom: 28px;
    }
    .hx-card-top {
        margin-bottom: 18px;
    }
    .hx-intelligence {
        padding: 48px 0;
    }
    .hx-analysis-preview {
        padding: 18px;
        border-radius: 16px;
    }
    .hx-conversation {
        padding-top: 16px;
    }
    .hx-user-message,
    .hx-assistant-message {
        font-size: 12.5px;
    }
    .hx-analysis-values {
        padding: 12px;
    }
    .hx-analysis-values > div {
        gap: 8px;
        font-size: 11.5px;
    }
    .hx-match-demo {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 380px;
    }
    .hx-match-score {
        flex-direction: row;
        justify-content: center;
    }
    .hx-score-ring {
        width: 84px;
        height: 84px;
        padding: 5px;
    }
    .hx-score-ring strong {
        font-size: 24px;
    }
    .hx-property-visual {
        height: 160px;
    }
    .hx-match-features {
        margin-top: 24px;
    }
    .hx-primary-link {
        width: 100%;
    }
}
