/* =========================================================
   MİSMİŞ HABER - NEWS CARD DESIGNS
   File: /assets/css/card-designs.css
========================================================= */

.mh-news-cards,
.mh-news-cards *,
.mh-news-card,
.mh-news-card * {
    box-sizing: border-box;
}

.mh-news-cards {
    --mh-card-desktop: 3;
    --mh-card-tablet: 2;
    --mh-card-mobile: 1;
    --mh-card-gap: 20px;
    --mh-card-radius: 18px;

    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(var(--mh-card-desktop), minmax(0, 1fr));
    gap: var(--mh-card-gap);
    align-items: stretch;
}

.mh-card-empty {
    width: 100%;
    padding: 38px 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #64748b;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

/* =========================================================
   BASE CARD
========================================================= */

.mh-news-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--mh-card-radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.mh-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
    border-color: #d1d5db;
}

.mh-card-no-shadow .mh-news-card,
.mh-card-no-shadow .mh-news-card:hover {
    box-shadow: none !important;
}

.mh-card-img {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    text-decoration: none !important;
    flex-shrink: 0;
}

.mh-card-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .36s ease;
}

.mh-news-card:hover .mh-card-img img {
    transform: scale(1.055);
}

.mh-card-media-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 5;
    backdrop-filter: blur(8px);
}

/* =========================================================
   IMAGE RATIOS
========================================================= */

.mh-ratio-16-9 .mh-card-img {
    aspect-ratio: 16 / 9;
}

.mh-ratio-4-3 .mh-card-img {
    aspect-ratio: 4 / 3;
}

.mh-ratio-1-1 .mh-card-img {
    aspect-ratio: 1 / 1;
}

.mh-ratio-3-2 .mh-card-img {
    aspect-ratio: 3 / 2;
}

.mh-ratio-21-9 .mh-card-img {
    aspect-ratio: 21 / 9;
}

/* =========================================================
   CONTENT
========================================================= */

.mh-card-body {
    padding: 16px;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mh-card-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.mh-card-cat {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    margin: 0;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--cat-color, #cc1a25);
    color: #ffffff !important;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mh-card-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mh-card-title {
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.025em;
}

.mh-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color .16s ease;
}

.mh-card-title a:hover {
    color: #cc1a25 !important;
}

.mh-card-summary {
    margin: 10px 0 0;
    padding: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.58;
}

.mh-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 13px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.mh-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mh-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.mh-card-action {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .16s ease;
}

.mh-card-action:hover {
    background: #cc1a25;
    border-color: #cc1a25;
    color: #ffffff;
}

/* =========================================================
   LAYOUT TYPES
========================================================= */

.mh-card-layout-list,
.mh-card-layout-compact {
    grid-template-columns: 1fr !important;
}

.mh-card-layout-list .mh-news-card,
.mh-card-layout-compact .mh-news-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 180px;
}

.mh-card-layout-list .mh-card-img,
.mh-card-layout-compact .mh-card-img {
    height: 100%;
    aspect-ratio: auto !important;
}

.mh-card-layout-list .mh-card-body,
.mh-card-layout-compact .mh-card-body {
    justify-content: center;
}

.mh-card-layout-compact .mh-news-card {
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 120px;
}

.mh-card-layout-compact .mh-card-body {
    padding: 12px 14px;
}

.mh-card-layout-compact .mh-card-title {
    font-size: 16px;
}

.mh-card-layout-compact .mh-card-summary,
.mh-card-layout-compact .mh-card-actions {
    display: none;
}

.mh-card-layout-compact .mh-card-meta {
    margin-top: 8px;
    font-size: 11px;
}

.mh-card-layout-masonry {
    align-items: start;
}

.mh-card-layout-masonry .mh-news-card:nth-child(3n+2) .mh-card-img {
    aspect-ratio: 4 / 3;
}

.mh-card-layout-masonry .mh-news-card:nth-child(3n+3) .mh-card-img {
    aspect-ratio: 1 / 1;
}

.mh-card-layout-slider {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    gap: var(--mh-card-gap);
}

.mh-card-layout-slider .mh-news-card {
    width: 330px;
    min-width: 330px;
    scroll-snap-align: start;
}

/* =========================================================
   DESIGN 1 - CLASSIC
========================================================= */

.mh-card-design-1 .mh-news-card {
    background: #ffffff;
}

/* =========================================================
   DESIGN 2 - MODERN SOFT
========================================================= */

.mh-card-design-2 .mh-news-card {
    border: 0;
    border-radius: calc(var(--mh-card-radius) + 6px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .11);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mh-card-design-2 .mh-card-img {
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    border-radius: calc(var(--mh-card-radius) - 2px);
}

.mh-card-design-2 .mh-card-body {
    padding: 18px;
}

.mh-card-design-2 .mh-card-title {
    font-size: 21px;
}

/* =========================================================
   DESIGN 3 - HORIZONTAL
========================================================= */

.mh-card-design-3 {
    grid-template-columns: 1fr !important;
}

.mh-card-design-3 .mh-news-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 190px;
}

