/* Index page specific styles */

.index-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.index-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.index-header > * {
    position: relative;
    z-index: 1;
}

.index-header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Enhanced navigation tree */
.navigation-tree {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grade-section {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.grade-title {
    color: var(--color-black);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.grade-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grade-title a::before {
    content: '📚';
    font-size: 1.5rem;
}

.grade-title a:hover {
    color: #3498db;
}

/* Enhanced topics list */
.topics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-item {
    font-family: var(--body-font-family);
    font-size: var(--main-font-size);
    color: var(--main-font-color);
    line-height: var(--bs-body-line-height);

    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;

    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.subtopic-link {
    padding-top: 1rem;
}

/* Pages list */
.page-row {
    display: grid;
    grid-template-columns: 350px 1fr;
    align-items: center;
}

.page-row:last-child {
    border-bottom: none;
}

.page-name {
    padding-left: 1rem;
    position: relative;
    z-index: 1;
}


.version-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.version-btn {
    font-size: 0.9rem;
    color: var(--color-light-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem .5rem;
    text-decoration: none;

    border: 2px solid var(--color-light-blue);
    border-radius: 4px;
    transition: all 0.2s ease;
}


.version-btn:hover {
    background: var(--color-light-blue);
    color: white;

}

.version-btn.completed {
    background-color: var(--color-green);
    color: white;
    border-color: var(--color-green);
}

.version-btn.completed:hover {
    background-color: white;
    color: var(--color-green);
}


/* Statistics or summary section */
.site-stats {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    display: block;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Quick access section */
.quick-access {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-access h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: block;
    padding: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #3498db);
}
