/* =========================================================================
   onlinegames.hu — elemek
   Gombok, játékkártyák, kategóriakártyák, címkék, hirdetési helyek, ablak.
   ========================================================================= */

/* ---------- Gombok ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--display);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 3px 0 rgba(14, 46, 69, .55);
    transition: transform .12s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(14, 46, 69, .55); }
.btn--yellow { background: var(--yellow); color: var(--ink-deep); }
.btn--white { background: var(--surface); color: var(--ink); }
.btn--red { background: var(--red); color: #fff; }

/* ---------- Játékkártya ---------- */
.grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}
.grid .card.is-hidden { display: none; }

.card {
    background: var(--surface);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    height: 100%;
    padding: 8px;
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card__thumb {
    aspect-ratio: 4 / 3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
    min-height: 0;
    max-width: 100%;
    border-radius: 10px;
    background: var(--surface-2);
}
.card__thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card__badge {
    position: absolute; top: 7px; left: 7px;
    font-family: var(--display); font-weight: 700; font-size: 11px;
    letter-spacing: .6px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; color: #fff;
    background: var(--red);
    box-shadow: 0 2px 0 rgba(14, 46, 69, .4);
}
.card__meta { padding: 9px 3px 2px; }
.card__name {
    font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2;
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card__cat { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Kiemelt blokk: az első kártya dupla méretű. */
.hero { display: grid; gap: 13px; grid-template-columns: repeat(6, 1fr); }
.hero .card:first-child { grid-column: span 2; grid-row: span 2; }
.hero .card:first-child .card__thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 190px; }
.hero .card:first-child .card__name { font-size: 24px; }

/* ---------- Kategóriakártya ---------- */
.catgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.catcard {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--r-tile);
    background: var(--surface); box-shadow: var(--shadow);
    font-family: var(--display); font-weight: 700; font-size: 15px;
    transition: transform .15s;
}
.catcard:hover { transform: translateY(-3px); }
.catcard__bubble {
    width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center; font-size: 17px; flex: none;
}

/* ---------- Címkék, szűrők ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); font-weight: 800; font-size: 13.5px;
    box-shadow: var(--shadow);
}
.chip.is-active { background: var(--ink); color: #fff; }

/* ---------- Panel ---------- */
.panel {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.panel h2, .panel h3 { font-size: 17px; margin-bottom: 8px; }
.panel p { margin: 0 0 10px; max-width: 65ch; }
.panel p:last-child { margin-bottom: 0; }

.empty {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 26px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    box-shadow: var(--shadow);
}

/* ---------- Hirdetési helyek ---------- */
/* A doboz csak akkor kerül ki, ha van benne kód — üresen semmi nem látszik. */
.ad { display: block; margin: 22px 0; text-align: center; }
.ad--rail { margin: 0; }
.ad--mobile { display: none; margin: 22px auto; max-width: 336px; }
.ad--anchor {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--surface); box-shadow: 0 -4px 16px rgba(18, 58, 86, .18);
    padding: 6px 34px 6px 6px; margin: 0; display: none;
}
.ad--anchor .ad__close {
    position: absolute; top: 4px; right: 8px; font-size: 16px; color: var(--muted);
}

@media (max-width: 900px) {
    .ad--mobile { display: block; }
    .ad--anchor { display: block; }
}

/* ---------- Lapozó ---------- */
.pagination {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
    list-style: none; padding: 0; margin: 22px 0 0; justify-content: center;
}
.pagination li a,
.pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px; border-radius: 10px;
    background: var(--surface); color: var(--text);
    font-family: var(--display); font-weight: 700; font-size: 14px;
    box-shadow: var(--shadow);
}
.pagination li.is-active span { background: var(--blue); color: #fff; }
.pagination li.is-disabled span { opacity: .45; }

/* ---------- Belépés ablak ---------- */
.backdrop {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(10, 30, 46, .6);
    display: none; place-items: center; padding: 20px;
}
.backdrop.is-open { display: grid; }
.modal {
    background: var(--surface); border-radius: 22px;
    box-shadow: 0 24px 60px rgba(6, 24, 38, .5);
    width: min(420px, 100%); padding: 26px; text-align: center;
    max-height: 92vh; overflow: auto; position: relative;
}
.modal h2 { font-size: 24px; margin-bottom: 4px; }
.modal__lead { color: var(--muted); font-weight: 700; font-size: 13.5px; margin: 0 0 18px; }
.modal__close { position: absolute; top: 14px; right: 16px; font-size: 20px; color: var(--muted); }
.modal__mouse { width: 64px; margin: 0 auto 6px; display: block; }

.sso {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px; border-radius: 12px;
    font-family: var(--display); font-weight: 700; font-size: 15px;
    margin-bottom: 9px;
    box-shadow: inset 0 0 0 2px var(--line);
    background: var(--surface); color: var(--text);
}
.sso:hover { background: var(--surface-2); }
.sso--fb { background: #1877F2; color: #fff; box-shadow: none; }
.sso__mark {
    width: 22px; height: 22px; border-radius: 6px; flex: none;
    background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line);
    display: grid; place-items: center; font-size: 10px; color: var(--muted);
}
.sso--fb .sso__mark { background: rgba(255, 255, 255, .25); box-shadow: none; color: #fff; }

.sep {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); font-weight: 700; font-size: 12px; margin: 14px 0;
}
.sep::before, .sep::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.field { text-align: left; margin-bottom: 10px; }
.field label { font-weight: 800; font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 4px; }
.field input {
    width: 100%; padding: 11px 14px; border-radius: 11px; border: 0;
    background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line);
    font: inherit; font-weight: 600; color: var(--text);
}
.modal .btn { width: 100%; margin-top: 6px; padding: 12px; justify-content: center; }
.fineprint { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 14px 0 0; line-height: 1.5; }

/* ---------- Megosztás ---------- */
.share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.share__label {
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    margin-right: 2px;
}
.share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 13.5px;
    color: #fff;
    background: var(--ink);
    box-shadow: 0 2px 0 rgba(14, 46, 69, .35);
    transition: transform .12s, filter .12s;
}
.share__btn:hover { filter: brightness(1.08); }
.share__btn:active { transform: translateY(2px); box-shadow: none; }
.share__btn svg { width: 15px; height: 15px; fill: currentColor; }

/* A hálózatok saját színei — logót nem használunk, csak nevet. */
.share__btn--fb { background: #1877F2; }
.share__btn--x { background: #14171A; }
.share__btn--wa { background: #25D366; color: #06351A; }
.share__btn--viber { background: #7360F2; }
.share__btn--copy {
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 0 0 2px var(--line);
}
.share__btn--copy.is-done { background: var(--green); color: #0B3A21; box-shadow: none; }
.share__btn--native { background: var(--blue); display: none; }
.share__btn--native.is-on { display: inline-flex; }
