/**
 * Tidi Suite — Effetti sui titoli (statici)
 *
 * Scoped tramite la classe dinamica "tidi-effect-{effetto}" aggiunta da
 * TidiSuite\Plugin::get_title_effect_class() sul wrapper di ogni blocco
 * (Latest Posts Polylang, Post Carousel, Post Slider, Embed External Post).
 * Nessuna regola qui è marcata !important: applicandosi solo quando la
 * classe corrispondente è presente non c'è nulla da sovrascrivere.
 *
 * "Nessuno" non ha bisogno di alcuna regola: dopo la rimozione degli
 * effetti hardcoded dai CSS dei singoli moduli, l'hover di un link è già
 * inerte di default.
 *
 * Gli effetti che dipendono dal colore di riferimento del sito (Sovrapposizione
 * colore, Colore animato, Cursore accanto al titolo) non sono qui: vengono
 * generati in PHP da Frontend\TitleEffectOverride, con selettori identici
 * a quelli usati in questo file.
 */

/* ------------------------------------------------------------------
 * Selettori condivisi (titolo, categoria, autore) per ciascun modulo
 * ------------------------------------------------------------------
 * Titolo   : .tidi-lpp [class*="title"] a, .pcb-card-title a,
 *            .tps-slide-title a, .tps-thumb-title a, .tps-fw-title a,
 *            .tidi-eep__title a, .archive-card__title a
 * Categoria: .tidi-lpp__cat_single a, .pcb-layout-fashion .pcb-cat-tag,
 *            .tps-cat-link, .tps-fw-cat-single a, .tidi-eep__cat_single a,
 *            .archive-card__categories a, .archive-card__author-name a
 *            (il nome autore del tema è trattato come "self", stesso
 *            meccanismo della categoria: nessun parent-link da avvolgere)
 * Autore   : coppia parent:hover → child, sia layout classici che Fashion
 *            .tidi-lpp [class*="author-link"] / [class*="author-name"]
 *            .pcb-author-link / .pcb-author-name
 *            .tps-author-link / .tps-author
 *            .tps-fw-author-link / .tps-fw-author-name
 */

/* ============================================================
   Sottolineatura semplice — text-decoration: underline in hover
   ============================================================ */
.tidi-effect-underline-simple .tidi-lpp [class*="title"] a:hover,
.tidi-effect-underline-simple .tidi-lpp [class*="title"] a:focus,
.tidi-effect-underline-simple .pcb-card-title a:hover,
.tidi-effect-underline-simple .pcb-card-title a:focus,
.tidi-effect-underline-simple .tps-slide-title a:hover,
.tidi-effect-underline-simple .tps-slide-title a:focus,
.tidi-effect-underline-simple .tps-thumb-title a:hover,
.tidi-effect-underline-simple .tps-fw-title a:hover,
.tidi-effect-underline-simple .tps-thumb-title a:focus,
.tidi-effect-underline-simple .tps-fw-title a:focus,
.tidi-effect-underline-simple .tidi-eep__title a:hover,
.tidi-effect-underline-simple .archive-card__title a:hover,
.tidi-effect-underline-simple .tidi-eep__title a:focus,
.tidi-effect-underline-simple .archive-card__title a:focus,
.tidi-effect-underline-simple .tidi-lpp__cat_single a:hover,
.tidi-effect-underline-simple .tidi-lpp__cat_single a:focus,
.tidi-effect-underline-simple.pcb-layout-fashion .pcb-cat-tag:hover,
.tidi-effect-underline-simple.pcb-layout-fashion .pcb-cat-tag:focus,
.tidi-effect-underline-simple .tps-cat-link:hover,
.tidi-effect-underline-simple .tps-fw-cat-single a:hover,
.tidi-effect-underline-simple .tps-cat-link:focus,
.tidi-effect-underline-simple .tps-fw-cat-single a:focus,
.tidi-effect-underline-simple .tidi-eep__cat_single a:hover,
.tidi-effect-underline-simple .archive-card__categories a:hover,
.tidi-effect-underline-simple .archive-card__author-name a:hover,
.tidi-effect-underline-simple .tidi-eep__cat_single a:focus,
.tidi-effect-underline-simple .archive-card__categories a:focus,
.tidi-effect-underline-simple .archive-card__author-name a:focus,
.tidi-effect-underline-simple .tidi-lpp [class*="author-link"]:hover [class*="author-name"],
.tidi-effect-underline-simple .tidi-lpp [class*="author-link"]:focus [class*="author-name"],
.tidi-effect-underline-simple .pcb-author-link:hover .pcb-author-name,
.tidi-effect-underline-simple .pcb-author-link:focus .pcb-author-name,
.tidi-effect-underline-simple .tps-author-link:hover .tps-author,
.tidi-effect-underline-simple .tps-fw-author-link:hover .tps-fw-author-name,
.tidi-effect-underline-simple .tps-author-link:focus .tps-author,
.tidi-effect-underline-simple .tps-fw-author-link:focus .tps-fw-author-name {
    text-decoration: underline;
}

