/* Work It In — global styles */

html, body {
    margin: 0;
    background: #FFF8F1;
    color: #2C2118;
    font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #5B8C5A;
}

.invalid {
    outline: 1px solid #B54A4A;
}

.validation-message {
    color: #B54A4A;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Layout */
.workitin-layout {
    min-height: 100vh;
}

.workitin-appbar {
    border-bottom: 1px solid #E8D9C8 !important;
    backdrop-filter: blur(10px);
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.brand-title {
    font-weight: 700;
    line-height: 1.15;
    color: #1B5E3B;
}

.brand-tagline {
    color: #6B7A70;
    letter-spacing: 0.04em;
}

.brand-icon {
    font-size: 1.75rem !important;
}

/* Work It In logos: workitin-mini.jpg (icon), workitin.jpg (full) */
.brand-logo-link {
    gap: 0.65rem;
    max-width: 100%;
}

.brand-logo {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}

.brand-logo-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(27, 94, 59, 0.12);
    background: #fff;
}

.workitin-appbar .brand-logo-mini {
    width: 44px;
    height: 44px;
}

.brand-logo-main {
    height: 44px;
    width: auto;
    max-width: min(200px, 52vw);
}

.brand-logo-hero {
    width: min(320px, 88vw);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(27, 94, 59, 0.12);
}

.brand-logo-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand-logo-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1B5E3B;
}

.brand-logo-tagline {
    display: block;
    font-size: 0.72rem;
    margin-top: 0.1rem;
    color: #6B7A70;
}

.nav-brand-panel .brand-logo-mini {
    width: 52px;
    height: 52px;
}

/* Left drawer: full Work It In logo (workitin.jpg) */
.nav-brand-panel .nav-brand-logo .brand-logo-main,
.nav-brand-panel .brand-logo-main {
    height: auto;
    width: 100%;
    max-width: 200px;
    max-height: 72px;
    object-fit: contain;
}

.landing-hero-logo {
    width: min(320px, 88vw);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(27, 94, 59, 0.12);
    object-fit: contain;
    background: #fff;
}

/* Mission statement + hummingbird artwork */
.mission-statement {
    overflow: hidden;
}

.mission-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(44, 33, 24, 0.1);
    border: 1px solid #E8D9C8;
}

.mission-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.appbar-link {
    text-transform: none;
    font-weight: 500;
    color: #5C4636 !important;
}

.workitin-drawer {
    border-right: 1px solid #E8D9C8;
}

.nav-brand-panel {
    border-bottom: 1px solid #E8D9C8;
    background: linear-gradient(180deg, #FFF3E6 0%, #FFFDF9 100%);
}

.nav-section-label {
    color: #1B5E3B;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.nav-section-hint {
    color: #6B7A70;
}

.workitin-main {
    background:
        radial-gradient(circle at 12% 0%, rgba(224, 122, 61, 0.07), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(61, 122, 140, 0.06), transparent 24%),
        #FFF8F1;
    min-height: calc(100vh - 64px);
}

.workitin-footer {
    margin-top: 3rem;
    border-top: 1px solid #E8D9C8;
    background: #FFFDF9;
}

.footer-brand {
    font-weight: 700;
    color: #3D2B1F;
}

.footer-heading {
    color: #5C4636;
}

.footer-copy,
.footer-meta {
    color: #8A7360;
}

.footer-link {
    color: #6B5748 !important;
    text-decoration: none;
}

.footer-link:hover {
    color: #C45C26 !important;
}

.logout-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    padding: 8px 16px;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

/* Home / marketing */
.hero-panel,
.mkt-hero {
    padding: 0.5rem 0 1rem;
}

.mkt-hero-title {
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #2C2118;
}

.mkt-kicker {
    color: #C45C26;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.mkt-hero-card,
.mkt-value-card,
.mkt-subject-panel,
.mkt-step-card,
.mkt-cta-banner,
.hero-side-card,
.role-card,
.course-area-card,
.progress-ring-card,
.stat-tile,
.video-card {
    background: #FFFFFF;
    border-radius: 14px;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.mkt-hero-subject-link {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 140ms ease, border-color 140ms ease;
}

.mkt-hero-subject-link:hover {
    background: #FFF8F1;
    border-color: #E8D9C8;
}

.mkt-trust-row {
    color: #6B5748;
}

.mkt-value-card:hover,
.mkt-subject-panel:hover,
.course-area-card:hover,
.role-card:hover,
.video-card:hover {
    box-shadow: 0 8px 28px rgba(61, 43, 31, 0.08);
    transform: translateY(-2px);
}

.mkt-subject-accent {
    min-height: 100%;
}

.mkt-strand {
    padding: 0.35rem 0;
}

.mkt-step-num {
    color: #C45C26;
    font-weight: 700;
    opacity: 0.85;
}

.mkt-cta-banner {
    background: linear-gradient(120deg, #FFF3E6 0%, #FFFFFF 45%, #F3FAF8 100%);
    border-color: #E8D9C8 !important;
}

.mkt-step-card {
    background: #FFFDF9;
}

/* Video cards */
.video-thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #2a211c;
}

.video-thumb-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.video-duration {
    position: absolute !important;
    right: 10px;
    bottom: 10px;
}

.video-youtube-badge {
    position: absolute !important;
    left: 10px;
    top: 10px;
}

.recording-youtube {
    max-width: none;
    border-radius: 8px;
}

.video-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.video-player-shell {
    background: #1a1410;
}

/* Forms & account pages sit cleanly in the layout */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Dense readable tables */
.mud-table {
    background: #fff;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C45C26;
    outline-offset: 2px;
}

/* Initial landing page (public marketing shell) */
.landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 0%, rgba(224, 122, 61, 0.08), transparent 30%),
        radial-gradient(circle at 90% 5%, rgba(61, 122, 140, 0.07), transparent 28%),
        #FFF8F1;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 248, 241, 0.92);
    border-bottom: 1px solid #E8D9C8;
    backdrop-filter: blur(12px);
}

.landing-header-inner {
    min-height: 64px;
}

.landing-main {
    flex: 1;
}

.landing-footer {
    margin-top: auto;
}

.landing-nav .mud-button-root {
    text-transform: none;
    font-weight: 500;
}

/* Page chrome */
.page-header {
    border-bottom: 1px solid #E8D9C8;
    padding-bottom: 1rem;
}

.page-title {
    color: #2C2118;
    letter-spacing: -0.02em;
}

.page-subtitle {
    max-width: 48rem;
    line-height: 1.55;
}

.page-header-actions {
    margin-top: 0.25rem;
}

.login-gate {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F1 100%);
    border-radius: 16px;
}

