/* Underground Magazin - archivum oldal */

.ug-arch { --ug-arch-keret: color-mix(in srgb, currentColor 18%, transparent); }

/* --- Szuro-form --- */
.ug-arch-form { margin: 0 0 1rem; }
.ug-arch-form-sor {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}
.ug-arch-mezo { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ug-arch-mezo-kereses { flex: 1 1 18rem; }
.ug-arch-mezo-cimke { flex: 0 1 12rem; }
.ug-arch-cimke {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}
.ug-arch-form input[type="search"],
.ug-arch-form input[type="text"],
.ug-arch-form select {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    max-width: 100%;
}
.ug-arch-gomb {
    /* Korvonalas gomb, NEM kitoltott: a background: currentColor + color: inherit
       paros a gomb szoveget a hatterevel egyezo szinure tette, tehat lathatatlan
       volt. Korvonallal a kontraszt mindket temaban all, anelkul hogy szin-parokat
       kellene talalgatni. */
    padding: 0.5rem 1.1rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.ug-arch-gomb:hover { background: var(--ug-arch-keret); }

/* --- Aktiv szuro chipek --- */
.ug-arch-chipek {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0 0 1rem;
    font-size: 0.85rem;
}
.ug-arch-chipek-cimke { opacity: 0.7; }
.ug-arch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 999px;
    text-decoration: none;
}
.ug-arch-chip-x { opacity: 0.6; font-size: 1.1em; line-height: 1; }
.ug-arch-chip:hover .ug-arch-chip-x { opacity: 1; }
.ug-arch-chip-mind { font-size: 0.8rem; opacity: 0.7; }

/* --- Belyegkep: fix box, hogy ne legyen layout shift --- */
/* A legacy lead kepek intrinsic meretet nem ismerjuk (atlag 23,7 KB,         */
/* gyakran 220px szeles), ezert a boxot CSS-ben fixaljuk.                     */
.ug-arch-kep {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: block;
    background: var(--ug-arch-keret);
}
.ug-arch-kep-nincs { display: block; }

@media (max-width: 600px) {
    .ug-arch-form-sor { gap: 0.5rem; }
    .ug-arch-mezo { flex: 1 1 100%; }
    .ug-arch-gomb { width: 100%; }
}

/* --- Talalatszam --- */
.ug-arch-talalatszam {
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ug-arch-keret);
    font-size: 0.9rem;
}

/* --- Magazinos lista --- */
.ug-arch-lista { list-style: none; margin: 0; padding: 0; }
.ug-arch-lista-magazin .ug-arch-sor {
    display: flex;
    gap: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ug-arch-keret);
}
.ug-arch-sor-kep { flex: 0 0 120px; line-height: 0; }
.ug-arch-sor-szoveg { min-width: 0; }
.ug-arch-sor-cim { margin: 0 0 0.2rem; font-size: 1.02rem; line-height: 1.3; }
.ug-arch-sor-cim a { text-decoration: none; }
.ug-arch-sor-cim a:hover { text-decoration: underline; }
.ug-arch-sor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    opacity: 0.75;
}
.ug-arch-sor-meta a { color: inherit; text-decoration: none; }
.ug-arch-sor-meta a:hover { text-decoration: underline; }
.ug-arch-sor-rovat { text-transform: uppercase; letter-spacing: 0.04em; }
.ug-arch-sor-kivonat {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.9;
}

/* --- Ures allapot es hiba --- */
.ug-arch-ures, .ug-arch-hiba { padding: 1.5rem 0; opacity: 0.85; }
/* A tulfutas-panel ("ez az oldal nem letezik") jelolt: ne nezzen ki ugy, mint a "nincs talalat". */
.ug-arch-tulfutas { border-left: 3px solid var(--ug-arch-keret); padding-left: 0.9rem; }

@media (max-width: 600px) {
    .ug-arch-sor-kep { flex: 0 0 84px; }
    .ug-arch-kep { width: 84px; height: 60px; }
}

/* --- Nezet-valto --- */
.ug-arch-nezet-valto {
    display: inline-flex;
    gap: 0;
    margin: 0 0 0.9rem;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.8rem;
}
.ug-arch-nezet {
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.65;
}
.ug-arch-nezet + .ug-arch-nezet { border-left: 1px solid var(--ug-arch-keret); }
.ug-arch-nezet-aktiv { opacity: 1; background: var(--ug-arch-keret); }

/* --- Suru, legacy-hu lista --- */
.ug-arch-nap-fejlec {
    margin: 1.1rem 0 0.3rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}
.ug-arch-nap { list-style: none; margin: 0; padding: 0; }
.ug-arch-nap-sor {
    display: grid;
    grid-template-columns: 3.4rem 1fr auto;
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.22rem 0;
    border-bottom: 1px solid var(--ug-arch-keret);
}
.ug-arch-nap-ido {
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    opacity: 0.6;
}
.ug-arch-nap-cim { text-decoration: none; min-width: 0; }
.ug-arch-nap-cim:hover { text-decoration: underline; }
.ug-arch-nap-rovat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.55;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ug-arch-nap-sor { grid-template-columns: 3rem 1fr; }
    .ug-arch-nap-rovat { grid-column: 2; }
}

/* --- Lapozo --- */
.ug-arch-lapozo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    margin: 1.4rem 0 0;
    font-size: 0.85rem;
}
.ug-arch-lap {
    min-width: 2rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.ug-arch-lap:hover { background: var(--ug-arch-keret); }
.ug-arch-lap-aktiv { background: var(--ug-arch-keret); font-weight: 700; }
.ug-arch-lap-elozo, .ug-arch-lap-kovetkezo { min-width: 0; }
.ug-arch-lap-kihagyas { padding: 0 0.2rem; opacity: 0.5; }

/* --- Belepo: ev-idovonal + honap-racs --- */
.ug-arch-belepo { margin: 0 0 1.4rem; }
.ug-arch-belepo-cim {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.65;
}
.ug-arch-evek, .ug-arch-honapok {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ug-arch-honapok { margin-top: 0.4rem; padding-left: 0.9rem; border-left: 3px solid var(--ug-arch-keret); }
.ug-arch-ev, .ug-arch-honap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 3.4rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    line-height: 1.15;
}
.ug-arch-ev:hover, .ug-arch-honap:hover { background: var(--ug-arch-keret); }
.ug-arch-ev-aktiv, .ug-arch-honap-aktiv { background: var(--ug-arch-keret); font-weight: 700; }
.ug-arch-ev-szam, .ug-arch-honap-nev { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ug-arch-ev-db, .ug-arch-honap-db { font-size: 0.62rem; opacity: 0.6; font-variant-numeric: tabular-nums; }
.ug-arch-honap-ures { opacity: 0.35; cursor: default; }
/* A halott honap ne villanjon fel hoverre (a .ug-arch-honap:hover ra is illik). */
.ug-arch-honap-ures:hover { background: none; }

@media (max-width: 600px) {
    .ug-arch-ev, .ug-arch-honap { min-width: 2.9rem; padding: 0.2rem 0.3rem; }
}

/* --- Cimke-autocomplete --- */
.ug-arch-ac-tarolo { position: relative; display: flex; flex-direction: column; }
.ug-arch-ac {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 15rem;
    overflow-y: auto;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--ug-arch-keret);
    border-radius: 6px;
    background: Canvas;
    color: CanvasText;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
}
.ug-arch-ac-elem {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
}
.ug-arch-ac-elem:hover, .ug-arch-ac-aktiv { background: var(--ug-arch-keret); }
.ug-arch-ac-nev { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-arch-ac-db { opacity: 0.55; font-variant-numeric: tabular-nums; }