/* ============================================================
   Sottolineatura animata — comportamento storico della suite,
   reveal via background-size 0 → 100%
   ============================================================ */
.tidi-effect-underline-animated .tidi-lpp [class*="title"] a,
.tidi-effect-underline-animated .pcb-card-title a,
.tidi-effect-underline-animated .tps-slide-title a,
.tidi-effect-underline-animated .tps-thumb-title a,
.tidi-effect-underline-animated .tps-fw-title a,
.tidi-effect-underline-animated .tidi-eep__title a,
.tidi-effect-underline-animated .archive-card__title a,
.tidi-effect-underline-animated .tidi-lpp__cat_single a,
.tidi-effect-underline-animated.pcb-layout-fashion .pcb-cat-tag,
.tidi-effect-underline-animated .tps-cat-link,
.tidi-effect-underline-animated .tps-fw-cat-single a,
.tidi-effect-underline-animated .tidi-eep__cat_single a,
.tidi-effect-underline-animated .archive-card__categories a,
.tidi-effect-underline-animated .archive-card__author-name a,
.tidi-effect-underline-animated .tidi-lpp [class*="author-name"],
.tidi-effect-underline-animated .pcb-author-name,
.tidi-effect-underline-animated .tps-author,
.tidi-effect-underline-animated .tps-fw-author-name {
    background-image: linear-gradient(var(--tidi-main-color), var(--tidi-main-color));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .4s;
}

.tidi-effect-underline-animated .tidi-lpp [class*="title"] a:hover,
.tidi-effect-underline-animated .tidi-lpp [class*="title"] a:focus,
.tidi-effect-underline-animated .pcb-card-title a:hover,
.tidi-effect-underline-animated .pcb-card-title a:focus,
.tidi-effect-underline-animated .tps-slide-title a:hover,
.tidi-effect-underline-animated .tps-slide-title a:focus,
.tidi-effect-underline-animated .tps-thumb-title a:hover,
.tidi-effect-underline-animated .tps-fw-title a:hover,
.tidi-effect-underline-animated .tps-thumb-title a:focus,
.tidi-effect-underline-animated .tps-fw-title a:focus,
.tidi-effect-underline-animated .tidi-eep__title a:hover,
.tidi-effect-underline-animated .archive-card__title a:hover,
.tidi-effect-underline-animated .tidi-eep__title a:focus,
.tidi-effect-underline-animated .archive-card__title a:focus,
.tidi-effect-underline-animated .tidi-lpp__cat_single a:hover,
.tidi-effect-underline-animated .tidi-lpp__cat_single a:focus,
.tidi-effect-underline-animated.pcb-layout-fashion .pcb-cat-tag:hover,
.tidi-effect-underline-animated.pcb-layout-fashion .pcb-cat-tag:focus,
.tidi-effect-underline-animated .tps-cat-link:hover,
.tidi-effect-underline-animated .tps-fw-cat-single a:hover,
.tidi-effect-underline-animated .tps-cat-link:focus,
.tidi-effect-underline-animated .tps-fw-cat-single a:focus,
.tidi-effect-underline-animated .tidi-eep__cat_single a:hover,
.tidi-effect-underline-animated .archive-card__categories a:hover,
.tidi-effect-underline-animated .archive-card__author-name a:hover,
.tidi-effect-underline-animated .tidi-eep__cat_single a:focus,
.tidi-effect-underline-animated .archive-card__categories a:focus,
.tidi-effect-underline-animated .archive-card__author-name a:focus,
.tidi-effect-underline-animated .tidi-lpp [class*="author-link"]:hover [class*="author-name"],
.tidi-effect-underline-animated .tidi-lpp [class*="author-link"]:focus [class*="author-name"],
.tidi-effect-underline-animated .pcb-author-link:hover .pcb-author-name,
.tidi-effect-underline-animated .pcb-author-link:focus .pcb-author-name,
.tidi-effect-underline-animated .tps-author-link:hover .tps-author,
.tidi-effect-underline-animated .tps-fw-author-link:hover .tps-fw-author-name,
.tidi-effect-underline-animated .tps-author-link:focus .tps-author,
.tidi-effect-underline-animated .tps-fw-author-link:focus .tps-fw-author-name {
    background-size: 100% 1px;
}

