/* ==========================================================
   SourceSmack How-To Page
   File: _ss-how-to.css
   Namespace: how-to-
   ========================================================== */


/* ==========================================================
   PAGE TOKENS
   ========================================================== */

.how-to-page {
    --how-to-line: rgba(255, 255, 255, 0.11);
    --how-to-line-strong: rgba(255, 255, 255, 0.22);
    --how-to-panel: rgba(255, 255, 255, 0.035);
    --how-to-panel-strong: rgba(255, 255, 255, 0.06);
    --how-to-muted: rgba(255, 255, 255, 0.68);
    --how-to-radius-lg: 1.5rem;
    --how-to-radius-md: 1rem;
    --how-to-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);

    position: relative;
    overflow: hidden;
}

.how-to-page h1,
.how-to-page h2,
.how-to-page h3,
.how-to-page h4 {
    font-family: "Oswald", sans-serif;
}

.how-to-page p {
    line-height: 1.75;
}


/* ==========================================================
   SHARED KICKER
   ========================================================== */

.how-to-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;

    margin-bottom: 1rem;

    color: var(--bs-primary);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.how-to-kicker-dot {
    width: 0.55rem;
    height: 0.55rem;

    flex: 0 0 0.55rem;

    border-radius: 50%;

    background: var(--bs-primary);

    animation: how-to-pulse 2.2s infinite;
}


/* ==========================================================
   HERO
   ========================================================== */

.how-to-hero {
    position: relative;
}

.how-to-hero::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 44rem;
    height: 44rem;

    top: -28rem;
    left: -20rem;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(var(--bs-primary-rgb), 0.15),
            transparent 68%
        );
}

.how-to-hero-copy {
    max-width: 920px;
}

.how-to-hero-title {
    margin-bottom: 1.2rem;

    font-size:
        clamp(
            2.6rem,
            6vw,
            5.6rem
        );

    line-height: 0.98;

    letter-spacing: -0.025em;
}

.how-to-hero-title span {
    display: block;

    color: var(--bs-primary);
}

.how-to-hero-lead {
    max-width: 850px;

    margin: 0 auto;

    color: var(--how-to-muted);

    font-size: clamp(1rem, 1.7vw, 1.2rem);
}


/* ==========================================================
   VIDEO GRID
   ========================================================== */

.how-to-video-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 1.25rem;
}

