/* Telepítési útmutató: a kezdőoldali telepítő kártya (index.html) és a tesztelőoldal (tesztelok.html)
   közös elemei. A kis telefon- és böngésző-illusztrációk szándékosan sötétek minden témában
   (egy telefon kijelzőjét ábrázolják), a kiemelés viszont a téma akcentusszínét követi. */

/* ---------- Közös apró elemek ---------- */
.tl-cimke {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    color: var(--accent-text);
    font-weight: 700;
    font-size: var(--fs-xs);
}

/* amíg a script nem tudja, milyen eszközön vagyunk: a helye megvan, csak nem látszik (nincs elugrás) */
.tl-cimke.ures {
    visibility: hidden;
}

.tl-fo-gomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--accent-color);
    color: var(--on-accent);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--install-btn-shadow);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-fo-gomb:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--install-btn-shadow-hover);
}

.tl-masod-gomb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    background: transparent;
    color: var(--accent-text);
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.tl-masod-gomb:hover {
    background: color-mix(in srgb, var(--accent-color) 14%, transparent);
}

.tl-kis-gomb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--on-accent);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
}

.tl-kis-gomb:hover {
    background: var(--accent-hover);
}

.tl-kis-gomb i {
    font-size: var(--fs-xs);
}

.tl-szam {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--on-accent);
    font-weight: 800;
    font-size: var(--fs-sm);
}

.tl-sav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    background: var(--inner-bg);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.tl-sav > i {
    color: var(--accent-text);
    font-size: var(--fs-lg);
}

.tl-sav b {
    color: var(--text-primary);
}

/* ---------- Lépés-kártya (illusztráció + szöveg) ---------- */
.tl-lepesek {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tl-lepes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 14px;
    border-radius: 14px;
    background: var(--inner-bg);
    border: 1px solid var(--border-color);
}

.tl-lepes-szoveg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    align-self: stretch;
}

.tl-lepes-szoveg > div {
    min-width: 0;
}

.tl-lepes-szoveg b {
    display: block;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.tl-lepes-szoveg p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.tl-lepes-szoveg p b {
    display: inline;
    margin: 0;
}

/* ---------- Telefon-illusztráció ---------- */
.tl-telefon {
    width: 132px;
    height: 236px;
    padding: 7px;
    border-radius: 26px;
    background: #0b0a12;
    border: 2px solid #3b3552;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    flex-shrink: 0;
}

.tl-kepernyo {
    position: relative;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(160deg, #24203a, #15131f);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 9px;
    line-height: 1.3;
    color: #d6d0f0;
}

.tl-cimsor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #2d2847;
}

.tl-url {
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
}

.tl-tartalom {
    flex: 1;
    border-radius: 8px;
    background: repeating-linear-gradient(180deg, #2a2540 0 10px, transparent 10px 18px);
    opacity: 0.5;
}

.tl-kiemel {
    color: #ffffff;
    background: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 35%, transparent),
        0 0 16px color-mix(in srgb, var(--accent-color) 70%, transparent);
    border-radius: 6px;
}

.tl-kicsi {
    padding: 3px 5px;
}

.tl-ikon-kep {
    border-radius: 50%;
}

.tl-lenyilo {
    position: absolute;
    right: 8px;
    top: 30px;
    width: 92px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
    background: #332d4f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.tl-lenyilo > span,
.tl-lap > span {
    height: 8px;
    border-radius: 4px;
    background: #4a4370;
}

.tl-lenyilo > .tl-menupont,
.tl-lap > .tl-menupont {
    height: auto;
    padding: 4px 5px;
    font-size: 8.5px;
    white-space: nowrap;
}

.tl-parbeszed {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #332d4f;
    text-align: center;
}

.tl-parbeszed .tl-ikon-kep {
    width: 26px;
    height: 26px;
}

.tl-gombok {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tl-gomb {
    padding: 3px 7px;
}

.tl-racs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px 6px;
}

.tl-racs > span {
    aspect-ratio: 1;
    border-radius: 9px;
    background: #3a345a;
}

.tl-racs > .tl-app {
    position: relative;
    display: grid;
    place-items: center;
    background: transparent;
    border-radius: 50%;
}

.tl-app .tl-ikon-kep {
    width: 100%;
    height: 100%;
}

.tl-app small {
    position: absolute;
    bottom: -12px;
    font-size: 8px;
}

.tl-ios-sav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 24px;
    border-radius: 10px;
    background: #2d2847;
    font-size: 10px;
}

.tl-lap {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 8px 14px;
    border-radius: 14px 14px 10px 10px;
    background: #332d4f;
}

/* tesztelés: csoport, meghívó, Áruház-oldal */
.tl-csoport,
.tl-meghivo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 10px;
    background: #2d2847;
    text-align: center;
}

