/* CSS Variables based on Atticus Design System */
:root {
    /* Colors from help.atticus.tech */
    --header-bg: #282828;
    --header-text: #ffffff;
    --body-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-text: #737373;

    /* Status colors */
    --blue: #334bfa;
    --blue-bg: #dce1f9;
    --green: #0f7134;
    --green-bg: #d7efdc;

    /* UI elements */
    --border-color: rgb(230, 230, 230);
    --card-bg: rgb(255, 255, 255);
    --code-bg: rgb(242, 242, 242);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Typography */
    --font-family: system-ui, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--primary-text);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 24px 0;
    margin-bottom: 48px;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--header-text);
}

.site-subtitle {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Main content */
.main-content {
    padding: 0 20px 80px;
}

/* Page header */
.page-header {
    margin-bottom: 48px;
    text-align: center;
}

.page-header a:hover {
    color: var(--primary-text) !important;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.page-description {
    font-size: 18px;
    color: var(--secondary-text);
    margin: 0;
}

/* Alert cards */
.alert-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.info-card {
    background-color: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue);
}

.success-card {
    background-color: var(--green-bg);
    color: var(--green);
    border-color: var(--green);
    margin-top: 40px;
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.alert-icon svg {
    width: 100%;
    height: 100%;
}

.alert-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.alert-content strong {
    font-weight: 600;
}

.alert-content code {
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Step sections */
.step-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.step-section:last-of-type {
    border-bottom: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 16px;
    background-color: var(--header-bg);
    color: var(--header-text);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
    flex: 1;
}

/* Step content */
.step-content {
    padding-left: 0;
}

.step-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-text);
    margin: 0 0 20px 0;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content strong {
    font-weight: 600;
    color: var(--primary-text);
}

.step-content code {
    background-color: var(--code-bg);
    color: var(--primary-text);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

/* Attribute list */
.attribute-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.attribute-list li {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
}

.attribute-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.attribute-list li:first-child {
    padding-top: 0;
}

/* Images */
.image-container {
    margin: 32px 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 48px 0 32px;
    margin-top: 80px;
}

.footer-content {
    margin-bottom: 32px;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--header-text);
}

.footer-section p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.footer-links a {
    color: var(--header-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }

    .site-logo {
        height: 32px;
    }

    .site-title {
        font-size: 24px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-description {
        font-size: 16px;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-badge {
        min-width: auto;
    }

    .step-title {
        font-size: 20px;
    }

    .step-content {
        padding-left: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links .separator {
        display: none;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0 15px 60px;
    }

    .page-header {
        margin-bottom: 32px;
    }

    .step-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .alert-card {
        flex-direction: column;
        gap: 12px;
    }

    .image-container {
        margin: 24px 0;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer {
        background-color: transparent;
        color: var(--primary-text);
        border-bottom: 2px solid var(--border-color);
    }

    .step-section {
        page-break-inside: avoid;
    }

    .image-container {
        page-break-inside: avoid;
    }
}
