/*
Theme Name: StreamHub Portal
Theme URI: https://streamhub.local/
Author: StreamHub
Description: Dark portal theme for StreamHub streamer listings and OBS overlay hosting.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streamhub-portal
*/

:root {
    --sh-bg: #080b0d;
    --sh-bg-soft: #11161a;
    --sh-surface: #171d22;
    --sh-surface-strong: #20272d;
    --sh-text: #f6f7f2;
    --sh-muted: #a8b0aa;
    --sh-line: rgba(255, 255, 255, 0.1);
    --sh-cyan: #2bb8ff;
    --sh-green: #d8ff3d;
    --sh-pink: #ff4b5f;
    --sh-yellow: #ffca3a;
    --sh-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --sh-radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--sh-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(216, 255, 61, 0.07) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 8% 18%, rgba(255, 75, 95, 0.16), transparent 26rem),
        radial-gradient(circle at 90% 12%, rgba(216, 255, 61, 0.12), transparent 22rem),
        linear-gradient(135deg, #080b0d 0%, #10161b 52%, #0b0e10 100%);
    color: var(--sh-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

.streamhub-bg,
.streamhub-bg__grid,
.streamhub-bg__sweep,
.streamhub-bg__pulse,
.streamhub-bg__canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.streamhub-bg {
    z-index: 0;
    overflow: hidden;
}

.streamhub-bg__grid {
    background:
        linear-gradient(90deg, rgba(216, 255, 61, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 78px 78px;
    opacity: 0.38;
    animation: streamhub-grid-drift 18s linear infinite;
}

.streamhub-bg__grid::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 13, 0.12), rgba(8, 11, 13, 0.84) 76%);
    content: "";
}

.streamhub-bg__sweep {
    background:
        linear-gradient(180deg, transparent 0%, rgba(216, 255, 61, 0.18) 49%, transparent 56%);
    opacity: 0.48;
    transform: translateY(-18%);
    animation: streamhub-signal-sweep 9s ease-in-out infinite;
}

.streamhub-bg__pulse {
    background:
        radial-gradient(circle at 22% 30%, rgba(255, 75, 95, 0.2), transparent 18rem),
        radial-gradient(circle at 76% 24%, rgba(216, 255, 61, 0.18), transparent 20rem);
    opacity: 0.7;
    animation: streamhub-bg-pulse 7s ease-in-out infinite;
}

.streamhub-bg__canvas {
    width: 100%;
    height: 100%;
    opacity: 0.95;
}

@keyframes streamhub-grid-drift {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 78px 78px, 78px 78px;
    }
}

@keyframes streamhub-signal-sweep {
    0%,
    100% {
        transform: translateY(-24%);
        opacity: 0.42;
    }

    50% {
        transform: translateY(24%);
        opacity: 0.72;
    }
}

@keyframes streamhub-bg-pulse {
    0%,
    100% {
        opacity: 0.38;
        transform: scale(1);
    }

    50% {
        opacity: 0.78;
        transform: scale(1.06);
    }
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.site-header {
    border-bottom: 1px solid var(--sh-line);
    background: rgba(8, 11, 13, 0.88);
    backdrop-filter: blur(14px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.site-branding {
    display: inline-flex;
    position: relative;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-branding__logo {
    width: min(278px, 60vw);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(216, 255, 61, 0.14));
}

.site-branding::after {
    position: absolute;
    top: 8%;
    left: 0;
    width: min(278px, 60vw);
    height: 84%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 39%,
        rgba(255, 255, 255, 0.9) 49%,
        rgba(216, 255, 61, 0.42) 55%,
        transparent 70%,
        transparent 100%
    );
    mix-blend-mode: screen;
    content: "";
    pointer-events: none;
    transform: translateX(-150%) skewX(-18deg);
    animation: streamhub-logo-shine 2.8s ease-in-out infinite;
}

@keyframes streamhub-logo-shine {
    0%,
    35% {
        transform: translateX(-150%) skewX(-18deg);
    }

    70%,
    100% {
        transform: translateX(145%) skewX(-18deg);
    }
}

.site-branding__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(216, 255, 61, 0.36);
    border-radius: var(--sh-radius);
    background: #080a12;
    box-shadow: 0 0 28px rgba(216, 255, 61, 0.12);
    color: var(--sh-cyan);
    font-size: 22px;
    font-weight: 900;
}

.site-branding__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-branding__text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.site-branding__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.site-branding__tagline {
    color: var(--sh-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: var(--sh-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--sh-text);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(216, 255, 61, 0.52);
    border-radius: var(--sh-radius);
    background: rgba(216, 255, 61, 0.09);
    color: var(--sh-text);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 24px rgba(216, 255, 61, 0.08);
}

.login-button:hover,
.login-button:focus {
    background: linear-gradient(135deg, var(--sh-green), var(--sh-yellow));
    color: #101300;
}

.site-main {
    padding: 72px 0;
}

#start,
#moeglichkeiten,
#overlays,
#streamer-logos,
#community,
#kontakt {
    scroll-margin-top: 104px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    min-height: min(720px, calc(100vh - 76px));
    padding-bottom: 40px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 6px 10px;
    border: 1px solid rgba(216, 255, 61, 0.4);
    border-radius: 999px;
    background: rgba(216, 255, 61, 0.08);
    color: var(--sh-green);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--sh-muted);
    font-size: clamp(18px, 2vw, 22px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    color: var(--sh-text);
    font-weight: 800;
    text-decoration: none;
}

.button-link--primary {
    border-color: rgba(216, 255, 61, 0.62);
    background: linear-gradient(135deg, var(--sh-green), var(--sh-yellow));
    color: #101300;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    background: linear-gradient(180deg, rgba(23, 29, 34, 0.96), rgba(12, 15, 17, 0.94));
    box-shadow: var(--sh-shadow);
}

.hero-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sh-line);
    color: var(--sh-muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-panel__status {
    color: var(--sh-yellow);
}

.hero-panel__content {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.signal-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sh-radius);
    background: rgba(255, 255, 255, 0.032);
}