.content-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #E8D9C8;
}

.content-section {
    margin-bottom: 2rem;
}

.section-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C45C26;
    font-weight: 700;
    font-size: 0.75rem;
}

.hub-empty {
    background: #FFFDF9;
    border: 1px dashed #E8D9C8;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}

.course-track-card,
.course-area-card {
    height: 100%;
}

/* Account pages */
.mud-main-content .mud-typography-h3 {
    color: #2C2118;
}

/* Mud nav readability */
.workitin-nav-menu .mud-nav-link {
    border-radius: 10px;
    margin-bottom: 2px;
}

.workitin-nav-menu .mud-nav-link.active {
    background: rgba(196, 92, 38, 0.1);
    color: #C45C26 !important;
    font-weight: 600;
}

/* Account nav buttons (full page load — static Identity routes) */
.account-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 8px 16px;
}

.account-nav-btn:hover {
    background: rgba(196, 92, 38, 0.08);
}

/* Static SSR Identity forms — real submit controls (MudStaticButton is not available) */
.account-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5C4636;
    margin-bottom: 0.25rem;
}

.account-form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    margin-top: 0.35rem;
    border: 1px solid #E8D9C8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: #2C2118;
}

.account-form-input:focus {
    outline: 2px solid #C45C26;
    outline-offset: 1px;
    border-color: #C45C26;
}

.account-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #C45C26 0%, #E07A3D 100%);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.25);
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.account-submit-btn:hover {
    filter: brightness(1.05);
    color: #fff;
}

.account-submit-btn:active {
    transform: translateY(1px);
}

.account-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.account-external-btn {
    margin-top: 0.35rem;
    background: #1f2a37;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.account-external-gmail {
    background: linear-gradient(90deg, #c5221f 0%, #ea4335 55%, #fbbc04 100%);
}

.account-external-sso {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
}

.account-text-link {
    color: #C45C26;
    font-weight: 600;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
}

.account-text-link:hover {
    text-decoration: underline;
}

/* ForceLoadButton anchors styled like MudButtons */
a.mud-button-root {
    text-decoration: none;
    cursor: pointer;
}

a.mud-button-root.mud-disabled {
    pointer-events: none;
    opacity: 0.55;
}

/* Nav drawer account links */
a.account-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.65rem 1rem;
    border-radius: 8px;
}

/* Tables */
.mud-table.mud-table-outlined {
    border-radius: 12px;
    overflow: hidden;
}

/* Make buttons with Href feel like links on keyboard focus */
.mud-button-root:focus-visible {
    outline: 2px solid #C45C26;
    outline-offset: 2px;
}

/* Module Content — YouTube embeds */
.module-youtube-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    margin-top: 0.5rem;
}

.module-youtube-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
