* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --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);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

/* Main Content */
main {
    padding: 40px 0;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

/* Example Sections */
.example-section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.example-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.example-header {
    margin-bottom: 20px;
}

.example-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.example-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Code Blocks */
.code-block {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block code {
    color: #e5e7eb;
}

/* Demo Areas */
.example-demo {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-demo > div {
    width: 100%;
    height: 100%;
}

/* Maps Grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.maps-grid > div {
    min-height: 300px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

/* Output Box */
.output-box {
    background: var(--bg-dark);
    color: #10b981;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    margin-top: 10px;
    min-height: 60px;
    white-space: pre-wrap;
}

.demo-info {
    width: 100%;
}

.demo-info p {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Install Section */
.install-section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.install-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.install-section p {
    margin-top: 20px;
    color: var(--text-light);
}

.install-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.install-section a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #e5e7eb;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 10px 0;
}

.footer a {
    color: #60a5fa;
    text-decoration: none;
    margin: 0 10px;
}

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

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

    .subtitle {
        font-size: 1rem;
    }

    .example-section {
        padding: 20px;
    }

    .code-block {
        padding: 15px;
        font-size: 0.75rem;
    }

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

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
