/* Examples Page Styles */

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

.examples-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.examples-container {
    padding: 3rem 0;
}

/* Filter Buttons */
.example-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

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

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.example-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.example-card.large {
    grid-column: span 2;
}

.example-card[data-hidden="true"] {
    display: none;
}

.example-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.example-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.example-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.example-tag.react { background: #61dafb; color: #333; }
.example-tag.vue { background: #4fc08d; }
.example-tag.node { background: #339933; }
.example-tag.redis { background: #dc382d; }
.example-tag.fullstack { background: #667eea; }
.example-tag.browser { background: #f7b93e; color: #333; }

.example-card > p {
    padding: 0 1.5rem 1rem;
    color: #666;
    line-height: 1.6;
}

.example-content {
    padding: 1.5rem;
}

.example-content h4 {
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.example-content h4:first-child {
    margin-top: 0;
}

.example-content pre {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

/* Metrics Preview */
.metrics-preview {
    background: #f0f7ff;
    border: 1px solid #d0e4ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.metrics-preview h4 {
    color: #0066cc;
    margin: 0 0 0.5rem 0;
}

.metrics-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metrics-preview li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.metrics-preview li::before {
    content: "📊";
    margin-right: 0.5rem;
}

/* Performance Tips */
.performance-tips {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.performance-tips h4 {
    color: #059669;
    margin: 0 0 0.5rem 0;
}

.performance-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.performance-tips li {
    padding: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.performance-tips li::before {
    content: "✅";
    margin-right: 0.5rem;
}

/* Architecture Diagram */
.architecture-diagram {
    margin-top: 1.5rem;
    text-align: center;
}

.architecture-diagram img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Integration Section */
.integration-section {
    margin-top: 4rem;
}

.integration-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.pattern-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pattern-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pattern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pattern-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.pattern-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.pattern-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pattern-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pattern-link:hover {
    color: #764ba2;
}

/* Code syntax improvements */
pre[class*="language-"] {
    font-size: 0.9rem;
    line-height: 1.5;
}

code[class*="language-"] {
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-card.large {
        grid-column: span 1;
    }
    
    .example-filters {
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
} 