/* BlazorX Documentation Styles */

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Feature Section */
.feature-section {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature-section h2 {
    color: #333;
    margin-bottom: 1rem;
}

.quick-demo {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Documentation Page */
.docs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-page h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.docs-page .lead {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.docs-page h2 {
    color: #444;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.docs-page h3 {
    color: #555;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-page h4 {
    color: #666;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Code Blocks */
.code-block {
    background: #282c34;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block pre {
    margin: 0;
    color: #abb2bf;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #abb2bf;
}

/* Example Demo */
.example-demo {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 1rem 0;
}

.demo-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* API Table */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.api-table thead {
    background: #667eea;
    color: white;
}

.api-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.api-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.api-table tr:last-child td {
    border-bottom: none;
}

.api-table tbody tr:hover {
    background: #f8f9fa;
}

.api-table code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.doc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.doc-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.doc-card h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.example-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.example-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Navigation Menu Enhancements */
.nav-section {
    margin-top: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Alerts */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .docs-page h1 {
        font-size: 2rem;
    }
    
    .docs-page {
        padding: 1rem;
    }
    
    .example-demo {
        padding: 1rem;
    }
    
    .features-grid,
    .card-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.mt-5 {
    margin-top: 3rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.text-muted {
    color: #6c757d !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}
