/* Filtro activo */
.active-filter {
    background-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.5) !important;
    border-color: #2563eb !important;
    font-weight: 900 !important;
}

/* Theme Toggle */
body:not(.light-mode) #theme-toggle {
    color: #f8fafc !important;
    border-color: #334155 !important;
    background-color: rgba(30, 41, 59, 0.5) !important;
}

/* Píldoras de Enlaces (Móvil: Una columna pegada a la derecha) */
.link-pill {
    display: block;
    width: 75%;
    max-width: 450px;
    margin-left: auto;
    margin-right: -16px !important;
    padding: 0.5rem 1.5rem;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    border-radius: 999px 0 0 999px;
    text-align: right;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-pill:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Escritorio: Dos columnas enfrentadas al centro */
@media (min-width: 768px) {
    .link-pill {
        width: 90%;
        margin-right: 0 !important;
    }
    
    .link-pill.desktop-left {
        margin-left: 0;
        margin-right: auto !important;
        border-radius: 0 999px 999px 0;
        text-align: left;
    }
    
    .link-pill.desktop-right {
        margin-left: auto;
        margin-right: 0 !important;
        border-radius: 999px 0 0 999px;
        text-align: right;
    }
    .link-pill .icon-mobile { display: none; }
    .link-pill .icon-desktop { 
        display: inline-block;
        margin-right: 1.5rem;
        margin-left: -0.25rem;
    }
    .link-pill.desktop-left span.flex-grow { text-align: left; }
}

@media (max-width: 767px) {
    .link-pill .icon-desktop { display: none; }
    .link-pill .icon-mobile { display: inline-block; }
    .link-pill.desktop-left span.flex-grow { text-align: right; }
}

/* Categorías y Hashtags */
.category-chip-custom {
    background-color: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
}
body:not(.light-mode) .category-chip-custom {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #60a5fa !important;
}
@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
    #hashtag-cloud button {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
}

/* Contenedor de redes sociales */
.social-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Dock (píldora transparente) para las redes sociales */
.social-dock {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
}

/* Link individual del dock social */
.social-dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Círculo/Cuadrado del icono social */
.social-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* Texto debajo del icono social */
.social-dock-text {
    font-size: 8px;
    line-height: 1;
    text-transform: lowercase;
    font-weight: normal;
}

/* Iconos de los link-pill (márgenes ajustados) */
.link-pill-icon {
    margin-left: 1.5rem;
    margin-right: -0.25rem;
}
