/* internal.css — styling for the internal.drpaulk.ai portal.
 *
 * Layers on top of styles.css + theme.css (loaded first). Reuses the shared
 * Wake glass theme tokens (--wake-teal, --card-bg, --text-light, …) so the
 * internal portal matches the public drpaulk.ai look exactly; only the
 * portal-specific pieces (the "Internal" badge, the account control, the
 * welcome hero, and the area cards) are defined here.
 */

/* --- Logo as a link + "Internal" badge ---------------------------------- */
a.internal-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

a.internal-logo:hover {
    text-decoration: none;
}

.internal-badge {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wake-teal-deep);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(14, 159, 142, 0.32);
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    line-height: 1;
    white-space: nowrap;
}

/* --- Account control in the nav (signed-in name + Sign out) ------------- */
.nav-account {
    display: none; /* internal.js reveals it once a user is signed in */
    align-items: center;
    gap: 0.75rem;
}

.nav-account .user-name {
    color: var(--text-medium);
    font-weight: 500;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-signout {
    color: var(--wake-teal-deep);
    font-weight: 600;
    border: 1px solid rgba(14, 159, 142, 0.32);
    border-radius: 999px;
    padding: 0.32rem 0.9rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-signout:hover {
    background: rgba(45, 212, 191, 0.14);
    color: var(--text-light);
}

.nav-signout::after { content: none; } /* suppress the nav underline indicator */

/* --- Welcome hero ------------------------------------------------------- */
.internal-hero {
    padding: 8.5rem 0 1.5rem;
    text-align: center;
}

.internal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--wake-teal-deep);
    margin-bottom: 0.75rem;
}

.internal-title {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
    color: var(--text-light);
    margin: 0;
}

.internal-subtitle {
    color: var(--text-medium);
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
    max-width: 38rem;
    margin: 0.9rem auto 0;
    line-height: 1.6;
}

/* --- Area cards (Software / Business) ----------------------------------- */
.internal-section {
    padding: 2rem 0 5rem;
}

.internal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.internal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 2rem 1.9rem;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 12px 34px rgba(45, 90, 110, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.internal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 18px 44px rgba(45, 90, 110, 0.16), var(--glow-primary);
    text-decoration: none;
}

.internal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    font-size: 1.3rem;
    color: #fff;
    background: var(--wake-teal-grad);
    box-shadow: var(--glow-primary);
    margin-bottom: 1.1rem;
}

.internal-card-title {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.internal-card-desc {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.internal-card-go {
    margin-top: auto;
    color: var(--wake-teal-deep);
    font-weight: 600;
}

.internal-card-go .fa-arrow-right {
    transition: transform 0.25s ease;
}

.internal-card:hover .internal-card-go .fa-arrow-right {
    transform: translateX(4px);
}

/* --- Scaffolded section pages (software.html / business.html) ----------- */
.internal-page {
    padding: 8.5rem 0 5rem;
}

.internal-page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.internal-page-header h1 {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
    color: var(--text-light);
    margin: 0 0 0.6rem;
}

.internal-page-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}

.internal-placeholder {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(14, 159, 142, 0.35);
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    color: var(--text-medium);
}

.internal-placeholder .fa-screwdriver-wrench {
    font-size: 1.8rem;
    color: var(--wake-teal-deep);
    margin-bottom: 0.9rem;
}

.internal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--wake-teal-deep);
    font-weight: 600;
}

/* --- Embedded System Architecture viewer (software.html) ---------------- */
/* The architecture page widens its container so the embedded viewer (whose
 * L2 diagrams run far wider than the 1200px default) has room to breathe. */
.internal-page--arch .container {
    max-width: min(96vw, 1700px);
}

/* The viewer is a self-contained dark-themed SPA loaded in an iframe; the dark
 * background here avoids a light flash before its own theme paints. */
.arch-frame {
    display: block;
    width: 100%;
    height: min(82vh, 1100px);
    min-height: 560px;
    margin-top: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: #0d1117;
    box-shadow: 0 12px 34px rgba(45, 90, 110, 0.10);
}