.mh-card-design-3 .mh-card-img {
    height: 100%;
    aspect-ratio: auto !important;
}

.mh-card-design-3 .mh-card-body {
    justify-content: center;
    padding: 18px 20px;
}

.mh-card-design-3 .mh-card-title {
    font-size: 22px;
}

.mh-card-design-3 .mh-card-summary {
    max-width: 760px;
}

/* =========================================================
   DESIGN 4 - COMPACT
========================================================= */

.mh-card-design-4 {
    grid-template-columns: 1fr !important;
}

.mh-card-design-4 .mh-news-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 118px;
    border-radius: 16px;
}

.mh-card-design-4 .mh-card-img {
    height: 100%;
    aspect-ratio: auto !important;
}

.mh-card-design-4 .mh-card-body {
    padding: 11px 13px;
    justify-content: center;
}

.mh-card-design-4 .mh-card-labels {
    margin-bottom: 7px;
}

.mh-card-design-4 .mh-card-cat,
.mh-card-design-4 .mh-card-type {
    min-height: 20px;
    padding: 0 8px;
    font-size: 9px;
}

.mh-card-design-4 .mh-card-title {
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: -.015em;
}

.mh-card-design-4 .mh-card-summary,
.mh-card-design-4 .mh-card-actions {
    display: none;
}

.mh-card-design-4 .mh-card-meta {
    margin-top: 8px;
    font-size: 11px;
}

/* =========================================================
   DESIGN 5 - OVERLAY HERO
========================================================= */

.mh-card-design-5 .mh-news-card {
    min-height: 300px;
    background: #0f172a;
    isolation: isolate;
}

.mh-card-design-5 .mh-card-img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto !important;
    z-index: 1;
}

.mh-card-design-5 .mh-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(15,23,42,.04) 0%, rgba(15,23,42,.62) 56%, rgba(15,23,42,.98) 100%);
}

.mh-card-design-5 .mh-card-img img {
    height: 100%;
}

.mh-card-design-5 .mh-card-media-badge {
    top: 14px;
    right: 14px;
    bottom: auto;
}

.mh-card-design-5 .mh-card-body {
    position: relative;
    z-index: 3;
    min-height: 300px;
    justify-content: flex-end;
    padding: 22px;
}

.mh-card-design-5 .mh-card-cat {
    background: #ffffff;
    color: #0f172a !important;
}

.mh-card-design-5 .mh-card-type {
    background: rgba(255,255,255,.16);
    color: #fff;
}

.mh-card-design-5 .mh-card-title,
.mh-card-design-5 .mh-card-title a {
    color: #ffffff !important;
}

.mh-card-design-5 .mh-card-title {
    font-size: 24px;
}

.mh-card-design-5 .mh-card-title a:hover {
    color: #fbbf24 !important;
}

.mh-card-design-5 .mh-card-summary,
.mh-card-design-5 .mh-card-meta {
    color: rgba(255, 255, 255, .78);
}

/* =========================================================
   DESIGN 6 - NUMBERED LIST
========================================================= */

.mh-card-design-6 {
    grid-template-columns: 1fr !important;
}

.mh-card-design-6 .mh-news-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
    min-height: 124px;
    border-radius: 18px;
}

.mh-card-design-6 .mh-card-number {
    grid-row: 1 / 2;
    background: #0f172a;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-card-design-6 .mh-card-img {
    display: none;
}

.mh-card-design-6 .mh-card-body {
    padding: 16px 18px;
    justify-content: center;
}

.mh-card-design-6 .mh-card-cat {
    background: transparent;
    color: var(--cat-color, #cc1a25) !important;
    padding: 0;
    min-height: auto;
    border-radius: 0;
}

.mh-card-design-6 .mh-card-type {
    display: none;
}

.mh-card-design-6 .mh-card-title {
    font-size: 18px;
}

/* =========================================================
   DESIGN 7 - MINIMAL
========================================================= */

.mh-card-design-7 .mh-news-card {
    box-shadow: none;
    border-color: #e5e7eb;
    background: #ffffff;
}

.mh-card-design-7 .mh-news-card:hover {
    border-color: #cc1a25;
    box-shadow: none;
}

.mh-card-design-7 .mh-card-img {
    display: none;
}

.mh-card-design-7 .mh-card-body {
    padding: 22px;
}

.mh-card-design-7 .mh-card-cat {
    background: transparent;
    color: var(--cat-color, #cc1a25) !important;
    padding: 0;
    min-height: auto;
    font-size: 12px;
    border-radius: 0;
}

.mh-card-design-7 .mh-card-type {
    background: #f8fafc;
}

.mh-card-design-7 .mh-card-title {
    font-size: 22px;
}

.mh-card-design-7 .mh-card-summary {
    color: #475569;
}

/* =========================================================
   DESIGN 8 - DARK PREMIUM
========================================================= */

.mh-card-design-8 .mh-news-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 18px 46px rgba(2, 6, 23, .28);
}

.mh-card-design-8 .mh-news-card:hover {
    border-color: #334155;
}

.mh-card-design-8 .mh-card-body {
    background: #0f172a;
}

.mh-card-design-8 .mh-card-title,
.mh-card-design-8 .mh-card-title a {
    color: #ffffff !important;
}

.mh-card-design-8 .mh-card-title a:hover {
    color: #fbbf24 !important;
}

.mh-card-design-8 .mh-card-summary,
.mh-card-design-8 .mh-card-meta {
    color: #94a3b8;
}

.mh-card-design-8 .mh-card-type {
    background: #1e293b;
    color: #cbd5e1;
}

.mh-card-design-8 .mh-card-action {
    background: #111827;
    border-color: #334155;
    color: #ffffff;
}

.mh-card-design-8 .mh-card-action:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
}

