/* MuizenMesh Webring HTML/CSS Demo Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.intro {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.intro h2 {
    margin-bottom: 1rem;
    color: #333;
}

.code-block {
    margin: 2rem 0;
}

.code-block h3 {
    margin-bottom: 0.5rem;
    color: #555;
}

pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.4;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.demo-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.demo-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.3rem;
}

.demo-card p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.widget-container {
    margin-bottom: 1rem;
}

.code-details {
    margin-top: 1rem;
}

.code-details summary {
    cursor: pointer;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 600;
    color: #495057;
}

.code-details pre {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.download-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.download-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
    text-decoration: none;
    color: white;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 3rem;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

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

/* Webring Banner Theme Styles */

/* Ocean Theme */
.theme-ocean {
    --webring-bg: #e3f2fd;
    --webring-border: #90caf9;
    --webring-text: #0d47a1;
    --webring-accent: #1976d2;
}

/* Sunset Theme */
.theme-sunset {
    --webring-bg: #fff3e0;
    --webring-border: #ffcc02;
    --webring-text: #e65100;
    --webring-accent: #ff9800;
}

/* Dark Theme */
.theme-dark {
    --webring-bg: #212529;
    --webring-border: #495057;
    --webring-text: #f8f9fa;
    --webring-accent: #0dcaf0;
}

/* Minimal Theme */
.theme-minimal {
    --webring-bg: #ffffff;
    --webring-border: #e9ecef;
    --webring-text: #6c757d;
    --webring-accent: #343a40;
}

/* Custom Theme */
/* Tokyo Theme */
.theme-tokyo {
    --webring-bg: #fef7f0;
    --webring-border: #ff6b9d;
    --webring-text: #2d1b69;
    --webring-accent: #ff006e;
}

/* Dracula Theme */
.theme-dracula {
    --webring-bg: #282a36;
    --webring-border: #6272a4;
    --webring-text: #f8f8f2;
    --webring-accent: #bd93f9;
}

/* Disco Theme */
.theme-disco {
    --webring-bg: #1a0033;
    --webring-border: #ff00ff;
    --webring-text: #ffffff;
    --webring-accent: #00ffff;
}

.theme-custom {
    --webring-bg: #f0f8ff;
    --webring-border: #9370db;
    --webring-text: #4b0082;
    --webring-accent: #8a2be2;
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3) !important;
}

/* Apply theme variables to webring banner */
webring-banner {
    display: block;
    margin: 1rem 0;
}

/* Since webring-banner uses Shadow DOM, we need to pass CSS custom properties */
/* The web component will read these CSS variables from the host element */

.theme-ocean {
    --webring-bg: #e3f2fd;
    --webring-border: #90caf9;
    --webring-text: #0d47a1;
    --webring-accent: #1976d2;
}

.theme-sunset {
    --webring-bg: #fff3e0;
    --webring-border: #ffcc02;
    --webring-text: #e65100;
    --webring-accent: #ff9800;
}

.theme-dark {
    --webring-bg: #212529;
    --webring-border: #495057;
    --webring-text: #f8f9fa;
    --webring-accent: #0dcaf0;
}

.theme-minimal {
    --webring-bg: #ffffff;
    --webring-border: #e9ecef;
    --webring-text: #6c757d;
    --webring-accent: #343a40;
}

.theme-custom {
    --webring-bg: #f0f8ff;
    --webring-border: #9370db;
    --webring-text: #4b0082;
    --webring-accent: #8a2be2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}