.tl-csoport small,
.tl-meghivo small,
.tl-aruhaz small {
    opacity: 0.7;
    font-size: 7.5px;
}

.tl-csoport-ikon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #4a4370;
}

.tl-meghivo {
    flex: 1;
    justify-content: center;
}

.tl-meghivo .tl-ikon-kep {
    width: 34px;
    height: 34px;
}

.tl-csoport .tl-gomb,
.tl-meghivo .tl-gomb {
    margin-top: 4px;
}

.tl-aruhaz {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tl-aruhaz-fej {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tl-aruhaz-fej .tl-ikon-kep {
    width: 36px;
    height: 36px;
}

.tl-aruhaz-fej div {
    display: flex;
    flex-direction: column;
}

.tl-szeles {
    text-align: center;
    padding: 5px;
}

/* ---------- Böngészőablak-illusztráció (számítógép) ---------- */
.tl-bongeszo {
    width: 230px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid #3b3552;
    background: #15131f;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    font-size: 9px;
    color: #d6d0f0;
}

.tl-bong-sav {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 8px;
    background: #2d2847;
}

.tl-pontok {
    display: flex;
    gap: 3px;
}

.tl-pontok i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5a5480;
}

.tl-bong-url {
    flex: 1;
    padding: 3px 6px;
    border-radius: 8px;
    background: #1d1a2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-bong-tartalom {
    position: relative;
    height: calc(100% - 26px);
    background: repeating-linear-gradient(180deg, #221e35 0 12px, transparent 12px 22px);
}

.tl-felugro {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #332d4f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.tl-felugro .tl-ikon-kep {
    width: 22px;
    height: 22px;
}

.tl-ablak {
    position: absolute;
    inset: 10px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    background: #24203a;
    border: 1px solid #3b3552;
}

.tl-ablak .tl-ikon-kep {
    width: 34px;
    height: 34px;
}

/* ---------- Kezdőoldali telepítő kártya ---------- */
.telepito-kartya {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--install-card-border);
    background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent-color) 22%, transparent), transparent 45%),
        var(--card-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    text-align: left;
}

.telepito-fej {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.telepito-fej h2 {
    margin: 0 0 6px;
    font-size: var(--fs-xl);
    text-align: left;
}

.telepito-fej p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.telepito-fulek {
    display: flex;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 14px;
    background: var(--inner-bg);
    box-sizing: border-box;
}

.telepito-fulek button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.telepito-fulek button[aria-selected="true"] {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.telepito-also {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
}

.telepito-also .tl-sav {
    flex: 1;
}

/* ---------- Telefon ---------- */
@media (max-width: 700px) {
    .telepito-kartya {
        padding: 18px;
    }

    .telepito-fej {
        flex-direction: column;
        align-items: stretch;
    }

    .telepito-fulek {
        width: 100%;
    }

    .telepito-fulek button {
        flex: 1;
        min-width: 0;
        padding: 9px 4px;
        font-size: var(--fs-sm);
    }

    .telepito-fulek button i {
        display: none;
    }

    .telepito-also {
        flex-direction: column;
    }

    .tl-lepesek {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    /* telefonon az illusztráció kicsinyítve a szöveg mellé kerül */
    .tl-lepes {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 12px;
        overflow: hidden;
    }

    .tl-lepes .tl-telefon {
        transform: scale(0.6);
        margin: -47px -26px;
    }

    .tl-lepes .tl-bongeszo {
        transform: scale(0.6);
        margin: -30px -46px;
    }

    .tl-lepes-szoveg p {
        overflow-wrap: anywhere;
    }
}
