/* ==========================================================================
   PITCH COACH V2.2 - APPLICATION LAYOUTS (Setup, Live Evaluation, Results)
   ========================================================================== */

/* Top Global App Header */
.app-topbar {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Main Content Shell */
.app-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px 28px;
}

/* ==========================================================================
   1. Setup Screen (2-column balanced desktop, 1-column mobile)
   ========================================================================== */
.setup-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.setup-grid {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.setup-col-config {
    display: flex;
    flex-direction: column;
}

.setup-col-evaluators {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.setup-header {
    margin-bottom: var(--space-5);
}

.setup-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.setup-header p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.setup-actions-primary {
    margin-top: var(--space-2);
}

.setup-actions-primary .btn {
    width: 100%;
}

.web-app-footer,
.results-page-footer {
    margin-top: 20px;
    padding: 14px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-stone);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.web-app-footer .footer-line,
.results-page-footer .footer-line {
    margin: 0;
    font-weight: 400;
}

.web-app-footer .footer-org-link,
.results-page-footer .footer-org-link {
    color: #2D7D78;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.web-app-footer .footer-org-link:hover,
.results-page-footer .footer-org-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.web-app-footer .footer-legal,
.results-page-footer .footer-legal {
    font-size: 11px;
    color: #7D8892;
}

.web-app-footer .footer-legal-link,
.results-page-footer .footer-legal-link {
    color: inherit;
    text-decoration: none;
}

.web-app-footer .footer-legal-link:hover,
.results-page-footer .footer-legal-link:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   2. Live Evaluation Stage (Eliminates empty central space)
   ========================================================================== */
.hud-overlay {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hud-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
}

.hud-top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-stage-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.hud-stage-card .evaluator-hero-stage {
    max-height: 380px;
    margin-bottom: 12px;
}

.hud-evaluator-strip {
    width: 100%;
}

/* Results screen wrapper */
#resultsScreen {
    width: 100%;
}
