/* Consolidated Learning Topics Styles */

/* Learning Highlights Section */
.learning-highlights {
    padding: 4rem 0;
    background: var(--background-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.highlights-header {
    text-align: center;
    margin-bottom: 3rem;
}

.highlights-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.highlight-card.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.highlight-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-tags .tag {
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.highlights-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.highlights-note {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Topic Navigation */
.topic-navigation {
    padding: 5rem 0 3rem;
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-primary);
}

.topic-nav-header {
    text-align: center;
    margin-bottom: 3rem;
}

.topic-nav-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.topic-controls {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.topic-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.topic-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.topic-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Category Cards */
.category-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-card.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.category-card.featured .category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Category Header */
.category-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.category-card.featured .category-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2d3748;
}

.category-card.featured .category-title {
    color: white;
}

.category-description {
    font-size: 1rem;
    color: #718096;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.category-card.featured .category-description {
    color: rgba(255, 255, 255, 0.9);
}

.category-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.expand-icon {
    font-size: 1.2rem;
    color: #a0aec0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.category-card.featured .expand-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #48bb78;
    color: white;
}

.status-completed {
    background: #4299e1;
    color: white;
}

.status-proficient {
    background: #ed8936;
    color: white;
}

.status-learning {
    background: #9f7aea;
    color: white;
}

.status-planned {
    background: #a0aec0;
    color: white;
}

.topic-count {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.category-card.featured .topic-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Category Topics */
.category-topics {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #111827;
}

.category-topics.expanded {
    max-height: 2000px;
}

.sub-topic {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.sub-topic:last-child {
    border-bottom: none;
}

.sub-topic:hover {
    background: #374151;
}

.sub-topic-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.sub-topic-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sub-topic-content {
    flex: 1;
}

.sub-topic-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #2d3748;
}

.sub-topic-description {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sub-topic-status {
    flex-shrink: 0;
}

/* Achievements */
.achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.achievement {
    background: #e6fffa;
    color: #234e52;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tags */
.sub-topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* View All Link */
.view-all-link {
    padding: 16px 24px;
    text-align: center;
    background: #111827;
    border-top: 1px solid #374151;
}

.view-all-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.view-all-link a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Filter Tabs Update */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 24px;
}

.topic-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.topic-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

/* Topic Stats */
.topic-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topic-navigation {
        padding: 3rem 0 2rem;
    }
    
    .topic-nav-header h2 {
        font-size: 2rem;
    }
    
    .topic-controls {
        padding: 0 1rem;
    }
    
    .search-container {
        margin-bottom: 1.5rem;
    }
    
    .filter-tabs {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .topic-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .category-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .sub-topic {
        padding: 16px 20px;
    }
    
    .sub-topic-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .category-title {
        color: #e2e8f0;
    }
    
    .category-description {
        color: #a0aec0;
    }
    
    .category-topics {
        background: #1a202c;
    }
    
    .sub-topic {
        border-color: #4a5568;
    }
    
    .sub-topic:hover {
        background: #2d3748;
    }
    
    .sub-topic-title {
        color: #e2e8f0;
    }
    
    .sub-topic-description {
        color: #a0aec0;
    }
    
    .tag {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .topic-search-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .filter-tab {
        background: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }
    
    .topic-stats {
        background: #1a202c;
    }
    
    .stat-number {
        color: #e2e8f0;
    }
    
    .stat-label {
        color: #a0aec0;
    }
}
