* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    color: #1a202c;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
}
h1 {
    text-align: center;
    color: #1a202c;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
h2 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
p {
    color: #4a5568;
    line-height: 1.7;
}
.description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
}
.description strong {
    color: #2d3748;
    font-weight: 600;
}
.demo-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.demo-section h2 {
    margin-top: 0;
}
.demo-section > p {
    color: #718096;
    margin-bottom: 1.5rem;
}
.setup-info h2 {
    margin-top: 0;
}
.setup-info ol {
    line-height: 1.8;
    padding-left: 1.5rem;
    counter-reset: step-counter;
    list-style: none;
}
.setup-info ol li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: #2d3748;
}
.setup-info ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}
.setup-info .status-badge-inline {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    margin-left: 0.5rem;
}
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    vertical-align: middle;
}
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.status-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.status-checking {
    background: linear-gradient(135deg, #fbd38d 0%, #f6ad55 100%);
    color: #744210;
    box-shadow: 0 2px 4px rgba(251, 211, 141, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}
.status-online {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}
.status-offline {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(252, 129, 129, 0.3);
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.demo-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.demo-controls input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    color: #2d3748;
}
.demo-controls input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
.demo-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2d3748;
}
.demo-controls select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
.demo-controls button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}
.demo-controls button:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}
.demo-controls button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.preview-container {
    border: 2px solid #ddd;
    border-radius: 4px;
    min-height: 400px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}
.preview-container.loading {
    background: #f8f9fa;
}
.preview-empty {
    color: #999;
    text-align: center;
    padding: 40px;
}
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    align-items: start;
}
@media (max-width: 1024px) {
    .split-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .split-view {
        gap: 0.75rem;
    }
}
.json-panel {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 600px) {
    .json-panel {
        border-radius: 6px;
    }
}
.json-panel h3 {
    margin: 0;
    padding: 1rem;
    background: #edf2f7;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}
@media (max-width: 600px) {
    .json-panel h3 {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
.image-preview-panel {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.image-preview-panel h3 {
    margin: 0;
    padding: 1rem;
    background: #edf2f7;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}
.image-preview-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #ffffff;
}
@media (max-width: 768px) {
    .image-preview-content {
        min-height: 300px;
        padding: 1rem;
    }
}
@media (max-width: 600px) {
    .image-preview-content {
        min-height: 250px;
        padding: 0.75rem;
    }
}
.image-preview-content img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .image-preview-content img {
        max-height: 350px;
    }
}
@media (max-width: 600px) {
    .image-preview-content img {
        max-height: 280px;
    }
}
.image-info {
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: #718096;
}
.image-info a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}
.image-info a:hover {
    text-decoration: underline;
}
.error-message {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #fc8181;
    font-size: 15px;
    line-height: 1.6;
}
.error-message strong {
    font-weight: 600;
}
.success-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #48bb78;
    font-size: 15px;
    line-height: 1.6;
}
.success-message strong {
    font-weight: 600;
}
.success-message a {
    color: #22543d;
    font-weight: 600;
    text-decoration: underline;
}
#jsonContent {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #f7fafc;
    border-radius: 8px;
    margin: 0;
    color: #2d3748;
}
@media (max-width: 768px) {
    #jsonContent {
        font-size: 12px;
        line-height: 1.5;
    }
}
@media (max-width: 600px) {
    #jsonContent {
        font-size: 11px;
        line-height: 1.4;
    }
}
.example-urls {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #718096;
}
.example-urls strong {
    color: #4a5568;
    font-weight: 600;
}
.example-urls a {
    color: #3182ce;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.example-urls a:hover {
    border-bottom-color: #3182ce;
}
.github-link {
    text-align: center;
    margin-top: 30px;
}
.github-link a {
    color: #0366d6;
    text-decoration: none;
}
.github-link a:hover {
    text-decoration: underline;
}
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0366d6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.metadata-container {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.metadata-container h4 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.metadata-item:last-child {
    border-bottom: none;
}
.metadata-label {
    font-weight: 500;
    color: #718096;
}
.metadata-value {
    color: #2d3748;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 500;
}
.cache-hit {
    color: #28a745;
    font-weight: 600;
}
.cache-miss {
    color: #ffc107;
    font-weight: 600;
}
.environment .view {
    border: 2px dashed #cbd5e0;
    box-shadow: 0 0 0 4px rgba(203, 213, 224, 0.1);
}
.demo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}
@media (max-width: 968px) {
    .demo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .demo-gallery {
        grid-template-columns: 1fr;
    }
}
.demo-gallery-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}
.demo-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.demo-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.demo-gallery-item-label {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.lightbox-close:hover {
    transform: scale(1.2);
}
.lightbox-label {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.badge-container {
    position: relative;
    display: inline-block;
}

