/* ============================================================
   TheriansHub — Paywall (Community page · non-logged-in)
   ------------------------------------------------------------
   Fullscreen layout with blurred peek of the feed (header, stories,
   posts, bottom nav) and a centered sign-in modal on top.
   ============================================================ */

body.th-paywall-body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.th-paywall {
    position: relative;
    min-height: 100vh;
    background: var(--color-bg);
    overflow: hidden;
}

.th-paywall__lang {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 30;
}

.th-paywall__peek {
    position: absolute;
    inset: 0;
    filter: blur(7px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    padding: 16px 16px 80px;
}

.th-peek__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.th-peek__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-peek__logo {
    width: 28px;
    height: 28px;
    background: var(--color-brand);
    border-radius: 7px;
    display: inline-block;
}

.th-peek__name {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.th-peek__actions {
    display: flex;
    gap: 8px;
}

.th-peek__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-border);
    display: inline-block;
}

.th-peek__stories {
    display: flex;
    gap: 12px;
    padding: 14px 0 18px;
    overflow: hidden;
}

.th-peek__story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.th-peek__story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-brand), #25c692);
    box-sizing: border-box;
}

.th-peek__story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    box-sizing: border-box;
}

.th-peek__story-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), #0f6e52);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    border: 2px solid var(--color-bg);
    box-sizing: border-box;
}

.th-peek__story-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.th-peek__posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.th-peek__post {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px;
}

.th-peek__post-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.th-peek__post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-border);
    flex-shrink: 0;
}

.th-peek__post-meta {
    flex: 1;
}

.th-peek__post-name {
    height: 10px;
    background: var(--color-border);
    border-radius: 4px;
    margin-bottom: 5px;
    width: 55%;
}

.th-peek__post-time {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    width: 30%;
    opacity: 0.7;
}

.th-peek__post-line {
    height: 10px;
    background: var(--color-border);
    border-radius: 4px;
    margin-bottom: 6px;
}

.th-peek__post-line--short {
    width: 75%;
}

.th-peek__bottomnav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 14px 16px;
    display: flex;
    justify-content: space-around;
}

.th-peek__navicon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--color-border);
    display: inline-block;
}

.th-peek__navicon--active {
    background: var(--color-brand);
}

.th-paywall__modal-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.th-paywall__modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px 32px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.th-paywall__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(29, 158, 117, 0.15);
    border: 1px solid rgba(29, 158, 117, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
}

.th-paywall__title {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.th-paywall__title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-brand);
    font-weight: 500;
}

.th-paywall__text {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 24px;
}

.th-paywall__cta {
    display: block;
    padding: 13px 24px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.th-paywall__cta--primary {
    background: var(--color-brand);
    color: white;
}

.th-paywall__cta--primary:hover,
.th-paywall__cta--primary:focus-visible {
    opacity: 0.92;
}

.th-paywall__cta--secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
    font-weight: 500;
}

.th-paywall__cta--secondary:hover,
.th-paywall__cta--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.03);
}

.th-paywall__back {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    margin-top: 18px;
    transition: color 0.2s ease;
}

.th-paywall__back:hover,
.th-paywall__back:focus-visible {
    color: var(--color-text);
}

@media (max-width: 480px) {
    .th-paywall__modal {
        padding: 32px 24px 24px;
    }

    .th-paywall__title {
        font-size: 1.375rem;
    }

    .th-peek__story-ring {
        width: 56px;
        height: 56px;
    }
}