/* =========================================================
   DESIGN 9 - MAGAZINE
========================================================= */

.mh-card-design-9 .mh-news-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.mh-card-design-9 .mh-card-img {
    border-radius: 0;
}

.mh-card-design-9 .mh-card-body {
    padding: 16px 0 8px;
    border-bottom: 4px solid #0f172a;
}

.mh-card-design-9 .mh-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: -.035em;
}

.mh-card-design-9 .mh-card-cat {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* =========================================================
   DESIGN 10 - SOCIAL CARD
========================================================= */

.mh-card-design-10 .mh-news-card {
    border-radius: 22px;
}

.mh-card-design-10 .mh-card-body {
    padding: 17px;
}

.mh-card-design-10 .mh-card-actions {
    padding-top: 13px;
    border-top: 1px solid #e5e7eb;
    justify-content: space-between;
}

.mh-card-design-10 .mh-card-action {
    flex: 1;
    width: auto;
    border-radius: 12px;
    font-weight: 900;
}

/* =========================================================
   SEARCH PAGE FIX
========================================================= */

.mh-search-card-results {
    width: 100%;
    display: block;
}

.mh-search-card-results .mh-news-cards {
    width: 100%;
}

.mh-search-card-results .mh-card-layout-list,
.mh-search-card-results .mh-card-layout-compact,
.mh-search-card-results .mh-card-design-3,
.mh-search-card-results .mh-card-design-4,
.mh-search-card-results .mh-card-design-6 {
    grid-template-columns: 1fr !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .mh-news-cards {
        grid-template-columns: repeat(var(--mh-card-tablet), minmax(0, 1fr));
    }

    .mh-card-layout-list .mh-news-card,
    .mh-card-design-3 .mh-news-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .mh-card-layout-compact .mh-news-card {
        grid-template-columns: 135px minmax(0, 1fr);
    }

    .mh-card-design-3 .mh-card-title {
        font-size: 20px;
    }
}

@media (max-width: 760px) {
    .mh-news-cards {
        grid-template-columns: repeat(var(--mh-card-mobile), minmax(0, 1fr));
    }

    .mh-card-layout-list .mh-news-card,
    .mh-card-design-3 .mh-news-card {
        grid-template-columns: 1fr;
    }

    .mh-card-layout-list .mh-card-img,
    .mh-card-design-3 .mh-card-img {
        height: auto;
        aspect-ratio: 16 / 9 !important;
    }

    .mh-card-layout-compact .mh-news-card,
    .mh-card-design-4 .mh-news-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .mh-card-layout-compact .mh-card-img,
    .mh-card-design-4 .mh-card-img {
        height: 100%;
        aspect-ratio: auto !important;
    }

    .mh-card-title {
        font-size: 18px;
    }

    .mh-card-design-5 .mh-news-card,
    .mh-card-design-5 .mh-card-body {
        min-height: 250px;
    }

    .mh-card-design-5 .mh-card-title {
        font-size: 21px;
    }

    .mh-card-design-9 .mh-card-title {
        font-size: 21px;
    }
}

@media (max-width: 520px) {
    .mh-news-cards {
        gap: 14px;
    }

    .mh-card-body {
        padding: 14px;
    }

    .mh-card-title {
        font-size: 17px;
    }

    .mh-card-summary {
        font-size: 13px;
    }

    .mh-card-meta {
        font-size: 11px;
    }

    .mh-card-layout-compact .mh-news-card,
    .mh-card-design-4 .mh-news-card {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 104px;
    }

    .mh-card-design-4 .mh-card-body,
    .mh-card-layout-compact .mh-card-body {
        padding: 10px 11px;
    }

    .mh-card-design-4 .mh-card-title,
    .mh-card-layout-compact .mh-card-title {
        font-size: 14px;
    }

    .mh-card-design-4 .mh-card-meta,
    .mh-card-layout-compact .mh-card-meta {
        display: none;
    }

    .mh-card-design-6 .mh-news-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .mh-card-design-6 .mh-card-number {
        font-size: 20px;
    }

    .mh-card-design-6 .mh-card-body {
        padding: 13px 14px;
    }

    .mh-card-design-5 .mh-news-card,
    .mh-card-design-5 .mh-card-body {
        min-height: 230px;
    }
}