/* ============================================================
   Anasayfa
   ============================================================ */

/* Sabit menü altında kalmasın */
#moduller {
    scroll-margin-top: 60px;
}

/* ── Referans videoları ── */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.ref-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(150deg, #2b3037 0%, #20242a 55%, #181b1f 100%);
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    -webkit-appearance: none;
    appearance: none;
}
.ref-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}
.ref-media:focus-visible {
    outline: 2px solid var(--ms-red);
    outline-offset: 3px;
}
.ref-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}
.ref-play {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ms-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(186, 0, 19, 0.55);
    transition:
        transform 0.28s ease,
        background 0.28s ease;
    pointer-events: none;
}
.ref-play .material-symbols-outlined {
    font-size: 28px;
    margin-left: 2px;
}
.ref-play::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation: refPulse 2.6s ease-out infinite;
}
.ref-media:hover .ref-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--ms-red-hover);
}
@keyframes refPulse {
    0% {
        transform: scale(0.82);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}
.ref-dur {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ms-font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.ref-dur .material-symbols-outlined {
    font-size: 13px;
}
.ref-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 15px 15px;
    pointer-events: none;
}
.ref-quote {
    font-family: var(--ms-font-body);
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ref-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.ref-name {
    font-family: var(--ms-font-heading);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.ref-name b {
    font-weight: 800;
}
.ref-brand {
    font-family: var(--ms-font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 7px;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
/* video lightbox */
.rv-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 11, 13, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.rv-overlay.open {
    display: flex;
    opacity: 1;
}
.rv-dialog {
    position: relative;
    width: 100%;
    max-width: 880px;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv-overlay.open .rv-dialog {
    transform: none;
}
.rv-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.rv-frame iframe,
.rv-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.rv-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(150deg, #24282e, #141619);
}
.rv-ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.4) blur(2px);
    transform: scale(1.1);
}
.rv-ph-c {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-family: var(--ms-font-heading);
}
.rv-ph-c .material-symbols-outlined {
    font-size: 46px;
    color: #fff;
    background: var(--ms-red);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(186, 0, 19, 0.5);
}
.rv-ph-c .cap {
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
}
.rv-cap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: #fff;
    font-family: var(--ms-font-heading);
}
.rv-cap .n {
    font-size: 15px;
    font-weight: 700;
}
.rv-cap .b {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 3px 9px;
    border-radius: 999px;
}
.rv-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #17191c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}
.rv-close:hover {
    transform: scale(1.08);
}
@media (max-width: 900px) {
    .ref-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 620px) {
    .ref-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rv-close {
        top: 8px;
        right: 8px;
    }
}
@media (max-width: 400px) {
    .ref-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ── Hero: B2B portal mockup ── */
.hm {
    position: relative;
    font-family: var(--ms-font-body);
}
.hm-glow {
    position: absolute;
    inset: -12% -9% -16% -9%;
    background: radial-gradient(56% 56% at 72% 12%, rgba(186, 0, 19, 0.13), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}
.hm-win {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 38px 74px -24px rgba(18, 20, 23, 0.34),
        0 10px 26px rgba(18, 20, 23, 0.06);
}
.hm-chrome {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #f1f1f0;
    border-bottom: 1px solid #e8e8e7;
}
.hm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.hm-url {
    margin-left: 8px;
    flex: 1;
    max-width: 215px;
    background: #fff;
    border: 1px solid #e3e3e2;
    border-radius: 6px;
    padding: 4px 10px;
    font: 500 10.5px var(--ms-font-body);
    color: #9a9a9a;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}
/* utility strip */
.hm-util {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 14px;
    background: #f6f4f4;
    border-bottom: 1px solid #eee;
    font-size: 8.5px;
    color: #8a8f93;
    font-weight: 600;
}
.hm-util .hm-ship {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1aa356;
}
.hm-util .hm-fx {
    display: flex;
    gap: 9px;
    color: #9a9a9a;
}
/* store header */
.hm-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: var(--ms-dark);
}
.hm-logo {
    font: 800 14.5px var(--ms-font-heading);
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.hm-logo b {
    color: #e31e24;
    font-weight: 800;
}
.hm-search {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 27px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 7px;
}
.hm-search .ms {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.hm-search span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-pill {
    font: 700 9px var(--ms-font-heading);
    color: #cfd2d5;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 7px;
    flex-shrink: 0;
}
.hm-cart {
    position: relative;
    display: flex;
    flex-shrink: 0;
}
.hm-cart .ms {
    font-size: 19px;
    color: #fff;
}
.hm-cart .badge {
    position: absolute;
    top: -6px;
    right: -7px;
    background: #e31e24;
    color: #fff;
    font: 800 8px var(--ms-font-heading);
    line-height: 1;
    border-radius: 999px;
    padding: 2px 4px;
}
/* body */
.hm-body {
    display: grid;
    grid-template-columns: 112px 1fr;
    background: #fbfbfb;
}
.hm-side {
    padding: 12px 9px;
    border-right: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hm-side .lbl {
    font: 800 8px var(--ms-font-heading);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #bbb;
    margin: 0 0 5px 5px;
}
.hm-cat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 7px;
    font: 600 9.5px var(--ms-font-heading);
    color: #5f6469;
}
.hm-cat .ms {
    font-size: 13px;
    color: #9aa0a6;
}
.hm-cat.on {
    background: #fff0f1;
    color: var(--ms-red);
}
.hm-cat.on .ms {
    color: var(--ms-red);
}
.hm-main {
    padding: 12px;
}
/* opportunity banner */
.hm-banner {
    position: relative;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(115deg, var(--ms-red), #e31e24);
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.hm-banner .c1 {
    position: absolute;
    right: -26px;
    top: -30px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}
.hm-banner .c2 {
    position: absolute;
    right: 24px;
    bottom: -24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.hm-banner .ey {
    position: relative;
    font: 700 8px var(--ms-font-heading);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 5px;
}
.hm-banner .hd {
    position: relative;
    font: 800 15px var(--ms-font-heading);
    line-height: 1.18;
    margin-bottom: 9px;
}
.hm-banner .bt {
    position: relative;
    display: inline-block;
    background: #fff;
    color: var(--ms-red);
    font: 700 9.5px var(--ms-font-heading);
    border-radius: 7px;
    padding: 5px 11px;
}
/* quick actions */
.hm-qa {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.hm-qa > div {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 9px;
    padding: 8px 5px;
    text-align: center;
}
.hm-qa .ms {
    font-size: 15px;
}
.hm-qa .t {
    font: 700 7px var(--ms-font-heading);
    color: #555;
    margin-top: 3px;
    letter-spacing: -0.01em;
}
/* section head */
.hm-sh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.hm-sh .h {
    font: 800 11px var(--ms-font-heading);
    color: var(--ms-dark);
}
.hm-sh .a {
    font: 600 9px var(--ms-font-heading);
    color: #aaa;
}
/* secondary nav */
.hm-nav2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 14px;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.hm-nav2 a {
    font: 600 9.5px var(--ms-font-heading);
    color: #6a6f73;
    white-space: nowrap;
}
.hm-nav2 a.on {
    color: var(--ms-red);
    font-weight: 700;
}
/* products */
.hm-prods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hm-prod {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hm-prod .thumb {
    position: relative;
    height: 108px;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
}
.hm-prod .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.hm-prod .thumb .ph {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #f5f6f7, #e9ebec);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-prod .thumb .ph svg {
    width: 42px;
    height: 42px;
}
.hm-prod .vb {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    background: rgba(30, 33, 36, 0.82);
    color: #fff;
    font: 700 6.5px var(--ms-font-heading);
    border-radius: 5px;
    padding: 2px 5px;
}
.hm-prod .pb {
    padding: 8px 9px 9px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hm-prod .sku {
    font: 700 7px var(--ms-font-body);
    color: #b0b4b8;
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}
.hm-prod .nm {
    font: 600 9px var(--ms-font-heading);
    color: #2a2e31;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 23px;
}
.hm-prod .pr {
    font: 800 12px var(--ms-font-heading);
    color: var(--ms-red);
    margin-top: auto;
}
/* floating cards */
.hm-float {
    position: absolute;
    z-index: 3;
}
.hm-toast {
    left: -32px;
    bottom: -26px;
    background: #fff;
    border-radius: 13px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 18px 44px rgba(18, 20, 23, 0.17);
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hm-toast .ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #e7f8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hm-toast .ic .ms {
    font-size: 17px;
    color: #1aa356;
}
.hm-toast .t1 {
    font: 800 11px var(--ms-font-heading);
    color: var(--ms-dark);
}
.hm-toast .t2 {
    font: 500 9.5px var(--ms-font-body);
    color: #9a9a9a;
    margin-top: 1px;
}
.hm-chip {
    right: -16px;
    top: -16px;
    background: var(--ms-red);
    color: #fff;
    border-radius: 13px;
    box-shadow: 0 18px 44px rgba(186, 0, 19, 0.3);
    padding: 10px 14px;
}
.hm-chip .v {
    font: 800 18px var(--ms-font-heading);
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}
.hm-chip .l {
    font: 600 8.5px var(--ms-font-heading);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}
.hero-section {
    overflow-x: clip;
}
@media (max-width: 880px) {
    .hm {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    /* Mockup içeriği dar ekranda pencerenin dışına taşmasın */
    .hm-body > * {
        min-width: 0;
    }
}
@media (max-width: 560px) {
    .hm-body {
        grid-template-columns: 1fr;
    }
    .hm-side {
        display: none;
    }
    .hm-prods {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .hm-float {
        display: none !important;
    }
}

/* ── Ürün turu ── */
.tour-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto 40px auto;
    background: #f3f3f3;
    border-radius: 12px;
    padding: 6px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    overflow: hidden;
}
.tour-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--ms-font-heading);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}
.tour-panel {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
@media (max-width: 760px) {
    /* Sekmeler sığmadığında yatay kaydırılabilir şerit */
    .tour-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .tour-tabs::-webkit-scrollbar {
        display: none;
    }
    .tour-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .tour-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* ── Yapay zeka: sol tanıtım sütunu ── */
.ai-intro {
    position: sticky;
    top: 100px;
}
@media (max-width: 760px) {
    /* Tek sütunda yapışkan kalırsa alttaki kartların üzerine biner */
    .ai-intro {
        position: static;
    }
}

/* ── Blog kartları ── */
.teaser-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    transition: box-shadow 0.2s;
}
.teaser-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.teaser-cover {
    width: 80px;
    height: 110px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.teaser-cover .material-symbols-outlined {
    font-size: 32px;
    margin-bottom: 4px;
}
.teaser-cover__label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}
.teaser-cover--red {
    background: linear-gradient(145deg, var(--ms-red), #e31e24);
    box-shadow: 0 8px 24px rgba(186, 0, 19, 0.3);
}
.teaser-cover--dark {
    background: linear-gradient(145deg, #111, #2a2a2a);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.teaser-cover--green {
    background: linear-gradient(145deg, #1a4a1a, #2a7a2a);
    box-shadow: 0 8px 24px rgba(0, 100, 0, 0.2);
}
.teaser-cover--blue {
    background: linear-gradient(145deg, #0a2a4a, #1a4a7a);
    box-shadow: 0 8px 24px rgba(0, 30, 80, 0.25);
}
.teaser-body {
    flex: 1;
    min-width: 0;
}
.teaser-cat {
    display: block;
    font-family: var(--ms-font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--ms-red);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.teaser-title {
    font-weight: 800;
    font-size: 19px;
    color: var(--ms-dark);
    line-height: 1.25;
    margin-bottom: 8px;
}
.teaser-text {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    margin-bottom: 18px;
}
.teaser-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.teaser-btn {
    font-size: 12px;
    padding: 9px 18px;
}
.btn-ghost.teaser-btn {
    padding: 8px 18px;
}
.teaser-time {
    font-size: 11px;
    color: #bbb;
}
@media (max-width: 520px) {
    .teaser-card {
        flex-direction: column;
        padding: 28px 24px;
        gap: 18px;
    }
}

/* ── Ücretsiz rehber ── */
.guide-cta {
    background: linear-gradient(135deg, #111 0%, #1e1e1e 50%, #111 100%);
    border-radius: 20px;
    padding: 48px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.guide-cta__book {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
@media (max-width: 760px) {
    .guide-cta {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 24px;
        gap: 32px;
    }
    .guide-cta__book {
        justify-self: center;
    }
}
