/* The Core landing page — fullscreen iframe + stacked auth-only bar.
 * Kept intentionally scoped via body.tc-embed-body so nothing leaks to the
 * rest of the site. */

html,
body.tc-embed-body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Single scroll context lives inside the iframe, not the outer page. */
    overflow: hidden;
    background-color: #0a0a0a;
    /* Deliberately no global text color — it cascades into the auth modal
     * (white-background Bootstrap form) and makes every label invisible.
     * The iframe, the top bar, and the modal each own their own colors. */
}

body.tc-embed-body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #111827;
}

/* Belt-and-braces: the theme's modal stylesheet has form-label rules that
 * keep winning the cascade, so force dark text on labels and helper copy
 * inside the auth modal. Scoped to #authModal / #htu-auth so the rest of
 * the site is untouched. */
#authModal,
#authModal .modal-content,
#htu-auth,
#htu-auth p,
#htu-auth small {
    color: #111827;
}

#authModal label,
#authModal .form-label,
#htu-auth label,
#htu-auth .form-label,
#htu-auth-registration label,
#htu-auth-login label,
body.tc-embed-body .form-label,
body.tc-embed-body label.form-label {
    color: #111827 !important;
    opacity: 1 !important;
}

#authModal p,
#htu-auth-registration p,
#htu-auth-login p {
    color: #374151 !important;
}

/* Hide the WP admin bar on this page — it would push the fixed layout by 32/46px. */
body.tc-embed-body #wpadminbar,
#wpadminbar.tc-embed-body {
    display: none !important;
}
html.tc-embed-html {
    margin-top: 0 !important;
}

/* ---------- Stacked auth-only header ---------- */
.tc-authbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background-color: #ffffff;
    border-bottom: 1px solid #eceef0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tc-authbar__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tc-authbar__brand img {
    height: 32px;
    width: auto;
    display: block;
}

.tc-authbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-authbar__user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 500;
}

.tc-authbar__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
}

.tc-authbar__link {
    color: #374151;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.tc-authbar__link:hover {
    color: #111827;
    background-color: #f3f4f6;
    text-decoration: none;
}

.tc-authbar__btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tc-authbar__btn--ghost {
    color: #374151;
    background-color: transparent;
    border: 1px solid #d1d5db;
}

.tc-authbar__btn--ghost:hover {
    color: #111827;
    background-color: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}

.tc-authbar__btn--primary {
    color: #ffffff;
    background-color: #dc2626;
    border: 1px solid #dc2626;
}

.tc-authbar__btn--primary:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
    text-decoration: none;
}

/* ---------- Fullscreen iframe ---------- */
.tc-embed {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-color: #0a0a0a;
}

.tc-embed__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background-color: #0a0a0a;
}

@media (max-width: 480px) {
    .tc-authbar {
        padding: 0 0.75rem;
    }
    .tc-authbar__btn {
        padding: 0 0.75rem;
        height: 34px;
        font-size: 0.875rem;
    }
}
