/*
 * EnFavori Design System — Discovery Standard
 * --------------------------------------------
 * Kategori ve kanal sayfalarını tek görsel sözleşmeye bağlayan son uyumluluk
 * katmanıdır. Veri akışını ve Blade yapısını değiştirmez.
 */

body .ef-category-page {
    --ef-category-navy: var(--ef-color-navy);
    --ef-category-navy-dark: var(--ef-color-navy-dark);
    --ef-category-turquoise: var(--ef-color-turquoise);
    --ef-category-turquoise-dark: var(--ef-color-turquoise-dark);
    --ef-category-blue: var(--ef-color-blue);
    --ef-category-page: var(--ef-color-page);
    --ef-category-border: var(--ef-color-border);
    --ef-category-muted: var(--ef-color-muted);
    --ef-category-text: var(--ef-color-text);
    --ef-category-white: var(--ef-color-white);
}

body .ef-channel-page {
    --ef-channel-navy: var(--ef-color-navy);
    --ef-channel-navy-dark: var(--ef-color-navy-dark);
    --ef-channel-blue: var(--ef-color-blue);
    --ef-channel-blue-soft: var(--ef-color-info-soft);
    --ef-channel-turquoise: var(--ef-color-turquoise);
    --ef-channel-turquoise-dark: var(--ef-color-turquoise-dark);
    --ef-channel-page: var(--ef-color-page);
    --ef-channel-white: var(--ef-color-white);
    --ef-channel-text: var(--ef-color-text);
    --ef-channel-muted: var(--ef-color-muted);
    --ef-channel-border: var(--ef-color-border);
}

body .ef-category-page,
body .ef-channel-page {
    color: var(--ef-color-text);
    font-family: var(--ef-font-sans);
}

/* Ortak sayfa ritmi */
body .ef-category-page,
body .ef-channel-page {
    margin-bottom: var(--ef-space-6) !important;
}

body .ef-category-breadcrumbs,
body .ef-channel-breadcrumbs {
    margin-bottom: 10px !important;
    color: var(--ef-color-muted) !important;
    font-family: var(--ef-font-sans) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
}

body .ef-category-breadcrumbs a,
body .ef-channel-breadcrumbs a {
    color: var(--ef-color-muted) !important;
}

body .ef-category-breadcrumbs a:hover,
body .ef-category-breadcrumbs a:focus,
body .ef-channel-breadcrumbs a:hover,
body .ef-channel-breadcrumbs a:focus {
    color: var(--ef-color-turquoise-dark) !important;
}

/* Hero / kimlik alanı */
body .ef-category-hero,
body .ef-channel-identity {
    margin-bottom: var(--ef-space-3) !important;
    background:
        linear-gradient(
            108deg,
            var(--ef-color-navy-dark) 0%,
            var(--ef-color-navy) 62%,
            #174968 100%
        ) !important;
    border: 1px solid rgba(24, 199, 187, 0.20) !important;
    border-left: 4px solid var(--ef-color-turquoise) !important;
    border-radius: var(--ef-radius-md) !important;
    box-shadow: var(--ef-shadow-md) !important;
}

body .ef-category-hero {
    padding: 18px 20px !important;
}

body .ef-channel-identity {
    padding: 21px 24px !important;
}

body .ef-category-hero-icon {
    border-radius: var(--ef-radius-md) !important;
}

body .ef-category-eyebrow,
body .ef-channel-eyebrow {
    color: rgba(255, 255, 255, 0.74) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
}

body .ef-category-eyebrow i,
body .ef-channel-eyebrow i,
body .ef-channel-heading-mark {
    color: var(--ef-color-turquoise) !important;
}

body .ef-category-title-main,
body .ef-channel-heading {
    color: var(--ef-color-white) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
}

body .ef-category-description,
body .ef-channel-description {
    color: rgba(255, 255, 255, 0.79) !important;
    font-family: var(--ef-font-sans) !important;
    line-height: 1.5 !important;
}

/* Hero istatistikleri */
body .ef-category-hero-stats,
body .ef-channel-stats {
    gap: 7px !important;
}

body .ef-category-hero-stat,
body .ef-channel-stat {
    min-height: 27px !important;
    padding: 5px 8px !important;
    border-radius: var(--ef-radius-sm) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
}

body .ef-category-hero-stat i,
body .ef-channel-stat i {
    color: var(--ef-color-turquoise) !important;
}

/* Ana kolon düzeni */
body .ef-category-layout,
body .ef-channel-layout {
    gap: var(--ef-space-4) !important;
}

body .ef-category-layout.has-sidebar,
body .ef-channel-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px !important;
}

