/* Password Migration Guide - Main Stylesheet
   Mobile-first, minimal, fast-loading
   =========================================== */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fafafa;
    margin: 0;
    padding: 0;
}

/* Layout */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Typography */
h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #1a1a1a;
}

h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #444;
}

p {
    margin-bottom: 1em;
    color: #555;
}

/* Lists */
ul, ol {
    margin: 0 0 1.5em 0;
    padding-left: 1.5em;
    color: #555;
}

li {
    margin-bottom: 0.5em;
}

li li {
    margin-bottom: 0.25em;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #5b21b6;
}

/* Navigation */
.nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.nav-brand {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-right: auto;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.nav-links a {
    font-size: 0.9em;
    color: #555;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* Page intro */
.page-intro {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e8e8e8;
}

/* Callouts */
.callout {
    padding: 16px 20px;
    margin: 1.5em 0;
    border-radius: 4px;
}

.callout-info {
    background: #f0f4f8;
    border-left: 3px solid #3b82f6;
}

.callout-warning {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.callout-stop {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
}

.callout-decision {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
}

.callout strong {
    display: block;
    margin-bottom: 0.5em;
}

/* Status box (homepage) */
.status {
    background: #f0f4f8;
    border-left: 3px solid #5a7;
    padding: 16px 20px;
    margin: 2em 0;
    font-size: 0.95em;
}

/* Disclosure */
.disclosure {
    background: #f8f8f8;
    padding: 12px 16px;
    font-size: 0.85em;
    color: #666;
    border-radius: 4px;
    margin: 2em 0;
}

.disclosure a {
    color: #555;
}

/* Numbered steps */
.steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3em;
    margin-bottom: 1.5em;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
}

/* Decision boxes */
.decision-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 1.5em 0;
}

.decision-box h4 {
    margin: 0 0 0.5em 0;
    color: #333;
}

.decision-box p {
    margin-bottom: 0.5em;
}

.decision-box p:last-child {
    margin-bottom: 0;
}

/* Placeholder markers (for development only, hidden in production) */
.placeholder {
    background: #fef9c3;
    border: 1px dashed #ca8a04;
    padding: 12px 16px;
    font-size: 0.85em;
    color: #854d0e;
    font-family: monospace;
    margin: 1em 0;
}

/* CTA buttons for affiliate links */
.cta-button {
    display: inline-block;
    background: #059669;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #047857;
    text-decoration: none;
}

.cta-button:visited {
    color: #fff;
}

/* Progress indicator */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 1.5em 0 2em;
    padding: 0;
    list-style: none;
    font-size: 0.85em;
    color: #888;
}

.progress-bar li {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

.progress-bar li::after {
    content: "→";
    margin: 0 8px;
    color: #ccc;
}

.progress-bar li:last-child::after {
    content: "";
    margin: 0;
}

.progress-bar .current {
    color: #1a1a1a;
    font-weight: 600;
}

.progress-bar .completed {
    color: #059669;
}

/* Footer */
footer {
    margin-top: 4em;
    padding-top: 2em;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85em;
    color: #888;
}

footer p {
    color: #888;
    margin-bottom: 0.5em;
}

footer a {
    color: #666;
}

/* Related pages section */
.related-pages {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #e8e8e8;
}

.related-pages h3 {
    margin-top: 0;
    font-size: 1em;
    color: #666;
}

.related-pages ul {
    margin-bottom: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #fafafa;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .container {
        padding: 40px 16px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-brand {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .nav-links {
        gap: 4px 12px;
    }

    table {
        font-size: 0.85em;
    }

    th, td {
        padding: 8px;
    }
}

/* Print styles */
@media print {
    .nav {
        display: none;
    }

    .container {
        max-width: none;
        padding: 20px;
    }

    a {
        color: #333;
        text-decoration: underline;
    }

    .callout {
        border: 1px solid #ccc;
    }
}
