/* Self-hosted Inter font */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --background-color: #ffffff;
    --background-alt: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    background: var(--background-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-top: 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--background-alt);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--background-alt);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Introduction Section */
.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.intro-grid > * {
    min-width: 0;
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

.table-container,
.table-responsive,
.methods-summary {
    max-width: 100%;
    overflow-x: auto;
}

.header-example {
    overflow-wrap: anywhere;
}

.intro-content {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.api-demo {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.method.get {
    background-color: var(--success-color);
}

.url {
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--text-primary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.api-response pre {
    background: var(--text-primary);
    color: #a1a1aa;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.principle-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.principle-card p {
    color: var(--text-secondary);
}

/* Methods Grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.method-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.method-badge.get {
    background-color: var(--success-color);
}

.method-badge.post {
    background-color: var(--primary-color);
}

.method-badge.put {
    background-color: var(--warning-color);
}

.method-badge.patch {
    background-color: #8b5cf6;
}

.method-badge.delete {
    background-color: var(--error-color);
}

.method-badge.options {
    background-color: var(--secondary-color);
}

.method-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.method-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.method-example {
    background: var(--background-alt);
    padding: 1rem;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.method-example code {
    display: block;
    margin: 0.25rem 0;
    color: var(--text-primary);
}

/* Status Codes */
.status-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.status-category {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.status-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-code {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', monospace;
    color: white;
    min-width: 60px;
    text-align: center;
}

.status-code.success {
    background-color: var(--success-color);
}

.status-code.client-error {
    background-color: var(--warning-color);
}

.status-code.server-error {
    background-color: var(--error-color);
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Best Practices */
.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.practice-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.practice-examples {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example {
    padding: 1rem;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.example.good {
    background-color: rgba(5, 150, 105, 0.1);
    border-left: 4px solid var(--success-color);
}

.example.bad {
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 4px solid var(--error-color);
}

.label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.example.good .label {
    color: var(--success-color);
}

.example.bad .label {
    color: var(--error-color);
}

.example code {
    display: block;
    margin: 0.25rem 0;
    color: var(--text-primary);
}

/* Examples Section */
.examples-container {
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.example-tabs {
    display: flex;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--background-color);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.api-examples {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.api-example {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.api-example h4 {
    padding: 1rem;
    background: var(--background-alt);
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.request {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.response {
    background: var(--text-primary);
}

.response pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.response code {
    color: #a1a1aa;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #a1a1aa;
}

/* Pagination Page Specific Styles */
.hero-small {
    padding: 6rem 0 4rem;
}

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

.nav-menu a.active {
    color: var(--primary-color);
}

.method-detail {
    max-width: 900px;
    margin: 0 auto;
}

.method-info p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.pros {
    background-color: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.cons {
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.pros h4 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.cons h4 {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.pros li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.cons li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
}

.code-block {
    margin: 2rem 0;
}

.code-block h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.code-block pre {
    background: var(--text-primary);
    color: #a1a1aa;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--background-alt);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background: var(--background-alt);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(5, 150, 105, 0.15);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(220, 38, 38, 0.15);
    color: var(--error-color);
}

.decision-guide {
    margin-top: 3rem;
}

.decision-guide h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Caching Page Styles */
.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.example-desc {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Additional styles for multi-page structure */

/* Hero small variant for sub-pages */
.hero-small {
    padding: 6rem 0 4rem;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Intro text */
.intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Methods table */
.methods-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.methods-table th,
.methods-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.methods-table th {
    background: var(--background-alt);
    font-weight: 600;
}

.methods-table tr:hover {
    background: var(--background-alt);
}

.table-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Method detail sections */
.method-detail {
    margin-bottom: 2rem;
}

.method-header-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.method-props {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prop {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prop.safe, .prop.idempotent, .prop.cacheable {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
}

.prop.not-safe, .prop.not-idempotent {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
}

/* Request/response labels */
.request-body-label,
.response-label {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Comparison tables */
.comparison-table {
    margin-top: 1.5rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.comparison-table th {
    background: var(--background-alt);
}

/* Status codes page */
.status-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.status-class {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 700;
    color: white;
    min-width: 60px;
    text-align: center;
}

.status-badge.informational {
    background: var(--secondary-color);
}

.status-badge.success {
    background: var(--success-color);
}

.status-badge.redirect {
    background: var(--primary-color);
}

.status-badge.client-error {
    background: var(--warning-color);
}

.status-badge.server-error {
    background: var(--error-color);
}

/* Status grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border-color);
}

.status-card.success-card {
    border-left-color: var(--success-color);
}

.status-card.redirect-card {
    border-left-color: var(--primary-color);
}

.status-card.error-card {
    border-left-color: var(--warning-color);
}

.status-card.server-error-card {
    border-left-color: var(--error-color);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-header h3 {
    margin: 0;
}

.when-to-use {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.when-to-use ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.example-response {
    margin-top: 1rem;
}

.example-response pre {
    background: var(--text-primary);
    color: #a1a1aa;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.8rem;
}

/* Best practices page */
.practice-detail {
    margin-bottom: 3rem;
}

.practice-detail h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Versioning cards */
.versioning-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.versioning-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.versioning-card h3 {
    margin-bottom: 0.5rem;
}

.versioning-card .recommended {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Pagination cards */
.pagination-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.pagination-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Security cards */
.security-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.security-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Error format */
.error-format {
    margin-bottom: 2rem;
}

/* Examples page */
.api-examples-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.api-example-full {
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.api-example-full h3 {
    padding: 1.25rem 1.5rem;
    background: var(--background-alt);
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.api-example-full .note {
    padding: 0.75rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
}

.request-full {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.request-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-alt);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.request-details {
    margin-top: 1rem;
}

.request-details p {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.request-details pre {
    background: var(--text-primary);
    color: #a1a1aa;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 0;
}

.response-full {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.response-full:last-child {
    border-bottom: none;
}

.response-full.error {
    background: rgba(220, 38, 38, 0.05);
}

.response-full p {
    margin: 0 0 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.response-full pre {
    background: var(--text-primary);
    color: #a1a1aa;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.85rem;
    margin: 0;
}

/* Guides grid for homepage */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.guide-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Quick reference grid */
.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.quick-ref-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-ref-card h3 {
    margin-bottom: 1.5rem;
}

.methods-quick,
.status-quick {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.method-quick-item,
.status-quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

/* URL examples */
.url-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.url-example-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.url-example-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.url-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.url-item .method {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

.url-item code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.url-item .desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: auto;
}

/* CTA center */
.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* HEAD method badge */
.method-badge.head {
    background-color: #14b8a6;
}

/* Mobile menu active state */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--background-color);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    
    .nav-menu.active li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active li:last-child {
        border-bottom: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .principles-grid,
    .methods-grid,
    .practices-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .status-categories {
        grid-template-columns: 1fr;
    }
    
    .example-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-button.active {
        border-bottom: 1px solid var(--border-color);
        border-left: 4px solid var(--primary-color);
    }
}

/* === SEO-007: Breadcrumb Navigation === */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.breadcrumb-item a {
    color: var(--text-secondary, #a0a0b0);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-item a:hover { color: var(--accent, #6366f1); }
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-secondary, #a0a0b0);
    opacity: 0.5;
}
.breadcrumb-current {
    color: var(--text-primary, #ffffff);
    font-weight: 500;
}

/* === SEO-009: Page Meta (Last Updated) === */
.page-meta {
    font-size: 0.8rem;
    color: var(--text-secondary, #a0a0b0);
    margin-top: 0.5rem;
    opacity: 0.7;
}
.page-meta time { font-weight: 500; }

/* === SEO-013: FAQ Section === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.faq-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary, #ffffff);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--accent, #6366f1);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.7;
}
.faq-answer p { margin-bottom: 0.5rem; }
.faq-answer ul { margin: 0.5rem 0 0.5rem 1.5rem; }
.faq-answer code {
    background: rgba(99,102,241,0.15);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* === SEO-008: Nav brand span (replaces h1) === */
.nav-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    letter-spacing: -0.02em;
}
