/* Generic Index Page Styles - Works for ALL documentation areas */

:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --primary-light: #e8f0ff;
}

.docs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 1rem;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Search */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 20px 25px;
    font-size: 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-results {
    margin-top: 1rem;
    text-align: center;
}

.results-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.no-results {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Cards Grid */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.page-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.page-card:hover::before {
    opacity: 1;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Tree View */
.tree-view {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.tree-view h3 {
    margin-top: 0;
    color: #495057;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    background: white;
    border: 2px solid #e1e5e9;
    color: #666;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-number.ellipsis {
    border: none;
    cursor: default;
    color: #999;
}

.page-number.ellipsis:hover {
    border: none;
    color: #999;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}
