/* ===========================================================================
   MOBİL MENÜ — logo çubuğunun altındaki şerit (layout/template.php, .mmn)
   ---------------------------------------------------------------------------
   Konum/görünürlük main.css'teki .mobile-sub-navigation'dan gelir (fixed,
   top:67px, mobil kırılımda display:block, kampanya ofseti). Burada yalnız
   şeridin İÇİ çizilir.

   YÜKSEKLİK 64px SABİT — sayfaların üst boşluğu 67 + 64 = 131px'e göre
   hesaplanmış (myp-subnav, crt-hero, contact-ui…). Değiştirme.
   =========================================================================== */

.mmn {
    --mmn-bg: rgba(8, 9, 10, .86);
    --mmn-line: rgba(255, 255, 255, .09);
    --mmn-text: #e9eded;
    --mmn-muted: #8f9696;
    --mmn-accent: #f37a52;
    --mmn-accent-2: #ec387d;
    --mmn-gold: #e8c26a;
    position: relative;
    font-family: "Karla", sans-serif;
}

/* ---------------------------------------------------------------- şerit */
.mmn-dock {
    position: relative;
    z-index: 2;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    background: var(--mmn-bg);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--mmn-line);
    border-bottom: 1px solid var(--mmn-line);
}

.mmn-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 54px;
    min-width: 0;
    padding: 0 2px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--mmn-muted);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background .2s ease;
}
.mmn-slot:focus-visible { outline: 2px solid var(--mmn-accent); outline-offset: -2px; }
.mmn-slot:active { background: rgba(255, 255, 255, .05); }

/* İkon hapı — aktif yuvada tonlanır */
.mmn-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 28px;
    border-radius: 999px;
    transition: background .25s ease, box-shadow .25s ease;
}
.mmn-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmn-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .01em;
    color: inherit;
    /* Etiket kutusu her yuvada aynı yükseklikte: iki satırlı "Mikro
       Yeterlilikler" ikonları yukarı itmesin, beş ikon aynı hizada kalsın. */
    height: 21px;
    line-height: 21px;
    text-align: center;
}
.mmn-label--iki {
    white-space: pre-line;   /* PHP ikinci sözcüğü \n ile alt satıra koyar */
    overflow: visible;
    font-size: 9.5px;
    line-height: 10.5px;
    letter-spacing: 0;
    padding-top: 0;
}

.mmn-slot.is-active { color: #fff; }
.mmn-slot.is-active .mmn-ico {
    color: var(--mmn-accent);
    background: linear-gradient(135deg, rgba(243, 122, 82, .22), rgba(236, 56, 125, .14));
    box-shadow: inset 0 0 0 1px rgba(243, 122, 82, .35);
}
.mmn-slot.is-active .mmn-label { font-weight: 700; }

/* Mikro yuvasının "yeni" noktası — mikro ailesinin altın tonu */
.mmn-dot {
    position: absolute;
    top: 1px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mmn-gold);
    box-shadow: 0 0 0 2px #0b0c0d;
}
.mmn-slot.is-active .mmn-dot { display: none; }

/* Menü düğmesi: ızgara ↔ çarpı */
.mmn-ico-x { display: none; }
.mmn.is-open .mmn-slot--menu { color: #fff; }
.mmn.is-open .mmn-slot--menu .mmn-ico { background: rgba(255, 255, 255, .1); box-shadow: none; color: #fff; }
.mmn.is-open .mmn-ico-grid { display: none; }
.mmn.is-open .mmn-ico-x { display: block; }

/* ---------------------------------------------------------------- panel */
.mmn-panel {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 10px;
}
.mmn-panel[hidden] { display: none; }

.mmn-panel-inner {
    max-width: 520px;          /* yatay telefonda kartlar yayılmasın */
    margin: 8px auto 0;
    padding: 16px 14px 14px;
    border-radius: 20px;
    background: rgba(14, 15, 16, .96);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--mmn-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    animation: mmn-in .22s cubic-bezier(.2, .8, .2, 1);
    /* Kısa ekranda (yatay telefon) panel ekrandan taşmasın, içi kaysın.
       --mmn-ust: panelin üst kenarı, açılışta betik yazar. */
    max-height: calc(100vh - var(--mmn-ust, 131px) - 20px);
    max-height: calc(100dvh - var(--mmn-ust, 131px) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
@keyframes mmn-in {
    from { opacity: 0; transform: translateY(-8px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.mmn-kicker {
    margin: 0 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mmn-muted);
}

.mmn-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mmn-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    min-height: 64px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease;
}
.mmn-card:active { background: rgba(255, 255, 255, .07); }
.mmn-card.is-active { border-color: rgba(243, 122, 82, .5); background: rgba(243, 122, 82, .08); }
.mmn-card--wide { grid-column: 1 / -1; }

.mmn-card-ico {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
}
.mmn-card-ico svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mmn-tone-green { color: #5fd39a; background: rgba(95, 211, 154, .12); }
.mmn-tone-pink  { color: #f27bb0; background: rgba(242, 123, 176, .12); }
.mmn-tone-blue  { color: #7fb2ff; background: rgba(127, 178, 255, .12); }

/* Bulma'nın küresel span/strong renkleri koyu zemine sızmasın: renk açık yazılır */
.mmn-card-t {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mmn-text);
}
.mmn-card-d {
    font-size: 12px;
    line-height: 1.3;
    color: var(--mmn-muted);
}

.mmn-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--mmn-line);
}
.mmn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--mmn-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mmn-link span { color: inherit; }
.mmn-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mmn-link:active { background: rgba(255, 255, 255, .06); }
.mmn-link.is-active { border-color: rgba(243, 122, 82, .55); color: #fff; }

/* Perde: panelin arkasındaki sayfayı karartır, dokununca kapatır */
.mmn-backdrop {
    position: fixed;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    animation: mmn-fade .2s ease;
}
.mmn-backdrop[hidden] { display: none; }
@keyframes mmn-fade { from { opacity: 0; } to { opacity: 1; } }

/* Panel açıkken sayfa kaymaz */
html.mmn-kilit, html.mmn-kilit body { overflow: hidden; }

/* Eski şeridin main.css kalıntıları yeni işaretlemeye dokunmaz; yine de
   oyd.css'teki `.sub-links svg` gibi genel kurallar artık eşleşmiyor. */

/* Çok dar ekran (≤ 360px, ör. 320px'lik eski telefonlar): yuva 60px'e
   iner, "Sertifikalar" 11px'te sığmıyordu. */
@media (max-width: 360px) {
    .mmn-dock { padding: 0 3px; gap: 0; }
    .mmn-label { font-size: 10px; letter-spacing: 0; }
    .mmn-label--iki { font-size: 9px; line-height: 10.5px; }
    .mmn-ico { width: 40px; }
    .mmn-cards { grid-template-columns: 1fr; gap: 6px; }
    .mmn-card { min-height: 54px; padding: 10px 12px; }
}