.signal-row__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--sh-radius);
    background: rgba(216, 255, 61, 0.1);
    color: var(--sh-green);
    font-weight: 900;
}

.signal-row__title {
    overflow: hidden;
    color: var(--sh-text);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-row__meta {
    color: var(--sh-muted);
    font-size: 13px;
}

.signal-row__pill {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 75, 95, 0.12);
    color: var(--sh-pink);
    font-size: 12px;
    font-weight: 900;
}

.streamers {
    padding: 56px 0 20px;
}

.portal-content {
    display: grid;
    gap: 24px;
    max-width: 980px;
    padding: 38px 0 18px;
}

.portal-content :where(h1, h2, h3, p, blockquote) {
    margin-top: 0;
}

.portal-content h1 {
    margin-bottom: 8px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.96;
}

.portal-content h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.portal-content h3 {
    margin-bottom: 8px;
    color: var(--sh-text);
    font-size: 20px;
    line-height: 1.18;
}

.portal-content p {
    color: var(--sh-muted);
    font-size: clamp(17px, 1.8vw, 20px);
}

.portal-content .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portal-content .wp-block-column {
    padding: 18px;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    background: rgba(23, 29, 34, 0.58);
}

.portal-content .wp-block-separator {
    width: 100%;
    height: 1px;
    border: 0;
    background: var(--sh-line);
}

.portal-content .wp-block-quote {
    margin: 8px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--sh-yellow);
    background: rgba(255, 202, 58, 0.08);
    color: var(--sh-text);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--sh-muted);
}

.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.streamer-card {
    --streamer-panel: rgba(23, 29, 34, 0.72);
    --streamer-primary: var(--sh-green);
    --streamer-accent: var(--sh-pink);
    --streamer-glow: var(--sh-green);
    --streamer-text: var(--sh-text);
    --streamer-primary-soft: rgba(216, 255, 61, 0.22);
    --streamer-accent-soft: rgba(255, 75, 95, 0.16);
    --streamer-glow-soft: rgba(216, 255, 61, 0.42);
    --streamer-border: rgba(216, 255, 61, 0.45);
    display: grid;
    min-height: 210px;
    align-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--streamer-border);
    border-radius: var(--sh-radius);
    background:
        radial-gradient(circle at 18% 16%, var(--streamer-primary-soft), transparent 34%),
        radial-gradient(circle at 100% 4%, var(--streamer-accent-soft), transparent 42%),
        var(--streamer-panel);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 0 26px var(--streamer-glow-soft);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.streamer-card:hover,
.streamer-card:focus {
    transform: translateY(-3px);
    border-color: var(--streamer-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), 0 0 38px var(--streamer-glow-soft);
}

.streamer-logo {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sh-radius);
    background:
        linear-gradient(135deg, var(--streamer-primary-soft), var(--streamer-accent-soft)),
        var(--sh-surface-strong);
    color: var(--streamer-text);
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--streamer-border), 0 0 18px var(--streamer-glow-soft);
}

.streamer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-card__name {
    margin: 0;
    color: var(--streamer-text);
    font-size: 18px;
    line-height: 1.2;
}

.streamer-card__meta {
    margin: 6px 0 0;
    color: var(--streamer-primary);
    font-size: 14px;
    font-weight: 800;
}

