/**
 * NAD Explore Topics - Frontend Styles
 * Version: 1.2.0
 */

.nad-explore-topics {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
}

.nad-explore-topics h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.nad-explore-topics .topic-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.nad-explore-topics .topic-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.nad-explore-topics .topic-pill {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease;
}

.nad-explore-topics .topic-pill:hover,
.nad-explore-topics .topic-pill:focus {
    background: rgba(0, 0, 0, 0.08);
    outline: 2px solid rgba(0, 163, 215, 0.3);
    outline-offset: 2px;
}

.nad-explore-topics a {
    text-decoration: none;
    color: inherit;
}

.nad-explore-topics .topic-post {
    color: #00a3d7;
    transition: color 0.2s ease;
}

.nad-explore-topics .topic-post:hover,
.nad-explore-topics .topic-post:focus {
    color: #0085b0;
    text-decoration: underline;
    outline: none;
}

.nad-explore-topics .arrow {
    opacity: 0.6;
}

.nad-explore-topics .nad-brand {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nad-explore-topics {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nad-explore-topics .topic-row {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nad-explore-topics .topic-pill {
        background: rgba(255, 255, 255, 0.1);
    }

    .nad-explore-topics .topic-pill:hover,
    .nad-explore-topics .topic-pill:focus {
        background: rgba(255, 255, 255, 0.15);
    }
}