/* ============================================================
   Testo in prospettiva — rotazione 3D sull'hover.
   display:inline-block è permanente (non solo in hover) per evitare
   un salto di layout — un titolo molto lungo non va più a capo su
   più righe finché questo effetto resta selezionato.
   ============================================================ */
.tidi-effect-perspective .tidi-lpp [class*="title"] a,
.tidi-effect-perspective .pcb-card-title a,
.tidi-effect-perspective .tps-slide-title a,
.tidi-effect-perspective .tps-thumb-title a,
.tidi-effect-perspective .tps-fw-title a,
.tidi-effect-perspective .tidi-eep__title a,
.tidi-effect-perspective .archive-card__title a,
.tidi-effect-perspective .tidi-lpp__cat_single a,
.tidi-effect-perspective.pcb-layout-fashion .pcb-cat-tag,
.tidi-effect-perspective .tps-cat-link,
.tidi-effect-perspective .tps-fw-cat-single a,
.tidi-effect-perspective .tidi-eep__cat_single a,
.tidi-effect-perspective .archive-card__categories a,
.tidi-effect-perspective .archive-card__author-name a,
.tidi-effect-perspective .tidi-lpp [class*="author-name"],
.tidi-effect-perspective .pcb-author-name,
.tidi-effect-perspective .tps-author,
.tidi-effect-perspective .tps-fw-author-name {
    display: inline-block;
    transition: transform .3s;
}

.tidi-effect-perspective .tidi-lpp [class*="title"] a:hover,
.tidi-effect-perspective .tidi-lpp [class*="title"] a:focus,
.tidi-effect-perspective .pcb-card-title a:hover,
.tidi-effect-perspective .pcb-card-title a:focus,
.tidi-effect-perspective .tps-slide-title a:hover,
.tidi-effect-perspective .tps-slide-title a:focus,
.tidi-effect-perspective .tps-thumb-title a:hover,
.tidi-effect-perspective .tps-fw-title a:hover,
.tidi-effect-perspective .tps-thumb-title a:focus,
.tidi-effect-perspective .tps-fw-title a:focus,
.tidi-effect-perspective .tidi-eep__title a:hover,
.tidi-effect-perspective .archive-card__title a:hover,
.tidi-effect-perspective .tidi-eep__title a:focus,
.tidi-effect-perspective .archive-card__title a:focus,
.tidi-effect-perspective .tidi-lpp__cat_single a:hover,
.tidi-effect-perspective .tidi-lpp__cat_single a:focus,
.tidi-effect-perspective.pcb-layout-fashion .pcb-cat-tag:hover,
.tidi-effect-perspective.pcb-layout-fashion .pcb-cat-tag:focus,
.tidi-effect-perspective .tps-cat-link:hover,
.tidi-effect-perspective .tps-fw-cat-single a:hover,
.tidi-effect-perspective .tps-cat-link:focus,
.tidi-effect-perspective .tps-fw-cat-single a:focus,
.tidi-effect-perspective .tidi-eep__cat_single a:hover,
.tidi-effect-perspective .archive-card__categories a:hover,
.tidi-effect-perspective .archive-card__author-name a:hover,
.tidi-effect-perspective .tidi-eep__cat_single a:focus,
.tidi-effect-perspective .archive-card__categories a:focus,
.tidi-effect-perspective .archive-card__author-name a:focus,
.tidi-effect-perspective .tidi-lpp [class*="author-link"]:hover [class*="author-name"],
.tidi-effect-perspective .tidi-lpp [class*="author-link"]:focus [class*="author-name"],
.tidi-effect-perspective .pcb-author-link:hover .pcb-author-name,
.tidi-effect-perspective .pcb-author-link:focus .pcb-author-name,
.tidi-effect-perspective .tps-author-link:hover .tps-author,
.tidi-effect-perspective .tps-fw-author-link:hover .tps-fw-author-name,
.tidi-effect-perspective .tps-author-link:focus .tps-author,
.tidi-effect-perspective .tps-fw-author-link:focus .tps-fw-author-name {
    transform: perspective(900px) rotateY(-6deg) rotateX(8deg);
}
