/* Topics Page Specific Styles */

/* Topics Hero */
.topics-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, rgba(124, 77, 255, 0.2), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 229, 255, 0.2), transparent 50%);
}

.topics-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.topics-hero p {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    color: var(--text-secondary-dark);
    font-size: 1.2rem;
}

/* Search bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    display: flex;
    overflow: hidden;
    border-radius: 50px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary-dark);
    font-size: 1rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary-dark);
}

.search-bar button {
    width: 50px;
    background: transparent;
    border: none;
    color: var(--text-secondary-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-bar button:hover {
    color: var(--secondary-color);
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.topic-card {
    padding: var(--space-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.topic-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
}

.topic-header .topic-icon {
    margin-right: var(--space-sm);
    margin-bottom: 0;
}

.topic-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

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

.subtopics li {
    margin-bottom: var(--space-xs);
}

.subtopics a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--text-secondary-dark);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: var(--space-xs);
}

.subtopics a:hover {
    color: var(--secondary-color);
    border-left: 2px solid var(--secondary-color);
    padding-left: var(--space-sm);
    background: rgba(0, 229, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .topics-hero h1 {
        font-size: 2.5rem;
    }
    
    .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .topics-hero {
        padding: 8rem 0 3rem;
    }
    
    .topics-hero h1 {
        font-size: 2rem;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: var(--border-radius-lg);
    }
    
    .search-bar input {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .search-bar button {
        width: 100%;
        padding: 0.5rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}