/* Enhanced SEO and UX styling for Catzilla Documentation */

/* Improve readability and SEO score */
body {
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Better heading hierarchy for SEO */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

/* Performance badges styling */
.performance-badge {
    display: inline-block;
    background: linear-gradient(45deg, #2980B9, #3498DB);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    margin: 0.25rem;
    box-shadow: 0 2px 10px rgba(41, 128, 185, 0.3);
    transition: transform 0.2s ease;
}

.performance-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.4);
}

/* Code block enhancements for better UX */
.highlight {
    border-left: 4px solid #2980B9;
    border-radius: 4px;
    overflow-x: auto;
}

/* Navigation improvements */
.wy-nav-side {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}

/* Logo styling */
.wy-side-nav-search {
    background: #2980B9;
}

/* Table styling for performance comparisons */
table.performance-table {
    margin: 1rem 0;
    border-collapse: collapse;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

table.performance-table th {
    background-color: #2980B9;
    color: white;
    font-weight: 600;
}

table.performance-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Feature list styling */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-item {
    padding: 1rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
a:focus,
button:focus {
    outline: 2px solid #2980B9;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wy-nav-side,
    .wy-nav-content-wrap .wy-nav-top {
        display: none;
    }

    .wy-nav-content {
        margin-left: 0;
    }
}
