/* DBBasic Native Styles - Zero Dependencies */
/* Based on dbbasic-web-native component library */

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.header img {
    max-width: 400px;
    height: auto;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 20px;
    color: #6b7280;
    font-weight: 500;
}

/* Module Cards */
.module-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.module-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.module-card img {
    max-width: 200px;
    height: auto;
    margin: 16px 0;
}

.module-card ul {
    list-style: none;
    padding: 0;
}

.module-card li {
    padding: 8px 0;
    color: #4b5563;
}

.module-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.module-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a1a1a;
}

h1 { font-size: 48px; }
h2 {
    font-size: 36px;
    margin-top: 48px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}
h3 { font-size: 28px; margin-top: 32px; }
h4 { font-size: 22px; }

/* Code blocks */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
}

code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #667eea;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

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

th {
    background: #f9fafb;
    font-weight: 600;
    color: #1a1a1a;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #764ba2;
}

/* Badges/checkmarks */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #10b981;
    color: white;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 24px;
        border-radius: 8px;
    }

    .header img {
        max-width: 280px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
}

/* Syntax highlighting (basic) */
.highlight .k { color: #c678dd; } /* keyword */
.highlight .s { color: #98c379; } /* string */
.highlight .n { color: #e06c75; } /* name */
.highlight .c { color: #5c6370; } /* comment */
