/* =============================================================================
   Learning Platform — Dev Landing Page Styles
   Phase 0A: Clean, professional status page
   F05 WCAG 2.2 AA: skip-link, focus rings, contrast tuning, motion / contrast
                   media queries, visually-hidden landmark labels.
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* F05 WCAG 2.4.1 — skip link, visible only on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a202c;
    color: #ffffff;
    padding: 0.6rem 1rem;
    z-index: 1000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 6px 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #ffd166;
    outline-offset: 2px;
}

/* F05 WCAG 1.3.1 / 4.1.2 — visually-hidden helper for screen-reader-only labels */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* F05 WCAG 2.4.7 — universal visible focus ring */
:focus-visible {
    outline: 3px solid #2b6cb0;
    outline-offset: 2px;
    border-radius: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    width: 100%;
    max-width: 520px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    text-align: center;
}

/* Logo area */
.logo-area {
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

/* Environment badge */
.env-badge {
    display: inline-block;
    background: #ebf5ff;
    color: #2b6cb0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

/* Info table */
.info-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.info-table tr {
    border-bottom: 1px solid #edf2f7;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.info-table .label {
    font-weight: 600;
    color: #4a5568; /* F05 WCAG 1.4.3 — ≥7:1 on white (was #718096 ≈ 4.5:1) */
    width: 100px;
}

.info-table code {
    background: #edf2f7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

/* Status dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Coming next section */
.next-steps {
    text-align: left;
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.next-steps h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    font-size: 0.85rem;
    color: #2d3748; /* F05 WCAG 1.4.3 — deeper grey for AAA-grade body text */
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.next-steps li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a0aec0;
}

/* Footer */
footer {
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
}

footer p {
    font-size: 0.75rem;
    color: #4a5568; /* F05 WCAG 1.4.3 — raise contrast (was #a0aec0) */
}

/* F05 WCAG 2.3.3 — honour user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .status-dot { animation: none !important; }
}

/* F05 WCAG 1.4.6 — high-contrast adaptation */
@media (prefers-contrast: more) {
    body { background: #ffffff; color: #000000; }
    .card { box-shadow: 0 0 0 2px #000000; }
    .info-table .label,
    .next-steps li,
    footer p { color: #000000; }
    .env-badge { background: #000000; color: #ffffff; }
    :focus-visible { outline-color: #000000; }
}

/* F05 — high-DPI dark-mode courtesy support */
@media (prefers-color-scheme: dark) {
    body { background: #1a202c; color: #e2e8f0; }
    .card { background: #2d3748; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
    h1 { color: #f7fafc; }
    .info-table .label,
    .next-steps li,
    .next-steps h2,
    footer p { color: #e2e8f0; }
    .info-table tr { border-bottom-color: #4a5568; }
    .next-steps { background: #1a202c; }
    .info-table code { background: #1a202c; color: #f7fafc; }
    .env-badge { background: #2c5282; color: #ebf8ff; }
    :focus-visible { outline-color: #ffd166; }
}
