/*
 * HerkesMemnun Design System — Home Standard
 * ---------------------------------------
 * Ana sayfadaki eski hm-home-* kurallarını tek tasarım sözleşmesine bağlayan
 * son uyumluluk katmanıdır. Sadece .hm-home-page altında çalışır.
 */

body .hm-home-page {
    --hm-home-navy: var(--ef-color-navy);
    --hm-home-navy-dark: var(--ef-color-navy-dark);
    --hm-home-blue: var(--ef-color-blue);
    --hm-home-blue-dark: var(--ef-color-blue-dark);
    --hm-home-turquoise: var(--ef-color-turquoise);
    --hm-home-turquoise-dark: var(--ef-color-turquoise-dark);
    --hm-home-white: var(--ef-color-white);
    --hm-home-page: var(--ef-color-page);
    --hm-home-text: var(--ef-color-text);
    --hm-home-muted: var(--ef-color-muted);
    --hm-home-light: var(--ef-color-light);
    --hm-home-border: var(--ef-color-border);
    --hm-home-soft-blue: var(--ef-color-info-soft);
    --hm-home-soft-green: var(--ef-color-success-soft);
    --hm-home-danger: var(--ef-color-danger);
    --hm-home-success: var(--ef-color-success);

    color: var(--ef-color-text);
    font-family: var(--ef-font-sans);
}

body .hm-home-page .hm-home-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body .hm-home-page .hm-home-section {
    margin-bottom: var(--ef-space-5) !important;
}

body .hm-home-page .hm-home-ad-slot {
    margin-block: var(--ef-space-4) !important;
}