/* Ortak yüzey dili */
body .ef-category-panel,
body .ef-channel-card,
body .ef-channel-category-strip,
body .ef-category-empty-wrap,
body .ef-channel-empty-wrap {
    border-color: var(--ef-color-border) !important;
    border-radius: var(--ef-radius-md) !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .ef-channel-card:hover,
body .ef-category-panel:hover {
    border-color: rgba(24, 199, 187, 0.32) !important;
    box-shadow: var(--ef-shadow-md) !important;
}

/* Kart başlıkları */
body .ef-category-card-title,
body .ef-channel-card-title {
    color: var(--ef-color-navy) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

body .ef-category-card-title:hover,
body .ef-category-card-title:focus,
body .ef-channel-card-title:hover,
body .ef-channel-card-title:focus {
    color: var(--ef-color-turquoise-dark) !important;
}

body .ef-category-card-description,
body .ef-channel-card-description {
    color: var(--ef-color-muted) !important;
    font-family: var(--ef-font-sans) !important;
}

/* Görseller */
body .ef-category-image-link {
    border-radius: var(--ef-radius-sm) !important;
}

body .ef-category-image,
body .ef-channel-card-image {
    transition: transform 0.22s ease !important;
}

body .ef-category-image-link:hover .ef-category-image,
body .ef-category-image-link:focus .ef-category-image,
body .ef-channel-card-image-link:hover .ef-channel-card-image,
body .ef-channel-card-image-link:focus .ef-channel-card-image {
    transform: scale(1.02) !important;
}

/* Badge / chip geometrisi */
body .ef-category-badge,
body .ef-category-metric,
body .ef-channel-category-link,
body .ef-channel-category-badge,
body .ef-channel-featured-badge,
body .ef-channel-card-metric {
    border-radius: var(--ef-radius-sm) !important;
    font-family: var(--ef-font-sans) !important;
}

body .ef-category-badge,
body .ef-channel-featured-badge {
    color: var(--ef-color-blue-dark) !important;
    background: var(--ef-color-info-soft) !important;
}

body .ef-channel-category-link,
body .ef-channel-category-badge,
body .ef-category-metric-participation,
body .ef-channel-card-metric.is-participation {
    color: #087d72 !important;
    background: var(--ef-color-success-soft) !important;
}

/* Kanal filtre şeridi */
body .ef-channel-category-strip {
    margin-bottom: var(--ef-space-3) !important;
    padding: 10px 12px !important;
    background: var(--ef-color-surface) !important;
}

body .ef-channel-category-label {
    color: var(--ef-color-navy) !important;
}

body .ef-channel-category-label i {
    color: var(--ef-color-turquoise-dark) !important;
}

/* Aksiyonlar */
body .ef-category-vote-link,
body .ef-channel-card-action {
    min-height: 36px !important;
    border-radius: var(--ef-radius-sm) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
    box-shadow: var(--ef-shadow-sm) !important;
}

body .ef-category-vote-link:hover,
body .ef-category-vote-link:focus,
body .ef-channel-card-action:hover,
body .ef-channel-card-action:focus {
    background: var(--ef-color-turquoise-dark) !important;
    border-color: var(--ef-color-turquoise-dark) !important;
}

body .ef-category-vote-link.is-participation,
body .ef-channel-card-action.is-participation {
    background: #0b817a !important;
    border-color: #0b817a !important;
}

body .ef-category-vote-link.is-preparing,
body .ef-channel-card-action.is-preparing {
    color: var(--ef-color-muted) !important;
    background: #f1f5f9 !important;
    border-color: var(--ef-color-border) !important;
    box-shadow: none !important;
}

/* Boş durumlar */
body .ef-category-empty,
body .ef-channel-empty {
    border-color: var(--ef-color-border) !important;
    border-radius: var(--ef-radius-md) !important;
}

body .ef-category-empty-icon,
body .ef-channel-empty-icon {
    border-radius: var(--ef-radius-md) !important;
    box-shadow: var(--ef-shadow-md) !important;
}

body .ef-category-empty-title,
body .ef-channel-empty-title {
    color: var(--ef-color-navy) !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
}

body .ef-category-empty-text,
body .ef-channel-empty-text {
    color: var(--ef-color-muted) !important;
}

/* Focus standardı */
body .ef-category-page a:focus-visible,
body .ef-channel-page a:focus-visible,
body .ef-category-page button:focus-visible,
body .ef-channel-page button:focus-visible {
    outline: 3px solid rgba(28, 156, 240, 0.24) !important;
    outline-offset: 2px !important;
}

/* Tablet */
@media (max-width: 1199.98px) {
    body .ef-category-layout.has-sidebar,
    body .ef-channel-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 260px !important;
    }
}

@media (max-width: 991.98px) {
    body .ef-category-layout,
    body .ef-category-layout.has-sidebar,
    body .ef-channel-layout,
    body .ef-channel-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Mobil */
@media (max-width: 767.98px) {
    body .ef-category-page,
    body .ef-channel-page {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        padding-right: var(--ef-space-3) !important;
        padding-left: var(--ef-space-3) !important;
    }

    body .ef-category-hero,
    body .ef-channel-identity {
        margin-top: 8px !important;
        margin-bottom: 10px !important;
        border-left-width: 1px !important;
        border-top: 3px solid var(--ef-color-turquoise) !important;
        border-radius: var(--ef-radius-md) !important;
        box-shadow: var(--ef-shadow-sm) !important;
    }

    body .ef-category-hero {
        padding: 10px 11px !important;
    }

    body .ef-channel-identity {
        padding: 14px 14px !important;
    }

    body .ef-channel-category-strip {
        border-radius: var(--ef-radius-md) !important;
    }

    body .ef-category-panel,
    body .ef-channel-card,
    body .ef-category-empty-wrap,
    body .ef-channel-empty-wrap {
        border-radius: var(--ef-radius-md) !important;
    }
}

@media (max-width: 390px) {
    body .ef-category-page,
    body .ef-channel-page {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}
