﻿/* =========================================================
   SFONDO PAGINA (quello piccolo che ti piaceva)
   ========================================================= */
.instructor-page {
    background: radial-gradient( circle at 60% 35%, /* 20% in altezza */
    rgba(124, 58, 237, 0.25) 0%, /* viola tenue */
    rgba(0, 0, 0, 1) 50% /* sfuma in nero */
    ), #000; /* colore di base */
    background-attachment: fixed; /* opzionale: effetto più pieno */
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}


/* =========================================================
   HERO
   ========================================================= */
.instructor-hero {
    padding: 3rem 2.5rem;
    background: transparent; /* niente cornice / box */
}

.instructor-portrait {
    max-width: 290px;
    border: none;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.instructor-name {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.instructor-bio {
    color: rgba(255,255,255,.8);
    max-width: 62rem;
}

/* pill social */
.social-pill {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s ease;
}

    .social-pill:hover {
        background: #fff;
        color: #111;
    }

/* chip info */
.info-chip {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px; /* ridotto da 999px a 6px */
    padding: .3rem .75rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(255,255,255,.6);
}


/* =========================================================
   BOTTONE SUBSCRIBE (torna viola)
   ========================================================= */
.btn-instructor-cta {
    background: #7c3aed;
    color: #fff;
    border-radius: 999px;
    padding: .65rem 1.5rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 34px rgba(124,58,237,.4);
    transition: .15s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

    .btn-instructor-cta:hover {
        background: #fff;
        color: #7c3aed;
        box-shadow: 0 12px 36px rgba(255,255,255,.12);
    }

/* =========================================================
   SEZIONE COURSES (paginata) – stile RELATED
   ========================================================= */
.instructor-courses {
    margin-bottom: 3rem;
}

    .instructor-courses h3 {
        color: #fff;
    }

/* wrapper che contiene le pagine */
.inst-courses-wrapper {
    position: relative;
    min-height: 120px;
}

/* una pagina = 4 corsi */
.inst-courses-page {
    position: absolute;
    inset: 0;
    transition: transform .25s ease, opacity .25s ease;
}

    .inst-courses-page.is-active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
        z-index: 2;
    }

    .inst-courses-page.is-hidden-right {
        opacity: 0;
        transform: translateX(32px);
        pointer-events: none;
    }

    .inst-courses-page.is-hidden-left {
        opacity: 0;
        transform: translateX(-32px);
        pointer-events: none;
    }

/* frecce top-right */
.inst-courses-prev:disabled,
.inst-courses-next:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* =========================================================
   CARD CORSI – IDENTICA A RELATED
   ========================================================= */
.instructor-course-row {
    background: rgba(255,255,255,.0);
    border: 0px solid rgba(255,255,255,.02);
    transition: .15s ease;
}

    .instructor-course-row .video-current-desc {
        font-size: .8rem;
        color: rgba(255,255,255,.85); /* leggermente più visibile */
        line-height: 1.4;
    }


    .instructor-course-row:hover {
        background: rgba(255,255,255,.04);
        transform: translateY(-2px);
    }

/* ZOOM su hover immagine corso */
.instructor-thumb-wrap {
    flex: 0 0 230px;
    max-width: 230px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.instructor-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: top;
    display: block;
    background: #000;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.instructor-thumb-wrap:hover .instructor-thumb {
    transform: scale(1.08);
    filter: brightness(1.15);
}

/* leggero effetto overlay per coerenza estetica */
.instructor-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.25) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instructor-thumb-wrap:hover::after {
    opacity: 1;
}

/* titolo e testo */
.instructor-course-row .text-white {
    color: #fff !important;
}

.instructor-course-row .video-current-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.75); /* prima era tornato grigio scuro */
    line-height: 1.3;
}

/* link titolo con hover bianco */
.instructor-course-row a.text-white.text-decoration-none h4 {
    transition: .12s ease;
}

.instructor-course-row a.text-white.text-decoration-none:hover h4 {
    text-shadow: 0 0 18px rgba(255,255,255,.5);
}

/* badge minuti NON lo mostriamo: assicurati di non inserirlo nel razor;
   se arriva lo nascondiamo comunque */
.instructor-course-row .badge {
    display: none;
}


/* ===== All videos grid ===== */
.instructor-all-videos {
    margin-top: 2.5rem;
}

.instructor-avatar-pill {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle, #7c3aed 0%, #4c1d95 70%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    box-shadow: 0 8px 24px rgba(124,58,237,.5);
}

.filter-pill {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    padding: .35rem .7rem;
    color: rgba(255,255,255,.85);
    font-size: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: .15s ease;
}

    .filter-pill:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

.all-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.all-video-card {
    background: rgba(255,255,255,.015);
    border: 1px solid rgba(255,255,255,.02);
    border-radius: 14px;
    overflow: hidden;
    transition: .15s ease;
}

    .all-video-card:hover {
        background: rgba(255,255,255,.03);
    }

.all-video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.all-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .25s ease;
}

.all-video-card:hover .all-video-thumb {
    transform: scale(1.04); /* zoom hover */
}

.all-video-duration {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 2px 8px;
    font-size: .65rem;
    border-radius: 6px;
}

.all-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.9rem;
    opacity: 0;
    transition: .2s ease;
    background: radial-gradient(circle, rgba(0,0,0,.0) 0%, rgba(0,0,0,.45) 75%);
}

.all-video-card:hover .all-video-play {
    opacity: 1;
}

.all-video-body {
    padding: .8rem .9rem 1rem .9rem;
}

.all-video-title {
    font-size: .9rem;
    color: #fff;
    margin-bottom: .25rem;
}

.all-video-sub {
    color: rgba(255,255,255,.6);
    font-size: .7rem;
}

/* responsive */
@media (max-width: 991.98px) {
    .all-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .all-videos-grid {
        grid-template-columns: 1fr;
    }

    .filter-pill {
        font-size: .65rem;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .instructor-hero {
        padding: 2rem 1.25rem;
    }

    .instructor-thumb-wrap {
        flex: 0 0 180px;
        max-width: 180px;
    }
}
