/* ===================================
   TOPICS PAGE STYLES
   =================================== */

.topics-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.topics-header {
    background: linear-gradient(135deg, #059669 0%, #047857 40%, #0d9488 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 2.5rem 1rem 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: gradient 18s ease infinite;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.topics-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.topics-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.topics-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.topics-header-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.topics-section {
    margin-bottom: 2.5rem;
}

.topics-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topics-section-title i {
    color: var(--primary-color);
}

.topics-section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.topics-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.topics-card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    overflow: hidden;
}

[data-theme="dark"] .topics-card {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.topics-card-link:hover .topics-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    border-color: rgba(5, 150, 105, 0.45);
}

[data-theme="dark"] .topics-card-link:hover .topics-card {
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

.topics-card .card-body {
    color: var(--text-primary);
}

.topics-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.topics-card-title:hover {
    color: var(--primary-color);
}

.topics-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.topics-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    transition: gap 0.2s ease, color 0.2s ease;
}

.topics-card-link:hover .topics-card-btn {
    color: #047857;
    gap: 0.5rem;
}

[data-theme="dark"] .topics-card-btn {
    color: #34d399;
}

[data-theme="dark"] .topics-card-link:hover .topics-card-btn {
    color: #6ee7b7;
}

.topics-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 2.5rem 1rem;
}
