/* =========================================================
   İLETİŞİM ALANI: 2 SÜTUN x 2 SATIR  +  MOBİL MENÜ TELEFON KARTLARI
   header.php (.tpc, .mmenu-calls) bileşenlerinin stilleri.
   mobile.css'ten SONRA yüklenir; mevcut kurallara dokunmaz, yalnızca ekler.

   Düzen:   [☎ Telefon 1 ]   │   [✉ E-posta    ]
            [☎ Telefon 2 ]   │   [☎ Telefon 3  ]
   Önekler: tpc (topbar iletişim), mmenu-call (mobil menü)
   ========================================================= */

/* ---------- 1) MASAÜSTÜ ---------- */
.tpc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
/* iki sütunu ince bir dikey çizgi ayırır (duyuru alanının kenar çizgisiyle aynı dil) */
.tpc + .tpc {
    padding-left: 22px;
    border-left: 1px solid rgba(10, 90, 170, .16);
}

.tpc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 26px;
    min-width: 0;
    color: #0b2a4a;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}
.tpc-ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f6ff, #cdeeff);
    color: #0a8fe8;
    transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.tpc-ic svg { width: 13px; height: 13px; }
.tpc-tx {
    min-width: 0;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpc-row:hover,
.tpc-row:focus-visible { color: #0a8fe8; outline: none; }
.tpc-row:hover .tpc-ic,
.tpc-row:focus-visible .tpc-ic { background: linear-gradient(135deg, #1aa7ff, #0a7fe0); color: #fff; transform: scale(1.08); }
.tpc-row:focus-visible .tpc-ic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a8fe8; }

/* dar laptop (≤1365px): biraz daha kompakt, duyuru alanına yer kalsın */
@media (max-width: 1365px) {
    .tpc + .tpc { padding-left: 14px; }
    .tpc-row { height: 24px; gap: 7px; font-size: 12.5px; }
    .tpc-ic { width: 22px; height: 22px; }
    .tpc-ic svg { width: 12px; height: 12px; }
    .tpc-tx { max-width: 170px; }
}

/* ≤1100px (küçük masaüstü): yer kalmadığı için eskisi gibi iki ikon (telefon 1 + e-posta) */
@media (max-width: 1100px) {
    .tpc-row:nth-child(n + 2) { display: none; }
    .tpc + .tpc { padding-left: 0; border-left: 0; }
    .tpc-tx { display: none; }
    .tpc-ic { width: 42px; height: 42px; }
    .tpc-ic svg { width: 20px; height: 20px; }
}

/* ---------- 2) MOBİL (≤900px): ana sayfadaki koyu cam hap ---------- */
@media (max-width: 900px) {
    /* hapın yüksekliği (54px) değişmez: iki satır x 24px sığar; slider yazısının yeri kaymaz */
    body.is-hero .tpc { flex: 1 1 0; gap: 0; }
    body.is-hero .tpc + .tpc { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .18); }
    body.is-hero .tpc-row:nth-child(n + 2) { display: flex; }   /* 901-1100 kuralını mobilde geri al */
    body.is-hero .tpc-tx { display: block; max-width: none; }
    body.is-hero .tpc-row { height: 24px; gap: 6px; color: #fff; font-size: 11.5px; }
    body.is-hero .tpc-ic {
        width: 20px; height: 20px;
        background: linear-gradient(135deg, #1aa7ff, #0a7fe0);
        color: #fff;
    }
    body.is-hero .tpc-ic svg { width: 11px; height: 11px; }
    body.is-hero .tpc-row:hover { color: #7ae7ff; }
}
@media (max-width: 380px) {
    body.is-hero .tpc + .tpc { padding-left: 8px; }
    body.is-hero .tpc-row { gap: 5px; font-size: 11px; }
    body.is-hero .tpc-ic { width: 18px; height: 18px; }
    body.is-hero .tpc-ic svg { width: 10px; height: 10px; }
}

/* ---------- 3) MOBİL MENÜ (hamburger): telefon kartları ---------- */
@media (max-width: 900px) {
    .mmenu-foot .mmenu-head--call { margin: 0 2px 2px; }
    .mmenu-calls { display: flex; flex-direction: column; gap: 10px; }

    .mmenu-foot .mmenu-call {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 62px;
        padding: 0 12px 0 10px;
        box-sizing: border-box;
        border: 1px solid rgba(37, 195, 253, .22);
        border-left: 4px solid #25c3fd;
        border-radius: 6px 16px 16px 6px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .03) 100%);
        color: #fff;
        font-size: inherit;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1), background .25s ease;
    }
    .mmenu.is-open .mmenu-foot .mmenu-call { opacity: 1; transform: none; }
    .mmenu.is-open .mmenu-foot .mmenu-call:nth-child(1) { transition-delay: .30s, .30s, 0s; }
    .mmenu.is-open .mmenu-foot .mmenu-call:nth-child(2) { transition-delay: .35s, .35s, 0s; }
    .mmenu.is-open .mmenu-foot .mmenu-call:nth-child(3) { transition-delay: .40s, .40s, 0s; }
    .mmenu-foot .mmenu-call:hover,
    .mmenu-foot .mmenu-call:focus-visible { background: rgba(37, 195, 253, .2); outline: none; }
    .mmenu-foot .mmenu-call:active { transform: scale(.985); transition-delay: 0s; }

    .mmenu-call-ic {
        flex: none; display: grid; place-items: center;
        width: 38px; height: 38px; border-radius: 50%;
        background: rgba(37, 195, 253, .16);
        color: #7ae7ff;
    }
    .mmenu-foot .mmenu-call-ic svg { width: 19px; height: 19px; color: inherit; }
    .mmenu-call-tx { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .mmenu-call-tx small { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7ae7ff; }
    .mmenu-call-tx b { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .mmenu-call-go {
        flex: none; margin-left: auto;
        display: inline-flex; align-items: center; justify-content: center;
        height: 34px; padding: 0 16px;
        border-radius: 999px;
        background: linear-gradient(90deg, #1aa7ff 0%, #0a7fe0 100%);
        box-shadow: 0 6px 16px -6px rgba(0, 150, 255, .8);
        font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff;
    }
    .mmenu-calls + a { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .tpc-row, .tpc-ic, .mmenu-foot .mmenu-call { transition: none !important; }
}