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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.function-nav {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.nav-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.nav-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.function-docs {
    animation: fadeIn 0.3s ease;
}

.function-title {
    color: #667eea;
    font-size: 2rem;
    padding: 2rem 2rem 0 2rem;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h3 {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    margin: 1rem 0;
}

.code-block code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

pre.code-block {
    margin: 1rem 0;
}

pre.code-block code {
    display: block;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #5568d3;
}

.copy-btn:active {
    background: #4451b8;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.get {
    background: #10b981;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

thead {
    background: #f9fafb;
}

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

th {
    font-weight: 600;
    color: #374151;
}

td code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #d63384;
}

.example {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.label {
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #555;
}

.interactive {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.interactive input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.interactive input:focus {
    outline: none;
    border-color: #667eea;
}

.test-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.test-btn:hover {
    background: #5568d3;
}

.test-btn:active {
    background: #4451b8;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    min-height: 50px;
    display: none;
}

.result.show {
    display: block;
}

.result.loading {
    background: #fffbeb;
    border-color: #fbbf24;
}

.result.success {
    background: #ecfdf5;
    border-color: #10b981;
}

.result.error {
    background: #fef2f2;
    border-color: #ef4444;
}

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

.info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info li:last-child {
    border-bottom: none;
}

footer {
    background: #f9fafb;
    padding: 1.5rem 2rem;
    text-align: center;
    color: #6b7280;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

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

    .interactive {
        flex-direction: column;
    }

    .test-btn {
        width: 100%;
    }
}