/* Approved model: clean white welcome strip, navy copy, orange accent */
body .hm-home-page .hm-home-welcome {
    margin-bottom: var(--ef-space-3) !important;
    padding: 12px 22px !important;
    color: var(--ef-color-navy) !important;
    background: #ffffff !important;
    border: 1px solid var(--ef-color-border) !important;
    border-left: 4px solid var(--ef-color-turquoise) !important;
    border-radius: var(--ef-radius-md) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .hm-home-page .hm-home-welcome-title {
    color: var(--ef-color-navy) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
}

body .hm-home-page .hm-home-welcome-title-line { display: none !important; }

body .hm-home-page .hm-home-welcome-title::before {
    content: "Gerçek deneyimler, güvenilir kararlar.";
    display: block;
    color: var(--ef-color-navy);
    font-family: var(--ef-font-sans) !important;
    font-size: clamp(22px, 1.82vw, 27px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body .hm-home-page .hm-home-welcome-description { display: none !important; }

body .hm-home-page .hm-home-hero-grid,
body .hm-home-page .hm-home-hero-side {
    gap: var(--ef-space-3) !important;
}

body .hm-home-page .hm-home-hero-card {
    border-radius: var(--ef-radius-md) !important;
    border-color: var(--ef-color-border) !important;
    box-shadow: var(--ef-shadow-md) !important;
}

body .hm-home-page .hm-home-hero-card-main {
    border-top: 4px solid var(--ef-color-turquoise) !important;
}

body .hm-home-page .hm-home-hero-category,
body .hm-home-page .hm-home-hero-kicker,
body .hm-home-page .hm-home-hero-stat {
    border-radius: var(--ef-radius-sm) !important;
}

body .hm-home-page .hm-home-hero-category,
body .hm-home-page .hm-home-hero-kicker {
    color: #B9381E !important;
    background: #FFF4EF !important;
    border-color: #FFD8CA !important;
}

body .hm-home-page .hm-home-hero-nav,
body .hm-home-page .hm-home-channel-nav,
body .hm-home-page .hm-home-hero-counter,
body .hm-home-page .hm-home-hero-cta,
body .hm-home-page .hm-home-list-cta {
    border-radius: var(--ef-radius-sm) !important;
}

body .hm-home-page .hm-home-hero-cta,
body .hm-home-page .hm-home-list-cta {
    color: #ffffff !important;
    background: var(--ef-color-turquoise) !important;
    border-color: var(--ef-color-turquoise) !important;
    box-shadow: 0 7px 16px rgba(255, 106, 61, 0.16) !important;
}

body .hm-home-page .hm-home-hero-cta:hover,
body .hm-home-page .hm-home-hero-cta:focus,
body .hm-home-page .hm-home-list-cta:hover,
body .hm-home-page .hm-home-list-cta:focus {
    color: #ffffff !important;
    background: var(--ef-color-turquoise-dark) !important;
    border-color: var(--ef-color-turquoise-dark) !important;
}

body .hm-home-page .hm-home-hero-nav,
body .hm-home-page .hm-home-channel-nav {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    color: var(--ef-color-navy) !important;
    background: #ffffff !important;
    border-color: var(--ef-color-border) !important;
}

body .hm-home-page .hm-home-hero-controls {
    gap: var(--ef-space-3) !important;
    margin-top: var(--ef-space-3) !important;
}

body .hm-home-page .hm-home-identity-strip {
    background: #ffffff !important;
    border-radius: var(--ef-radius-md) !important;
    border-color: var(--ef-color-border) !important;
    border-top-color: var(--ef-color-turquoise) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .hm-home-page .hm-home-section-header,
body .hm-home-page .hm-home-live-header {
    margin-bottom: var(--ef-space-3) !important;
}

body .hm-home-page .hm-home-section-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    color: var(--ef-color-turquoise-dark) !important;
    background: #FFF4EF !important;
    border-color: #FFD8CA !important;
    border-radius: var(--ef-radius-sm) !important;
}

body .hm-home-page .hm-home-section-title,
body .hm-home-page .hm-home-live-title {
    color: var(--ef-color-navy) !important;
    font-family: var(--ef-font-sans) !important;
    font-size: var(--ef-font-size-xl) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

body .hm-home-page .hm-home-live-description {
    color: var(--ef-color-muted) !important;
    line-height: var(--ef-line-height-normal) !important;
}

body .hm-home-page .hm-home-insight-card,
body .hm-home-page .hm-home-list-panel,
body .hm-home-page .hm-home-sidebar-card {
    background: var(--ef-color-surface) !important;
    border: 1px solid var(--ef-color-border) !important;
    border-radius: var(--ef-radius-md) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .hm-home-page .hm-home-insight-card,
body .hm-home-page .hm-home-list-panel {
    padding: var(--ef-space-4) !important;
}

body .hm-home-page .hm-home-insight-title {
    margin-bottom: var(--ef-space-4) !important;
    padding-bottom: var(--ef-space-2) !important;
    color: var(--ef-color-navy) !important;
    font-size: var(--ef-font-size-lg) !important;
    font-weight: 800 !important;
}

body .hm-home-page .hm-home-insight-title::after {
    width: 40px !important;
    background: var(--ef-color-turquoise) !important;
}

body .hm-home-page .hm-home-rank-image-link,
body .hm-home-page .hm-home-trending-image-link,
body .hm-home-page .hm-home-list-image-link,
body .hm-home-page .hm-home-channel-image-wrap {
    border-radius: var(--ef-radius-sm) !important;
}

body .hm-home-page .hm-home-category,
body .hm-home-page .hm-home-channel,
body .hm-home-page .hm-home-list-metric,
body .hm-home-page .hm-home-rank-direction,
body .hm-home-page .hm-home-live-window {
    border-radius: var(--ef-radius-sm) !important;
}

body .hm-home-page .hm-home-channels-panel {
    background: #ffffff !important;
    border-color: var(--ef-color-border) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .hm-home-page .hm-home-channel-scroll {
    gap: var(--ef-space-3) !important;
}

body .hm-home-page .hm-home-channels-panel .hm-home-channel-scroll .hm-home-channel-card {
    background: #ffffff !important;
    border-radius: var(--ef-radius-md) !important;
    border-color: var(--ef-color-border) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .hm-home-page .hm-home-channels-panel .hm-home-channel-scroll .hm-home-channel-card:hover,
body .hm-home-page .hm-home-channels-panel .hm-home-channel-scroll .hm-home-channel-card:focus {
    border-color: rgba(255, 106, 61, 0.45) !important;
    box-shadow: var(--ef-shadow-md) !important;
}

body .hm-home-page .hm-home-rank-title,
body .hm-home-page .hm-home-trending-title,
body .hm-home-page .hm-home-list-title {
    color: var(--ef-color-text) !important;
    font-family: var(--ef-font-sans) !important;
}

body .hm-home-page .hm-home-rank-item,
body .hm-home-page .hm-home-trending-item,
body .hm-home-page .hm-home-list-item {
    border-color: var(--ef-color-border) !important;
}

body .hm-home-page a:focus-visible,
body .hm-home-page button:focus-visible {
    outline: 3px solid rgba(255, 106, 61, 0.26) !important;
    outline-offset: 2px !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body .hm-home-page .hm-home-section { margin-bottom: var(--ef-space-5) !important; }
    body .hm-home-page .hm-home-insights-grid { gap: var(--ef-space-4) !important; }
}

@media (min-width: 768px) {
    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-title {
        max-width: 100% !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-wrap: balance;
    }

    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-cta {
        max-width: 190px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 767.98px) {
    body .hm-home-page .container {
        padding-right: var(--ef-space-3) !important;
        padding-left: var(--ef-space-3) !important;
    }

    body .hm-home-page .hm-home-section { margin-bottom: 20px !important; }

    body .hm-home-page .hm-home-welcome {
        margin-top: 0 !important;
        margin-bottom: var(--ef-space-3) !important;
        padding: 9px 12px !important;
        border-left-width: 1px !important;
        border-top: 3px solid var(--ef-color-turquoise) !important;
        border-radius: var(--ef-radius-md) !important;
    }

    body .hm-home-page .hm-home-welcome-title::before { font-size: 20px; }
    body .hm-home-page .hm-home-hero-card { border-radius: var(--ef-radius-md) !important; }

    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-content {
        grid-template-columns: minmax(0, 1fr) 76px !important;
        column-gap: 8px !important;
    }

    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-title {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-actions,
    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-cta {
        width: 76px !important;
        min-width: 76px !important;
    }

    body .hm-home-page .hm-home-hero-card-main .hm-home-hero-cta {
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 8px !important;
        gap: 5px !important;
        border-radius: 10px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }

    body .hm-home-page .hm-home-hero-controls {
        gap: 8px !important;
        margin-top: 8px !important;
    }

    body .hm-home-page .hm-home-hero-nav,
    body .hm-home-page .hm-home-channel-nav {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    body .hm-home-page .hm-home-hero-counter {
        min-width: 60px !important;
        min-height: 34px !important;
        padding: 6px 9px !important;
        font-size: 11.5px !important;
    }

    body .hm-home-page .hm-home-section-icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    body .hm-home-page .hm-home-section-title,
    body .hm-home-page .hm-home-live-title {
        font-size: var(--ef-font-size-lg) !important;
    }

    body .hm-home-page .hm-home-insight-card,
    body .hm-home-page .hm-home-list-panel {
        padding: var(--ef-space-3) !important;
    }

    body .hm-home-page .hm-home-insight-title {
        margin-bottom: var(--ef-space-3) !important;
        font-size: 16px !important;
    }

    body .hm-home-page .hm-home-channel-scroll { gap: 10px !important; }
}

@media (max-width: 390px) {
    body .hm-home-page .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

body .hm-home-page .hm-home-welcome {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 14px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
}

body .hm-home-page .hm-home-welcome-copy {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
}

body .hm-home-page .hm-home-welcome-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

body .hm-home-page .hm-home-welcome-title::before {
    font-size: 17px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body .hm-home-page .hm-home-welcome-description,
body .hm-home-page .hm-home-welcome-description::before,
body .hm-home-page .hm-home-welcome-title-line {
    display: none !important;
    content: none !important;
}

@media (max-width: 767.98px) {
    body .hm-home-page .hm-home-welcome {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 11px !important;
    }

    body .hm-home-page .hm-home-welcome-title::before { font-size: 15px !important; }
}
