/* ============================================================
   BETUJEMY.PL — /opinie — ściana opinii z Telegrama
   Styl spójny z site.css (czerwień/czerń, Oswald/Outfit, glass)
   ============================================================ */

.op-intro { text-align: center; max-width: 640px; margin: 0 auto 10px; }
.op-trust {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
    margin-top: 8px;
}
.op-trust .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #8ff0b0;
}
.op-trust .pill svg { width: 14px; height: 14px; }
.op-count { color: var(--red); }

/* ---------- Ściana (masonry przez kolumny CSS) ---------- */
.op-wall {
    column-gap: 16px;
    column-count: 1;
    margin-top: 8px;
}
@media (min-width: 620px) { .op-wall { column-count: 2; } }
@media (min-width: 1040px) { .op-wall { column-count: 3; column-gap: 20px; } }

.op-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 16px;
    padding: 20px;
    display: flow-root;
}
@media (min-width: 1040px) { .op-card { margin-bottom: 20px; padding: 24px; } }

.op-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.op-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff;
    background: linear-gradient(135deg, var(--red-deep), #7a0a0a);
    border: 2px solid rgba(255, 45, 45, 0.4);
}
.op-meta { min-width: 0; }
.op-name { font-weight: 800; font-size: 14px; color: var(--text); }
.op-date { font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.1em; color: var(--dim); margin-top: 2px; }

.op-text {
    font-size: 14px; line-height: 1.65; color: #d4d4dc;
    white-space: pre-line; word-wrap: break-word; overflow-wrap: anywhere;
}
.op-text a { color: #ff8f8f; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Media ---------- */
.op-media { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.op-media img, .op-media video { width: 100%; height: auto; display: block; }
.op-media img { cursor: zoom-in; transition: opacity 0.25s; }
.op-media img:hover { opacity: 0.92; }

/* Wideo click-to-Telegram (miniatura z play) */
.op-vlink { position: relative; display: block; }
.op-vlink .play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.28);
}
.op-vlink .play span {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255, 45, 45, 0.92); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(255, 45, 45, 0.4); transition: transform 0.25s var(--ease-spring);
}
.op-vlink:hover .play span { transform: scale(1.12); }
.op-vlink .play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }

/* ---------- Weryfikacja / link do źródła ---------- */
.op-verify {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--dim); transition: color 0.2s;
}
.op-verify svg { width: 13px; height: 13px; color: var(--green); }
.op-verify:hover { color: #8ff0b0; }

/* ---------- Pusty stan (nie powinien wystąpić — strona bazuje na store) ---------- */
.op-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---------- Lightbox ---------- */
#op-lightbox {
    position: fixed; inset: 0; z-index: 100000; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(3, 3, 3, 0.94); backdrop-filter: blur(8px);
}
#op-lightbox.show { display: flex; }
#op-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
#op-lightbox .op-close {
    position: absolute; top: 16px; right: 18px; color: #fff; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border-hi);
}
#op-lightbox .op-close:hover { background: var(--red); }
