/* =========================================================
   MEDYABİR PRO - MANŞET MODÜLÜ
   Dosya: modules/manset/style.css
========================================================= */

/* =========================================================
   ANA KAPSAYICI
========================================================= */

.manset-module-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 24px auto 28px auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.container .manset-module-wrapper,
.container > .manset-module-wrapper {
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.container.manset-module-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   ANA GRID
========================================================= */

.headline-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 20px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* =========================================================
   ANA MANŞET ALANI
========================================================= */

.manset-container {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 550px;
    flex-direction: column;
    gap: 8px;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.manset-main {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100% - 52px);
    border-radius: var(--radius-md, 6px);
    overflow: hidden !important;
    position: relative;
    background: #000000;
    box-shadow: var(--shadow-md, 0 4px 10px rgba(0,0,0,0.08));
    display: block !important;
}

.manset-main .swiper,
.manset-main .swiper-wrapper,
.manset-main .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
}

.manset-main .swiper-wrapper {
    display: flex !important;
}

.manset-main .swiper-slide {
    display: block !important;
    position: relative;
}

.manset-main .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.manset-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.manset-main .swiper-slide:hover img {
    transform: scale(1.04);
}

/* =========================================================
   GRADIENT YAZI ALANI
========================================================= */

.manset-overlay {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    min-height: 42%;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.96) 0%,
            rgba(0,0,0,0.72) 48%,
            rgba(0,0,0,0) 100%
        );
    padding: 72px 24px 26px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    box-sizing: border-box;
}

.manset-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.manset-cat {
    background: var(--primary, #c8102e);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.24);
}

.manset-sd-badge {
    background: #facc15;
    color: #000000;
    font-size: 12px;
    font-weight: 950;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.22);
}

.manset-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1.14;
    text-transform: uppercase;
    text-shadow: 2px 2px 7px rgba(0,0,0,0.95);
    margin: 0;
    letter-spacing: -0.6px;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   NUMARA PAGINATION
========================================================= */

.manset-pagination-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px;
    min-height: 44px;
    display: flex !important;
    background: #ffffff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 6px);
    overflow: hidden !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
    box-sizing: border-box;
}

.manset-pagination-wrapper .swiper-pagination-bullet {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    color: var(--text-muted, #64748b);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.manset-pagination-wrapper .swiper-pagination-bullet:nth-child(n+21) {
    display: none !important;
}

.manset-pagination-wrapper .swiper-pagination-bullet:last-child {
    border-right: none;
}

.manset-pagination-wrapper .swiper-pagination-bullet:hover {
    background: #f8fafc;
    color: var(--primary, #c8102e);
}

.manset-pagination-wrapper .swiper-pagination-bullet-active {
    background: var(--primary, #c8102e);
    color: #ffffff;
    font-weight: 950;
    border-color: var(--primary, #c8102e);
}

/* =========================================================
   OKLAR
========================================================= */

.manset-main .swiper-button-next,
.manset-main .swiper-button-prev {
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.24);
}

.manset-main:hover .swiper-button-next,
.manset-main:hover .swiper-button-prev {
    opacity: 1;
}

.manset-main .swiper-button-next:hover,
.manset-main .swiper-button-prev:hover {
    background: var(--primary, #c8102e);
    color: #ffffff;
    transform: scale(1.08);
}

.manset-main .swiper-button-next::after,
.manset-main .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 900;
}

/* =========================================================
   SAĞ SÜTUN
========================================================= */

.manset-right-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.headline-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    height: 550px;
    min-height: 470px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.headline-side-card {
    flex: 1 1 0% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0;
    position: relative;
    border-radius: var(--radius-md, 6px);
    overflow: hidden;
    background: #000000;
    display: block;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid transparent;
    box-sizing: border-box !important;
}

.headline-side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary, #c8102e);
}

.headline-side-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.6s ease, opacity 0.3s ease;
    position: absolute;
    inset: 0;
}

.headline-side-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.headline-side-content {
    position: absolute;
    inset: auto 0 0 0;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.95) 0%,
            rgba(0,0,0,0.62) 62%,
            transparent 100%
        );
    padding: 48px 15px 15px 15px;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box !important;
}