.how-to-video-card,
.how-to-library-card {
    overflow: hidden;

    border: 1px solid var(--how-to-line);

    border-radius: var(--how-to-radius-md);

    background:
        linear-gradient(
            145deg,
            var(--how-to-panel-strong),
            var(--how-to-panel)
        );

    box-shadow:
        0 1rem 2.5rem rgba(0, 0, 0, 0.15);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.how-to-video-card:hover,
.how-to-library-card:hover {
    transform: translateY(-6px);

    border-color: var(--how-to-line-strong);

    box-shadow:
        0 1.5rem 3rem rgba(0, 0, 0, 0.22);
}

.how-to-video-frame {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(var(--bs-primary-rgb), 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.how-to-video-frame iframe {
    border: 0;

    background: transparent;
}

.how-to-video-placeholder {
    position: absolute !important;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.65rem;

    background:
        radial-gradient(
            circle at center,
            rgba(var(--bs-primary-rgb), 0.12),
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.35)
        );

    color: rgba(255, 255, 255, 0.78);

    pointer-events: none;
}

.how-to-video-placeholder i {
    color: var(--bs-primary);

    font-size: 3rem;

    filter:
        drop-shadow(
            0 0.5rem 1rem rgba(0, 0, 0, 0.25)
        );

    animation: how-to-video-pulse 2.6s ease-in-out infinite;
}

.how-to-video-placeholder span {
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.how-to-video-meta {
    padding: 1.35rem;
}

.how-to-video-tag {
    display: inline-flex;

    margin-bottom: 0.65rem;

    padding: 0.3rem 0.55rem;

    border: 1px solid rgba(var(--bs-primary-rgb), 0.28);

    border-radius: 999px;

    color: var(--bs-primary);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-to-video-meta h2 {
    margin-bottom: 0.6rem;

    font-size: 1.35rem;
}

.how-to-video-meta p {
    margin: 0;

    color: var(--how-to-muted);

    font-size: 0.9rem;
}


/* ==========================================================
   VALUE STRIP
   ========================================================== */

.how-to-value-shell {
    overflow: hidden;

    border-top: 1px solid var(--how-to-line);
    border-bottom: 1px solid var(--how-to-line);
}

.how-to-value-item {
    padding: 1.6rem 1.4rem;

    display: flex;

    align-items: flex-start;

    gap: 1rem;
}

.how-to-value-item + .how-to-value-item {
    border-left: 1px solid var(--how-to-line);
}

.how-to-value-icon {
    width: 2.6rem;
    height: 2.6rem;

    flex: 0 0 2.6rem;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 0.75rem;

    background: rgba(var(--bs-primary-rgb), 0.12);

    color: var(--bs-primary);
}

.how-to-value-item h2 {
    margin-bottom: 0.25rem;

    font-size: 1rem;
}

.how-to-value-item p {
    margin: 0;

    color: var(--how-to-muted);

    font-size: 0.84rem;

    line-height: 1.5;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.how-to-section-heading {
    max-width: 820px;

    margin-bottom: 3rem;
}

.how-to-section-heading h2 {
    margin-bottom: 1rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3.7rem
        );
}

.how-to-section-heading p {
    margin: 0;

    color: var(--how-to-muted);

    font-size: 1.05rem;
}


/* ==========================================================
   BENEFIT CARDS
   ========================================================== */

.how-to-benefit-card {
    position: relative;

    height: 100%;

    overflow: hidden;

    padding: 1.75rem;

    border: 1px solid var(--how-to-line);

    border-radius: var(--how-to-radius-md);

    background:
        linear-gradient(
            145deg,
            var(--how-to-panel-strong),
            var(--how-to-panel)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.how-to-benefit-card:hover {
    transform: translateY(-6px);

    border-color: var(--how-to-line-strong);

    box-shadow:
        0 1.25rem 2.5rem rgba(0, 0, 0, 0.18);
}

.how-to-benefit-card::after {
    content: "";

    position: absolute;

    width: 8rem;
    height: 8rem;

    right: -4rem;
    bottom: -4rem;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(var(--bs-primary-rgb), 0.13),
            transparent 68%
        );

    transition: transform 0.35s ease;
}

.how-to-benefit-card:hover::after {
    transform: scale(1.35);
}

.how-to-card-number {
    position: absolute;

    top: 1.25rem;
    right: 1.35rem;

    color: rgba(255, 255, 255, 0.15);

    font-family: "Oswald", sans-serif;

    font-size: 1.5rem;
}

.how-to-card-icon {
    width: 3rem;
    height: 3rem;

    margin-bottom: 1.25rem;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 0.85rem;

    background: rgba(var(--bs-primary-rgb), 0.12);

    color: var(--bs-primary);

    font-size: 1.2rem;
}

.how-to-benefit-card h3 {
    margin-bottom: 0.8rem;

    font-size: 1.35rem;
}

.how-to-benefit-card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: var(--how-to-muted);
}

.how-to-benefit-featured {
    border-color: rgba(var(--bs-primary-rgb), 0.34);

    background:
        linear-gradient(
            145deg,
            rgba(var(--bs-primary-rgb), 0.09),
            rgba(255, 255, 255, 0.025)
        );
}

.how-to-benefit-alert .how-to-card-icon {
    animation:
        how-to-soft-bounce
        3s
        ease-in-out
        infinite;
}


/* ==========================================================
   FEATURED VIDEO
   ========================================================== */

.how-to-featured-shell {
    padding:
        clamp(
            1.75rem,
            4vw,
            3.5rem
        );

    border: 1px solid var(--how-to-line);

    border-radius: var(--how-to-radius-lg);

    background:
        linear-gradient(
            135deg,
            rgba(var(--bs-primary-rgb), 0.07),
            rgba(255, 255, 255, 0.02) 50%
        );
}

.how-to-featured-copy h2 {
    margin-bottom: 1rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3.7rem
        );

    line-height: 1.05;
}

.how-to-featured-copy p {
    color: var(--how-to-muted);
}

.how-to-check-list {
    margin: 1.5rem 0 0;

    padding: 0;

    list-style: none;
}

.how-to-check-list li {
    display: flex;

    align-items: center;

    gap: 0.65rem;

    padding: 0.45rem 0;

    color: rgba(255, 255, 255, 0.82);
}

.how-to-check-list i {
    color: var(--bs-primary);
}

.how-to-featured-video {
    overflow: hidden;

    border: 1px solid var(--how-to-line-strong);

    border-radius: 1rem;

    box-shadow: var(--how-to-shadow);
}

.how-to-video-frame-large .how-to-video-placeholder i {
    font-size: 4rem;
}


/* ==========================================================
   MORE TRAINING LIBRARY
   ========================================================== */

.how-to-library-meta {
    padding: 1.25rem;
}

.how-to-library-meta > span {
    color: var(--bs-primary);

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.how-to-library-meta h3 {
    margin: 0.45rem 0 0.55rem;

    font-size: 1.25rem;
}

.how-to-library-meta p {
    margin: 0;

    color: var(--how-to-muted);

    font-size: 0.88rem;
}


/* ==========================================================
   SOFTWARE SKILLS
   ========================================================== */

.how-to-skills-shell {
    padding:
        clamp(
            1.75rem,
            4vw,
            3.25rem
        );

    border: 1px solid var(--how-to-line);

    border-radius: var(--how-to-radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
}

.how-to-skills-shell h2 {
    margin-bottom: 1rem;

    font-size:
        clamp(
            2rem,
            4vw,
            3.5rem
        );

    line-height: 1.05;
}

.how-to-skills-shell p {
    max-width: 740px;

    margin: 0;

    color: var(--how-to-muted);
}

.how-to-skill-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 0.75rem;
}

.how-to-skill-item {
    min-height: 110px;

    padding: 1rem;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 0.65rem;

    border: 1px solid var(--how-to-line);

    border-radius: 0.85rem;

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.how-to-skill-item:hover {
    transform: translateY(-4px);

    border-color: var(--how-to-line-strong);

    background: rgba(255, 255, 255, 0.05);
}

.how-to-skill-item i {
    color: var(--bs-primary);

    font-size: 1.25rem;
}

.how-to-skill-item span {
    font-weight: 700;
}


/* ==========================================================
   FINAL CTA
   ========================================================== */

.how-to-final-shell {
    position: relative;

    overflow: hidden;

    padding:
        clamp(
            2rem,
            6vw,
            4.5rem
        );

    border: 1px solid var(--how-to-line);

    border-radius: var(--how-to-radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(var(--bs-primary-rgb), 0.055)
        );
}

.how-to-final-glow {
    position: absolute;

    width: 28rem;
    height: 28rem;

    left: 50%;
    top: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(var(--bs-primary-rgb), 0.12),
            transparent 68%
        );

    pointer-events: none;
}

.how-to-final-shell > *:not(.how-to-final-glow) {
    position: relative;
    z-index: 2;
}

.how-to-final-shell h2 {
    margin-bottom: 1rem;

    font-size:
        clamp(
            2.1rem,
            5vw,
            4.4rem
        );
}

.how-to-final-shell p {
    max-width: 760px;

    margin: 0 auto 1.75rem;

    color: var(--how-to-muted);
}

.how-to-cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.55rem;

    min-height: 3rem;

    padding: 0.7rem 1.15rem;

    border: 1px solid rgba(var(--bs-primary-rgb), 0.45);

    border-radius: 0.7rem;

    background: var(--bs-primary);

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

.how-to-cta-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    color: #fff;

    box-shadow:
        0 0.75rem 1.5rem rgba(var(--bs-primary-rgb), 0.2);
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes how-to-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(var(--bs-primary-rgb), 0.45);
    }

    70% {
        box-shadow:
            0 0 0 0.65rem rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

@keyframes how-to-video-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.86;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes how-to-soft-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


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

@media (max-width: 991.98px) {

    .how-to-video-grid {
        grid-template-columns: 1fr;
    }

    .how-to-value-item + .how-to-value-item {
        border-left: 0;
    }

    .how-to-value-item:nth-child(2),
    .how-to-value-item:nth-child(3) {
        border-top: 1px solid var(--how-to-line);
    }

}


@media (max-width: 767.98px) {

    .how-to-hero-title {
        font-size:
            clamp(
                2.25rem,
                12vw,
                3.5rem
            );
    }

    .how-to-video-card,
    .how-to-library-card,
    .how-to-featured-shell,
    .how-to-skills-shell,
    .how-to-final-shell {
        border-radius: 1rem;
    }

    .how-to-value-item {
        padding: 1.25rem 0.25rem;
    }

    .how-to-skill-list {
        grid-template-columns: 1fr;
    }

}


@media (prefers-reduced-motion: reduce) {

    .how-to-kicker-dot,
    .how-to-video-placeholder i,
    .how-to-benefit-alert .how-to-card-icon {
        animation: none;
    }

    .how-to-video-card,
    .how-to-library-card,
    .how-to-benefit-card,
    .how-to-skill-item,
    .how-to-cta-button {
        transition: none;
    }

}
