:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

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

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

/* Navbar */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Disney Banner */
.disney-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    animation: bannerGlow 3s ease-in-out infinite;
}

@keyframes bannerGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.disney-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.disney-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.disney-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.disney-text strong {
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.disney-text span {
    font-size: 1rem;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-card h3,
.feature-card h4 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Callouts */
.callout {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.callout.info {
    background: #dbeafe;
    border-color: var(--info);
}

.callout.warning {
    background: #fef3c7;
    border-color: var(--warning);
}

.callout.danger {
    background: #fee2e2;
    border-color: var(--danger);
}

.callout pre {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

/* Code Examples */
.code-example {
    margin: 1.5rem 0;
}

.code-header {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--success);
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    overflow-x: auto;
    margin: 0;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

:not(pre) > code {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

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

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

.tab-pane {
    display: none;
    padding: 1.5rem 0;
}

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

/* Diagram */
.diagram {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.diagram-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.diagram-box {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.diagram-box.db {
    background: #dbeafe;
    border: 2px solid var(--info);
}

.diagram-box.app {
    background: #e0e7ff;
    border: 2px solid var(--primary);
}

.diagram-box.cloud {
    background: #ddd6fe;
    border: 2px solid var(--secondary);
}

.diagram-box h4 {
    margin-bottom: 1rem;
}

.diagram-box ul {
    list-style: none;
    padding-left: 0;
}

.diagram-box li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.diagram-arrow {
    font-size: 2rem;
}

/* Tables */
.file-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.file-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.file-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Timeline */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-marker.done {
    background: var(--success);
    color: white;
}

.timeline-marker.current {
    background: var(--primary);
    color: white;
}

.timeline-marker:not(.done):not(.current) {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-date {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* API Section */
.api-section {
    margin-bottom: 2rem;
}

.api-method {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.api-method:last-child {
    border-bottom: none;
}

.api-method h4 {
    color: var(--primary);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1rem;
}

.api-method p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

/* Utilities */
.muted {
    color: var(--text-muted);
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .diagram-row {
        flex-direction: column;
    }

    .diagram-arrow {
        transform: rotate(90deg);
    }

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