/*
Theme Name: ANS TV Play
File: assets/css/live-home.css
Description: Sezione dirette TV e Radio nella home page
*/

/* =========================================================
   SEZIONE DIRETTE HOME
   ========================================================= */

.home-live {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 34px 20px 48px;
    background:
        radial-gradient(circle at 15% 20%, rgba(246, 198, 70, 0.10), transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(31, 111, 255, 0.10), transparent 38%),
        #061127;
    overflow: hidden;
}

.home-live::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.home-live__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-live__heading {
    margin: 0 0 22px;
    text-align: center;
}

.home-live__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #f6c646;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-live__eyebrow::before,
.home-live__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(246, 198, 70, 0.65);
}

.home-live__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.home-live__subtitle {
    max-width: 620px;
    margin: 9px auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    line-height: 1.55;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.live-card {
    position: relative;
    min-height: 240px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.live-card::before {
    content: "";
    position: absolute;
    z-index: -2;
    width: 270px;
    height: 270px;
    right: -100px;
    top: -115px;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.44;
}

.live-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 35%, transparent 70%, rgba(255, 255, 255, 0.035));
    pointer-events: none;
}

.live-card--tv::before,
.live-card.tv::before {
    background: radial-gradient(circle, rgba(255, 55, 78, 0.90), rgba(255, 55, 78, 0));
}

.live-card--radio::before,
.live-card.radio::before {
    background: radial-gradient(circle, rgba(41, 120, 255, 0.95), rgba(41, 120, 255, 0));
}

.live-card:hover {
    transform: translateY(-5px);
    border-color: rgba(246, 198, 70, 0.46);
    box-shadow:
        0 28px 68px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(246, 198, 70, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.live-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(3, 10, 25, 0.62);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.live-dot,
.pulse {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.live-dot::after,
.pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    opacity: 0;
    animation: livePulse 1.7s ease-out infinite;
}

.live-dot--red,
.pulse.red {
    background: #ff304f;
    box-shadow: 0 0 13px rgba(255, 48, 79, 0.9);
}

.live-dot--red::after,
.pulse.red::after {
    border: 1px solid rgba(255, 48, 79, 0.9);
}

.live-dot--blue,
.pulse.blue {
    background: #2584ff;
    box-shadow: 0 0 13px rgba(37, 132, 255, 0.95);
}

.live-dot--blue::after,
.pulse.blue::after {
    border: 1px solid rgba(37, 132, 255, 0.95);
}

@keyframes livePulse {
    0% {
        transform: scale(0.45);
        opacity: 0.9;
    }

    75%,
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.live-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-card h2,
.live-card__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.live-card p,
.live-card__description {
    max-width: 500px;
    margin: 10px 0 24px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.98rem;
    line-height: 1.55;
}

.live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 21px;
    border: 1px solid rgba(246, 198, 70, 0.72);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8d45c, #eebd35);
    color: #071126;
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow:
        0 12px 28px rgba(246, 198, 70, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    transition:
        transform 0.22s ease,
        filter 0.22s ease,
        box-shadow 0.22s ease;
}

.live-button:hover,
.live-button:focus-visible {
    color: #071126;
    text-decoration: none;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        0 16px 34px rgba(246, 198, 70, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.live-button:active {
    transform: translateY(0);
}

.live-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.live-button__icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Evita che la sezione sia troppo distante dallo slider */
.hero + .home-live,
.hero-slider + .home-live,
.anstv-hero + .home-live {
    margin-top: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .home-live {
        padding: 28px 18px 42px;
    }

    .live-card {
        min-height: 226px;
        padding: 24px;
        border-radius: 23px;
    }

    .live-card__top {
        margin-bottom: 25px;
    }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 700px) {
    .home-live {
        padding: 22px 14px 34px;
    }

    .home-live__heading {
        margin-bottom: 17px;
    }

    .home-live__subtitle {
        font-size: 0.9rem;
    }

    .live-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .live-card {
        min-height: auto;
        padding: 21px 19px;
        border-radius: 21px;
    }

    .live-card:hover {
        transform: none;
    }

    .live-card__top {
        margin-bottom: 22px;
    }

    .live-card h2,
    .live-card__title {
        font-size: 1.62rem;
    }

    .live-card p,
    .live-card__description {
        margin: 8px 0 20px;
        font-size: 0.92rem;
    }

    .live-button {
        width: 100%;
        min-height: 52px;
        border-radius: 14px;
        font-size: 0.96rem;
    }
}

/* Smartphone molto piccolo */
@media (max-width: 390px) {
    .home-live {
        padding-left: 11px;
        padding-right: 11px;
    }

    .live-card {
        padding: 19px 16px;
    }

    .live-badge {
        padding: 7px 10px;
        font-size: 0.68rem;
    }

    .live-card__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }
}

/* =========================================================
   ACCESSIBILITÀ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .live-card,
    .live-button,
    .live-dot::after,
    .pulse::after {
        animation: none !important;
        transition: none !important;
    }
}
