/*
 * EnFavori Design System — Discovery Standard
 * --------------------------------------------
 * Bu dosya artık yalnız kategori arşiv/detay sayfalarının ortak tasarım kaynağıdır.
 * Kanal ve Kanallar sayfaları kendi Blade kaynaklarındaki tasarımla çalışır.
 */

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);
    color: var(--ef-color-text);
    font-family: var(--ef-font-sans);
    margin-bottom: var(--ef-space-6) !important;
}

/* ================================================================
   KATEGORİ DETAY HERO — AÇIK / KURUMSAL / KOMPAKT
   ================================================================ */
body .ef-category-page .ef-category-hero {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    min-height: 138px !important;
    margin-bottom: 14px !important;
    padding: 20px 24px !important;
    color: var(--ef-color-navy) !important;
    background:
        radial-gradient(circle at 88% 44%, rgba(24, 191, 177, .09) 0%, rgba(24, 191, 177, .025) 38%, transparent 70%),
        linear-gradient(118deg, #ffffff 0%, #f8fbfe 58%, #eef9f7 100%) !important;
    border: 1px solid #d8e5ed !important;
    border-left: 5px solid var(--ef-color-turquoise) !important;
    border-top: 1px solid #d8e5ed !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 20px rgba(20, 40, 68, .055) !important;
}

body .ef-category-page .ef-category-hero::after {
    background: transparent !important;
}

body .ef-category-page .ef-category-hero-icon {
    width: 68px !important;
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1fd1c1 !important;
    background: var(--ef-color-navy) !important;
    border: 1px solid #203b5d !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 18px rgba(20, 40, 68, .14) !important;
}

body .ef-category-page .ef-category-hero-icon i {
    color: #1fd1c1 !important;
    font-size: 25px !important;
}

body .ef-category-page .ef-category-eyebrow {
    color: #0c8f84 !important;
    font-family: var(--ef-font-sans) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

body .ef-category-page .ef-category-eyebrow i {
    color: #0da89b !important;
}

body .ef-category-page .ef-category-title-main {
    color: var(--ef-color-navy) !important;
    font-family: var(--ef-font-sans) !important;
    font-size: clamp(28px, 2.35vw, 35px) !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
}

body .ef-category-page .ef-category-description {
    max-width: 860px !important;
    color: #586d81 !important;
    font-family: var(--ef-font-sans) !important;
    font-size: 12.7px !important;
    font-weight: 600 !important;
    line-height: 1.46 !important;
}

body .ef-category-page .ef-category-hero-stats {
    gap: 7px !important;
}

body .ef-category-page .ef-category-hero-stat {
    min-height: 31px !important;
    padding: 0 10px !important;
    color: #365066 !important;
    background: #f5f9fb !important;
    border: 1px solid #d9e5ec !important;
    border-radius: 8px !important;
    font-family: var(--ef-font-sans) !important;
    font-weight: 800 !important;
}

body .ef-category-page .ef-category-hero-stat i {
    color: #0da89b !important;
}

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

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

/* Ortak yüzey dili */
body .ef-category-panel,
body .ef-category-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-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 {
    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 {
    color: var(--ef-color-turquoise-dark) !important;
}

body .ef-category-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 {
    transition: transform 0.22s ease !important;
}

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

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

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

body .ef-category-metric-participation {
    color: #087d72 !important;
    background: var(--ef-color-success-soft) !important;
}

/* Aksiyonlar */
body .ef-category-vote-link {
    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 {
    background: var(--ef-color-turquoise-dark) !important;
    border-color: var(--ef-color-turquoise-dark) !important;
}

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

body .ef-category-vote-link.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 {
    border-color: var(--ef-color-border) !important;
    border-radius: var(--ef-radius-md) !important;
}

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

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

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

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

@media (max-width: 1199.98px) {
    body .ef-category-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 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 767.98px) {
    body .ef-category-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-page .ef-category-hero {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 10px !important;
        min-height: 0 !important;
        margin-top: 8px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
        border-left: 4px solid var(--ef-color-turquoise) !important;
        border-top: 1px solid #d8e5ed !important;
        border-radius: 12px !important;
        box-shadow: var(--ef-shadow-sm) !important;
    }

    body .ef-category-page .ef-category-hero-icon {
        width: 46px !important;
        height: 46px !important;
        border-radius: 12px !important;
    }

    body .ef-category-page .ef-category-hero-icon i {
        font-size: 18px !important;
    }

    body .ef-category-page .ef-category-title-main {
        font-size: 20px !important;
    }

    body .ef-category-page .ef-category-description {
        font-size: 10.7px !important;
        line-height: 1.42 !important;
    }

    body .ef-category-page .ef-category-hero-stat {
        min-height: 27px !important;
        padding: 0 8px !important;
        font-size: 9.2px !important;
    }

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

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

/* ================================================================
   ŞU AN NEREDEYİM — BANNER + GERÇEK AKSİYON ALANI
   ================================================================ */
body .ef-current-page .ef-current-cover {
    margin: 0 0 9px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #d9e6ed !important;
    border-radius: 14px !important;
    box-shadow: 0 7px 20px rgba(20, 40, 68, .05) !important;
}

body .ef-current-page .ef-current-cover img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

body .ef-current-page .ef-current-hero {
    display: grid !important;
    grid-template-columns: 40px minmax(260px, 1fr) auto !important;
    grid-template-areas:
        "icon copy toolbar"
        "icon privacy toolbar" !important;
    gap: 4px 13px !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 10px 13px !important;
    background: linear-gradient(118deg, #fff 0%, #fbfdfe 68%, #f1faf8 100%) !important;
    border: 1px solid #d9e6ed !important;
    border-left: 4px solid #18bfb1 !important;
    border-radius: 13px !important;
    box-shadow: 0 5px 16px rgba(20, 40, 68, .04) !important;
}

body .ef-current-page .ef-current-icon {
    grid-area: icon !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 40px !important;
    height: 40px !important;
    align-self: center !important;
    border-width: 1px !important;
    border-radius: 11px !important;
    box-shadow: 0 5px 12px rgba(198, 40, 40, .17) !important;
}

body .ef-current-page .ef-current-icon i {
    font-size: 18px !important;
}

body .ef-current-page .ef-current-copy {
    grid-area: copy !important;
    grid-column: auto !important;
    min-width: 0 !important;
}

body .ef-current-page .ef-current-eyebrow {
    display: none !important;
}

body .ef-current-page .ef-current-title {
    margin: 0 !important;
    font-size: 16.5px !important;
    line-height: 1.15 !important;
    letter-spacing: -.2px !important;
}

body .ef-current-page .ef-current-lead {
    max-width: 760px !important;
    margin: 3px 0 0 !important;
    color: #607488 !important;
    font-size: 10.8px !important;
    line-height: 1.38 !important;
}

body .ef-current-page .ef-current-toolbar {
    grid-area: toolbar !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin: 0 !important;
}

body .ef-current-page .ef-current-action,
body .ef-current-page .ef-current-share-wrap .ef-action-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
}

body .ef-current-page .ef-current-privacy {
    grid-area: privacy !important;
    grid-column: auto !important;
    gap: 6px !important;
    color: #718398 !important;
    font-size: 9.3px !important;
    line-height: 1.35 !important;
}

body .ef-current-page .ef-current-shortcuts {
    gap: 8px 18px !important;
    margin-top: 8px !important;
    padding: 8px 11px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(20, 40, 68, .03) !important;
    font-size: 9.8px !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body .ef-current-page .ef-current-hero {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        grid-template-areas:
            "icon copy"
            "toolbar toolbar"
            "privacy privacy" !important;
        gap: 6px 11px !important;
    }

    body .ef-current-page .ef-current-toolbar {
        justify-content: flex-start !important;
        margin-top: 2px !important;
    }
}

@media (max-width: 767.98px) {
    body .ef-current-page .ef-current-cover {
        margin-bottom: 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 14px rgba(20, 40, 68, .04) !important;
    }

    body .ef-current-page .ef-current-hero {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        grid-template-areas:
            "icon copy"
            "toolbar toolbar"
            "privacy privacy" !important;
        gap: 6px 9px !important;
        padding: 9px 10px !important;
        border-left-width: 3px !important;
        border-radius: 10px !important;
    }

    body .ef-current-page .ef-current-icon {
        width: 36px !important;
        height: 36px !important;
        align-self: start !important;
        border-radius: 10px !important;
    }

    body .ef-current-page .ef-current-icon i {
        font-size: 16px !important;
    }

    body .ef-current-page .ef-current-title {
        font-size: 14.5px !important;
    }

    body .ef-current-page .ef-current-lead {
        margin-top: 2px !important;
        font-size: 9.5px !important;
        line-height: 1.35 !important;
    }

    body .ef-current-page .ef-current-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 2px !important;
    }

    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap .ef-action-button {
        width: 100% !important;
        min-height: 38px !important;
        height: 38px !important;
        font-size: 10.5px !important;
    }

    body .ef-current-page .ef-current-find {
        grid-column: 1 / -1 !important;
    }

    body .ef-current-page .ef-current-share-wrap,
    body .ef-current-page .ef-current-share-wrap .ef-share,
    body .ef-current-page .ef-current-share-wrap .ef-action-button {
        width: 100% !important;
    }

    body .ef-current-page .ef-current-privacy {
        font-size: 9px !important;
    }

    body .ef-current-page .ef-current-shortcuts {
        gap: 7px 12px !important;
        margin-top: 7px !important;
        padding: 8px 9px !important;
        font-size: 9.2px !important;
    }
}

/* EF CURRENT LOCATION BANNER BAR FIX V2 */
body .ef-current-page .ef-current-cover{
    width:100% !important;
    aspect-ratio:12 / 5 !important;
    margin:0 0 8px !important;
    overflow:hidden !important;
    background:#fff !important;
    border:1px solid #d9e6ed !important;
    border-radius:12px !important;
    box-shadow:0 5px 16px rgba(20,40,68,.045) !important;
}

body .ef-current-page .ef-current-cover img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:center center !important;
}

body .ef-current-page .ef-current-hero{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:wrap !important;
    gap:7px 12px !important;
    width:100% !important;
    min-height:0 !important;
    padding:8px 10px !important;
    overflow:visible !important;
    background:#fff !important;
    border:1px solid #d9e6ed !important;
    border-left:3px solid #18bfb1 !important;
    border-radius:10px !important;
    box-shadow:0 3px 12px rgba(20,40,68,.035) !important;
}

/* Görsel zaten başlık ve açıklamayı taşıyor; ikinci hero görünmez ama H1 DOM'da kalır. */
body .ef-current-page .ef-current-icon,
body .ef-current-page .ef-current-copy{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

body .ef-current-page .ef-current-toolbar{
    position:static !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex:0 0 auto !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    gap:6px !important;
}

body .ef-current-page .ef-current-action,
body .ef-current-page .ef-current-share-wrap .ef-action-button{
    width:auto !important;
    min-width:0 !important;
    min-height:34px !important;
    height:34px !important;
    margin:0 !important;
    padding:0 11px !important;
    border-radius:8px !important;
    font-size:10.5px !important;
    white-space:nowrap !important;
}

body .ef-current-page .ef-current-share-wrap,
body .ef-current-page .ef-current-share-wrap .ef-share{
    width:auto !important;
    min-width:0 !important;
}

body .ef-current-page .ef-current-privacy{
    position:static !important;
    display:flex !important;
    align-items:center !important;
    flex:0 1 auto !important;
    width:auto !important;
    max-width:560px !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    gap:6px !important;
    color:#718398 !important;
    font-size:9.2px !important;
    line-height:1.3 !important;
}

body .ef-current-page .ef-current-shortcuts{
    margin-top:7px !important;
    padding:7px 10px !important;
    gap:7px 16px !important;
    border-radius:9px !important;
    font-size:9.4px !important;
}

@media(max-width:767.98px){
    body .ef-current-page .ef-current-cover{
        aspect-ratio:16 / 9 !important;
        margin-bottom:7px !important;
        border-radius:9px !important;
    }

    body .ef-current-page .ef-current-cover img{
        object-position:center center !important;
    }

    body .ef-current-page .ef-current-hero{
        display:block !important;
        padding:8px !important;
        border-left-width:3px !important;
        border-radius:9px !important;
    }

    body .ef-current-page .ef-current-toolbar{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        width:100% !important;
        gap:6px !important;
    }

    body .ef-current-page .ef-current-find{
        grid-column:1 / -1 !important;
    }

    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap,
    body .ef-current-page .ef-current-share-wrap .ef-share,
    body .ef-current-page .ef-current-share-wrap .ef-action-button{
        width:100% !important;
    }

    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap .ef-action-button{
        min-height:38px !important;
        height:38px !important;
        font-size:10.5px !important;
    }

    body .ef-current-page .ef-current-privacy{
        width:100% !important;
        max-width:none !important;
        margin:7px 0 0 !important;
        font-size:8.9px !important;
    }

    body .ef-current-page .ef-current-shortcuts{
        margin-top:6px !important;
        padding:7px 8px !important;
        font-size:9px !important;
    }
}

/* EF CURRENT LOCATION BANNER SIZE FIX V3 */
body .ef-current-page .ef-current-cover{
    aspect-ratio:16 / 5 !important;
    max-height:340px !important;
}

body .ef-current-page .ef-current-cover img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
}

@media(max-width:767.98px){
    body .ef-current-page .ef-current-cover{
        aspect-ratio:16 / 7 !important;
        max-height:240px !important;
    }
}

/* EF CURRENT LOCATION BANNER SIZE FIX V4 */
body .ef-current-page .ef-current-cover{
    aspect-ratio:32 / 9 !important;
    max-height:305px !important;
}

body .ef-current-page .ef-current-cover img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
}

@media(max-width:767.98px){
    body .ef-current-page .ef-current-cover{
        aspect-ratio:16 / 6.3 !important;
        max-height:216px !important;
    }
}

/* EF CURRENT LOCATION MOBILE FIX V5 */
@media(max-width:767.98px){
    /* Mobilde kapak görselini kırpma: görselin tamamı görünür. */
    body .ef-current-page .ef-current-cover{
        width:100% !important;
        aspect-ratio:auto !important;
        max-height:none !important;
        margin:0 0 7px !important;
        overflow:hidden !important;
        background:#f8fbfd !important;
        border-radius:10px !important;
    }

    body .ef-current-page .ef-current-cover img{
        display:block !important;
        width:100% !important;
        height:auto !important;
        max-height:none !important;
        object-fit:contain !important;
        object-position:center center !important;
    }

    /* Gerçek aksiyon alanını daha kompakt tut. */
    body .ef-current-page .ef-current-hero{
        display:block !important;
        min-height:0 !important;
        padding:7px !important;
        border-left-width:3px !important;
        border-radius:10px !important;
    }

    body .ef-current-page .ef-current-toolbar{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        width:100% !important;
        gap:6px !important;
        margin:0 !important;
    }

    body .ef-current-page .ef-current-find{
        grid-column:1 / -1 !important;
    }

    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap,
    body .ef-current-page .ef-current-share-wrap .ef-share,
    body .ef-current-page .ef-current-share-wrap .ef-action-button{
        width:100% !important;
        min-width:0 !important;
    }

    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap .ef-action-button{
        min-height:40px !important;
        height:40px !important;
        padding:0 9px !important;
        border-radius:9px !important;
        font-size:11px !important;
    }

    body .ef-current-page .ef-current-privacy{
        display:flex !important;
        align-items:flex-start !important;
        width:100% !important;
        max-width:none !important;
        margin:7px 0 0 !important;
        padding:0 2px !important;
        gap:5px !important;
        font-size:9.2px !important;
        line-height:1.35 !important;
    }

    /* Alt kısayollar dar ekranda taşmadan iki satıra sarılır. */
    body .ef-current-page .ef-current-shortcuts{
        display:flex !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        justify-content:flex-start !important;
        width:100% !important;
        margin-top:6px !important;
        padding:7px 8px !important;
        gap:6px 12px !important;
        font-size:9.4px !important;
        line-height:1.25 !important;
    }
}

@media(max-width:390px){
    body .ef-current-page .ef-current-action,
    body .ef-current-page .ef-current-share-wrap .ef-action-button{
        min-height:38px !important;
        height:38px !important;
        font-size:10.4px !important;
    }

    body .ef-current-page .ef-current-shortcuts{
        gap:6px 10px !important;
        font-size:9px !important;
    }
}

