/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0077be;
    --secondary-color: #005a8c;
    --text-color: #333;
    --light-bg: #f4f8fb;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

section p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Lists */
ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

li strong {
    color: var(--secondary-color);
}

/* Code Elements */
code {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* API Endpoints */
.api-endpoints {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.endpoint {
    background-color: var(--white);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.endpoint h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    font-family: 'Courier New', Courier, monospace;
}

.endpoint-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.endpoint-url {
    display: block;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    word-break: break-all;
}

.api-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    color: #856404;
}

/* Spec Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.spec-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.spec-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.spec-item p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-color);
}

/* Schema Button */
.schema-link {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.schema-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.schema-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    section h3 {
        font-size: 1.25rem;
    }

    section p,
    li {
        font-size: 1rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }
}