.headline-side-cat {
    background: var(--primary, #c8102e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.headline-side-title {
    color: #ffffff;
    font-size: 1.10rem;
    font-weight: 850;
    line-height: 1.32;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.86);
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.headline-side-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.headline-side-ad iframe,
.headline-side-ad ins,
.headline-side-ad div {
    max-width: 100%;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .manset-module-wrapper,
    .container .manset-module-wrapper,
    .container > .manset-module-wrapper,
    .container.manset-module-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 24px auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    .headline-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    .manset-container {
        order: 1 !important;
        display: flex !important;
        height: 450px;
    }

    .manset-right-col {
        order: 2 !important;
        display: flex !important;
    }

    .headline-sidebar {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px;
        margin-top: 0;
        height: 220px;
        min-height: 220px;
    }

    .headline-side-card {
        width: 50%;
        height: 100%;
        flex: 1 1 0;
    }

    .manset-title {
        font-size: 1.7rem;
    }
}

/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 768px) {
    .manset-module-wrapper,
    .container .manset-module-wrapper,
    .container > .manset-module-wrapper,
    .container.manset-module-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px auto 22px auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .headline-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .manset-container {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 8px !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .manset-main {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        flex: 0 0 250px !important;
        border-radius: var(--radius-md, 6px);
        overflow: hidden !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .manset-main .swiper-wrapper {
        display: flex !important;
        height: 100% !important;
    }

    /* BURADAKİ visibility ve opacity EZMELERİ SİLİNDİ */
    .manset-main .swiper-slide {
        display: block !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    .manset-main .swiper-slide a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .manset-main .swiper-slide img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
    }

    .manset-overlay {
        min-height: 58%;
        padding: 50px 14px 15px 14px;
    }

    .manset-badges {
        gap: 6px;
        margin-bottom: 8px;
    }

    .manset-cat,
    .manset-sd-badge {
        font-size: 10px;
        padding: 4px 8px;
        border-radius: 3px;
    }

    .manset-title {
        font-size: 1.08rem;
        line-height: 1.22;
        letter-spacing: -0.2px;
        max-width: 96%;
        -webkit-line-clamp: 3;
    }

    .manset-pagination-wrapper {
        order: 2 !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        flex: 0 0 38px !important;
        border-radius: var(--radius-md, 6px);
        margin-top: 2px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        position: relative !important;
        z-index: 3 !important;
        background: #ffffff !important;
    }

    .manset-pagination-wrapper::-webkit-scrollbar {
        display: none;
    }

    .manset-pagination-wrapper .swiper-pagination-bullet {
        min-width: 34px !important;
        flex: 0 0 34px !important;
        height: 100% !important;
        font-size: 12px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .manset-pagination-wrapper .swiper-pagination-bullet:nth-child(n+16) {
        display: none !important;
    }

    .manset-main .swiper-button-next,
    .manset-main .swiper-button-prev {
        display: none !important;
    }

    .manset-right-col {
        order: 2 !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .headline-sidebar {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .headline-side-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9;
        position: relative;
        height: 200px;
        min-height: 200px;
        border-radius: var(--radius-md, 6px);
    }

    .headline-side-content {
        padding: 42px 13px 13px 13px;
    }

    .headline-side-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
}

/* =========================================================
   KÜÇÜK MOBİL
========================================================= */

@media (max-width: 420px) {
    .manset-main {
        height: 230px !important;
        min-height: 230px !important;
        flex-basis: 230px !important;
    }

    .manset-title {
        font-size: 1rem;
    }

    .headline-side-card {
        height: 185px;
        min-height: 185px;
    }

    .headline-side-title {
        font-size: 0.95rem;
    }
}