/* Directory Index Styles */

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

.directory-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--sb-color-border, #e5e7eb);
    padding-bottom: 1rem;
}

.directory-header h1 {
    color: var(--sb-color-heading, var(--sb-text-text));
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.directory-path {
    color: var(--sb-color-muted, #6b7280);
    font-family: monospace;
    font-size: 0.9rem;
    margin: 0;
}

.directory-section {
    margin-bottom: 3rem;
}

.directory-section h2 {
    color: var(--sb-color-heading, var(--sb-text-text));
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sb-color-border, #e5e7eb);
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-item,
.page-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: var(--sb-bg-secondary, #f9fafb);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    transition: all 0.2s ease;
}

.directory-item:hover,
.page-item:hover {
    background: var(--sb-bg-tertiary, #f3f4f6);
    border-color: var(--sb-color-accent, #3b82f6);
    transform: translateX(4px);
}

.directory-item a,
.page-item a {
    text-decoration: none;
    color: var(--sb-color-link, var(--sb-color-accent, #3b82f6));
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.directory-item a:hover,
.page-item a:hover {
    color: var(--sb-color-link-hover, var(--sb-color-accent-hover, #2563eb));
}

.page-count {
    color: var(--sb-color-muted, #6b7280);
    font-weight: normal;
    font-size: 0.85rem;
}

.page-meta {
    margin-top: 0.5rem;
    padding-left: 2rem;
    color: var(--sb-color-muted, #6b7280);
    font-size: 0.875rem;
    line-height: 1.6;
}

.page-meta-item {
    display: inline-block;
    margin-right: 1rem;
}

.page-meta-item::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--sb-color-border, #e5e7eb);
}

.page-meta-item:first-child::before {
    content: "";
    margin-right: 0;
}

.page-description {
    margin-top: 0.5rem;
    padding-left: 2rem;
    color: var(--sb-text-text, #374151);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tags {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--sb-color-accent-muted, #dbeafe);
    color: var(--sb-color-accent, #3b82f6);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sb-color-muted, #6b7280);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .directory-index-container {
        padding: 1rem;
    }

    .directory-header h1 {
        font-size: 1.75rem;
    }

    .directory-section h2 {
        font-size: 1.25rem;
    }

    .page-meta {
        padding-left: 1rem;
    }

    .page-description {
        padding-left: 1rem;
    }
}
