/* Mobiele site: kopbalk en het kaartje "installeer de app"
 *
 * De kopbalk is gelijk aan die van /recent-news (plugin TPC Newsfeed,
 * .tpc-nf-bar): pas je de een aan, pas dan ook de ander aan.
 * Zie includes/mobile.php.
 */

@font-face { font-family: "TPC Titillium"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-400.woff2") format("woff2"); }
@font-face { font-family: "TPC Titillium"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-600.woff2") format("woff2"); }
@font-face { font-family: "TPC Titillium"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-700.woff2") format("woff2"); }
@font-face { font-family: "TPC Titillium"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/titillium-web-900.woff2") format("woff2"); }

/* In landschap op een iPhone met inkeping: inhoud niet onder de inkeping. */
html body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ── Kopbalk ───────────────────────────────────────── */
.tpc-mb {
    position: sticky;
    top: 0;
    z-index: 999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    margin: 0;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "TPC Titillium", "Titillium Web", "Segoe UI", system-ui, sans-serif;
}
.tpc-mb-logo { flex: none; display: block; }
.tpc-mb-logo img { display: block; width: auto; max-width: none; height: 32px; margin: 0; border-radius: 0; }
.tpc-mb h1 {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: inherit;
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f3f5fa;
}
.tpc-mb h1 span { color: #e10600; }
.tpc-mb-actions { flex: none; display: flex; align-items: center; gap: 8px; }

.tpc-mb .tpc-mb-btn {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #151b2b;
    color: #f3f5fa;
    font-size: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tpc-mb .tpc-mb-btn:active { transform: scale(0.94); }
.tpc-mb-btn svg { width: 20px; height: 20px; }
.tpc-mb-btn:focus-visible, .tpc-mb-pill:focus-visible, .tpc-mb-logo:focus-visible { outline: 2px solid #f3f5fa; outline-offset: 2px; }

/* Knop met tekst (Instagram: Follow) */
.tpc-mb .tpc-mb-pill {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #e10600;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Filterknop met een onzichtbare keuzelijst eroverheen (Videos): tikken opent
   de gewone keuzelijst van de telefoon. Rode stip = er is een filter actief. */
.tpc-mb-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 16px; /* kleiner laat iOS inzoomen */
    cursor: pointer;
}
.tpc-mb-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e10600;
    box-shadow: 0 0 0 2px #151b2b;
    pointer-events: none;
}
.tpc-mb-dot[hidden] { display: none; }

/* ── Installeer de app ─────────────────────────────── */
.tpc-app {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 10001;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: start;
    max-width: 460px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #151b2b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    color: #f3f5fa;
    font-family: "TPC Titillium", "Titillium Web", "Segoe UI", system-ui, sans-serif;
    animation: tpc-app-in 0.25s ease-out;
}
@keyframes tpc-app-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tpc-app[hidden] { display: none; }
.tpc-app img { display: block; width: 48px; height: 48px; border-radius: 12px; }
.tpc-app b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tpc-app p { margin: 2px 0 10px; font-size: 13.5px; line-height: 1.4; color: #8d95a8; }
.tpc-app .tpc-app-how { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: #f3f5fa; }
.tpc-app-how svg { display: inline-block; width: 17px; height: 17px; margin: 0 1px; vertical-align: -3px; color: #5aa0ff; }
.tpc-app .tpc-app-go {
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: #e10600;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}
.tpc-app .tpc-app-x {
    width: 28px;
    height: 28px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d95a8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .tpc-app { animation: none; }
}
