/**
 * FTSP Noticias — Estilos Frontend
 *
 * Estilos para filtros, cards de noticias, compartir y single post.
 * Usa variables CSS del design system FTSP.
 */

/* ========================================
   FILTROS
   ======================================== */

.ftsp-not-filters {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
    padding: 28px 32px;
    background: var(--blanco-ftsp);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.ftsp-not-filters__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ftsp-not-filters__label {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--gris-oscuro-ftsp);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftsp-not-filters__input,
.ftsp-not-filters__select {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--gris-oscuro-ftsp);
    background: var(--blanco-ftsp);
    transition: border-color 0.2s ease;
    width: 100%;
}

.ftsp-not-filters__input:focus,
.ftsp-not-filters__select:focus {
    outline: none;
    border-color: var(--fuccia-ftsp);
}

.ftsp-not-filters__actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.ftsp-not-filters__btn {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ftsp-not-filters__btn--search {
    background: var(--fuccia-ftsp);
    color: var(--blanco-ftsp);
}

.ftsp-not-filters__btn--search:hover {
    background: var(--naranja-ftsp);
}

.ftsp-not-filters__btn--clear {
    background: transparent;
    color: var(--gris-oscuro-ftsp);
    border: 1px solid #ddd;
}

.ftsp-not-filters__btn--clear:hover {
    border-color: var(--fuccia-ftsp);
    color: var(--fuccia-ftsp);
}

/* ========================================
   CARDS (complemento a estilos de Bricks)
   ======================================== */

.ftsp-not-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ftsp-not-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   SOCIAL SHARE BUTTONS
   ======================================== */

.ftsp-not-share {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ftsp-not-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--gris-oscuro-ftsp);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ftsp-not-share-btn:hover {
    border-color: var(--fuccia-ftsp);
    color: var(--fuccia-ftsp);
}

.ftsp-not-share-fb:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.ftsp-not-share-wa:hover {
    border-color: #25d366;
    color: #25d366;
}

.ftsp-not-copy-link {
    position: relative;
}

.ftsp-not-copy-link.copied::after {
    content: 'Enlace copiado';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--negro-ftsp);
    color: var(--blanco-ftsp);
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    animation: ftsp-tooltip-fade 1.5s ease forwards;
}

@keyframes ftsp-tooltip-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========================================
   SINGLE POST — contenido
   ======================================== */

.ftsp-not-single-share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.ftsp-not-single-share-bar__label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gris-oscuro-ftsp);
}

/* ========================================
   EMPTY STATE (sin resultados)
   ======================================== */

.ftsp-not-empty {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Nunito', sans-serif;
    color: var(--gris-oscuro-ftsp);
}

.ftsp-not-empty__icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.ftsp-not-empty__text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .ftsp-not-filters {
        flex-direction: column;
        padding: 20px;
    }

    .ftsp-not-filters__group {
        width: 100%;
    }

    .ftsp-not-filters__actions {
        width: 100%;
        flex-direction: column;
    }

    .ftsp-not-filters__btn {
        width: 100%;
        text-align: center;
    }

    .ftsp-not-single-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
