/* exelic-hub.css */

.exelic-taxonomy-hub-wrapper {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    display: block;
    margin: 10px 0 30px 0; 
    padding: 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.exelic-hub-group {
    margin-bottom: 20px;
    width: 100%;
}
.exelic-hub-group:last-child {
    margin-bottom: 0;
}

.exelic-hub-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.exelic-hub-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin: 0;
    padding: 0;
    border: none;
}

.exelic-swipe-hint {
    display: none; 
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

ul.exelic-hub-scroll-area {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    width: 100%;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

li.exelic-hub-list-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.exelic-hub-scroll-area a.exelic-hub-pill {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px; 
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    line-height: 1.2;
}

.exelic-pill-count {
    margin-left: 6px;
    color: #94a3b8;
    font-size: 0.9em;
    font-weight: 400;
    transition: color 0.2s ease;
}

/* 🔥 HOT BADGE STYLING */
.exelic-pill-badge.fire {
    margin-left: 8px;
    background-color: #fff1f2;
    color: #e11d48;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #fecdd3;
}

.exelic-hub-scroll-area a.exelic-hub-pill:hover,
.exelic-hub-scroll-area a.exelic-hub-pill:active {
    background-color: #0f5fa4;
    color: #ffffff;
    border-color: #0f5fa4;
    box-shadow: 0 4px 6px rgba(15, 95, 164, 0.15);
}

.exelic-hub-scroll-area a.exelic-hub-pill:hover .exelic-pill-count,
.exelic-hub-scroll-area a.exelic-hub-pill:active .exelic-pill-count {
    color: #e0f2fe; 
}

/* WordPress Core Screen Reader Utility (Hides long-tail keywords from UI but keeps them for Google) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* --- MOBILE BEHAVIOR --- */
@media (max-width: 768px) {
    .exelic-taxonomy-hub-wrapper {
        padding: 15px;
        margin: 5px 0 20px 0;
        border-radius: 8px;
    }
    .exelic-hub-group { margin-bottom: 18px; }
    .exelic-hub-title-wrapper { margin-bottom: 8px; }
    
    .exelic-swipe-hint {
        display: inline-block;
        animation: exelic-swipe-pulse 2.5s infinite;
    }

    ul.exelic-hub-scroll-area {
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 8px; 
        padding-right: 15px;
        scrollbar-width: none; 
    }
    ul.exelic-hub-scroll-area::-webkit-scrollbar { display: none; }
    li.exelic-hub-list-item { flex: 0 0 auto; }
}

@keyframes exelic-swipe-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}