.empty-state {
    padding: 28px;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    background: rgba(23, 29, 34, 0.72);
    color: var(--sh-muted);
}

.content-page {
    max-width: 820px;
}

.content-page :where(h1, h2, h3) {
    line-height: 1.15;
}

.content-page a {
    color: var(--sh-green);
}

.site-footer {
    border-top: 1px solid var(--sh-line);
    color: var(--sh-muted);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0;
    font-size: 14px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer__links a {
    color: var(--sh-muted);
    font-weight: 800;
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: var(--sh-text);
}

.theme-version-badge {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 50;
    padding: 4px 8px;
    border: 1px solid rgba(216, 255, 61, 0.22);
    border-radius: 999px;
    background: rgba(8, 11, 13, 0.78);
    color: rgba(244, 247, 251, 0.72);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(216, 255, 61, 0.1);
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    right: 12px;
    bottom: 48px;
    z-index: 70;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(216, 255, 61, 0.32);
    border-radius: var(--sh-radius);
    background: rgba(8, 11, 13, 0.84);
    color: var(--sh-text);
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 22px rgba(216, 255, 61, 0.12);
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover,
.back-to-top:focus {
    border-color: var(--sh-green);
    color: var(--sh-green);
}

.cookie-law {
    position: fixed;
    inset: auto 18px 18px;
    z-index: 120;
    display: grid;
    justify-items: end;
    pointer-events: none;
}

.cookie-law[hidden],
.cookie-law-reset[hidden],
.cookie-law__options[hidden],
.cookie-law__button[hidden] {
    display: none;
}

.cookie-law__panel {
    width: min(680px, 100%);
    padding: 18px;
    border: 1px solid rgba(216, 255, 61, 0.28);
    border-radius: var(--sh-radius);
    background: rgba(8, 11, 13, 0.96);
    color: var(--sh-text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), 0 0 42px rgba(43, 184, 255, 0.14);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.cookie-law__copy {
    display: grid;
    gap: 8px;
}

.cookie-law__eyebrow {
    margin: 0;
    color: var(--sh-green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.cookie-law h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.cookie-law p {
    margin: 0;
    color: var(--sh-muted);
    line-height: 1.55;
}

.cookie-law a {
    width: fit-content;
    color: var(--sh-green);
    font-weight: 900;
    text-decoration: none;
}

.cookie-law__options {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.cookie-law__option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sh-radius);
    background: rgba(255, 255, 255, 0.045);
}

.cookie-law__option input {
    margin-top: 3px;
    accent-color: var(--sh-green);
}

.cookie-law__option strong {
    display: block;
    margin-bottom: 3px;
    color: var(--sh-text);
}

.cookie-law__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.cookie-law__button,
.cookie-law-reset {
    min-height: 40px;
    border: 1px solid rgba(216, 255, 61, 0.28);
    border-radius: var(--sh-radius);
    background: rgba(255, 255, 255, 0.08);
    color: var(--sh-text);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.cookie-law__button {
    padding: 0 14px;
}

.cookie-law__button--primary {
    border-color: transparent;
    background: var(--sh-green);
    color: #101300;
}

.cookie-law__button--ghost:hover,
.cookie-law__button--ghost:focus,
.cookie-law-reset:hover,
.cookie-law-reset:focus {
    border-color: var(--sh-green);
    color: var(--sh-green);
}

.cookie-law-reset {
    position: fixed;
    left: 12px;
    bottom: 10px;
    z-index: 60;
    padding: 4px 9px;
    min-height: 26px;
    background: rgba(8, 11, 13, 0.78);
    color: rgba(244, 247, 251, 0.72);
    font-size: 11px;
    line-height: 1.2;
    backdrop-filter: blur(12px);
}

@media (max-width: 860px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .site-header__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 20px;
    }

    .hero-panel {
        max-width: 520px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-law {
        inset: auto 14px 14px;
    }

    .back-to-top {
        right: 14px;
        bottom: 52px;
    }

    .portal-content .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header__inner,
    .site-main,
    .site-footer__inner {
        width: min(100% - 28px, 1180px);
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .site-branding {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .site-branding__logo {
        width: min(260px, 78vw);
        height: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .signal-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .signal-row__pill {
        grid-column: 2;
        width: fit-content;
    }

    .cookie-law__actions {
        justify-content: stretch;
    }

    .cookie-law__button {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .streamhub-bg__grid,
    .streamhub-bg__sweep,
    .streamhub-bg__pulse,
    .streamhub-bg__canvas,
    .site-branding::after {
        animation: none;
    }

    .site-branding::after {
        opacity: 0;
    }
}
