/*!*
 * This file is part of the SplendidBear Websites' projects.
 *
 * Copyright (c) 2026 @ www.splendidbear.org
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

.feature-block {
    width: 100%;
    padding: 80px 40px;
    position: relative;

    &:first-of-type {
        border-top: 1px solid rgba(35, 111, 135, 0.12);
    }

    & + & {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.feature-block__inner {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-block--reverse .feature-block__inner {
    flex-direction: row-reverse;
}

// Visual side
.feature-block__visual {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

// Stats icons cluster
.feature-block__visual--stats {
    height: 260px;
    gap: 0;

    i {
        position: absolute;
        color: rgba(35, 111, 135, 0.5);
        transition: color 300ms ease;
    }

    // Bar chart — large, centre
    i.fa-chart-bar {
        font-size: 160px;
        color: rgba(35, 111, 135, 0.5);
        filter: drop-shadow(0 0 40px rgba(35, 111, 135, 0.5));
    }

    // Trophy — top right
    i.fa-trophy {
        font-size: 80px;
        top: 0px;
        right: 20px;
        color: rgba(246, 125, 82, 0.7);
        filter: drop-shadow(0 0 25px rgba(246, 125, 82, 0.4));
    }

    // Clock history — bottom left
    i.fa-clock-rotate-left {
        font-size: 68px;
        bottom: 0px;
        left: 20px;
        color: rgba(149, 207, 245, 0.65);
        filter: drop-shadow(0 0 20px rgba(149, 207, 245, 0.35));
    }

    &:hover i.fa-chart-bar { color: rgba(35, 111, 135, 0.8); filter: drop-shadow(0 0 50px rgba(35, 111, 135, 0.7)); }
    &:hover i.fa-trophy     { color: rgba(246, 125, 82, 0.9); filter: drop-shadow(0 0 35px rgba(246, 125, 82, 0.6)); }
    &:hover i.fa-clock-rotate-left { color: rgba(149, 207, 245, 0.9); filter: drop-shadow(0 0 30px rgba(149, 207, 245, 0.5)); }
}

// MSN visual
.feature-block__visual--msn {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.msn-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(149, 207, 245, 0.3)) brightness(1.1);
    flex-shrink: 0;
    z-index: 1;
}

.msn-screenshot {
    width: 340px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(35, 111, 135, 0.12);
    filter: saturate(0.85) brightness(0.9);
    transition: filter 300ms ease;

    &:hover {
        filter: saturate(1) brightness(1);
    }
}

// Privacy visual
.feature-block__visual--privacy {
    height: 260px;
    gap: 0;

    i {
        position: absolute;
        color: rgba(35, 111, 135, 0.5);
        transition: color 300ms ease;
    }

    // Shield — centre, large
    i.fa-shield {
        font-size: 140px;
        color: rgba(34, 197, 94, 0.3);
        filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.25));
    }

    // Lock — top right
    i.fa-lock {
        font-size: 56px;
        top: 20px;
        right: 35px;
        color: rgba(168, 85, 247, 0.5);
        filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.2));
    }

    // Eye slash — bottom left
    i.fa-eye-slash {
        font-size: 48px;
        bottom: 28px;
        left: 40px;
        color: rgba(59, 130, 246, 0.5);
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.15));
    }

    &:hover i.fa-shield { color: rgba(34, 197, 94, 0.6); }
    &:hover i.fa-lock     { color: rgba(168, 85, 247, 0.75); }
    &:hover i.fa-eye-slash { color: rgba(59, 130, 246, 0.7); }
}

// Practice visual
.feature-block__visual--practice {
    height: 260px;
    gap: 0;

    i {
        position: absolute;
        color: rgba(35, 111, 135, 0.5);
        transition: color 300ms ease;
    }

    // Laptop — centre, large
    i.fa-laptop {
        font-size: 140px;
        color: rgba(251, 146, 60, 0.3);
        filter: drop-shadow(0 0 30px rgba(251, 146, 60, 0.25));
    }

    // Linux — top left
    i.fa-linux {
        font-size: 48px;
        top: 20px;
        left: 35px;
        color: rgba(245, 158, 11, 0.5);
        filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.2));
    }

    // Apple — top right
    i.fa-apple {
        font-size: 56px;
        top: 20px;
        right: 35px;
        color: rgba(156, 163, 175, 0.5);
        filter: drop-shadow(0 0 16px rgba(156, 163, 175, 0.2));
    }

    // Windows — bottom left
    i.fa-windows {
        font-size: 48px;
        bottom: 28px;
        left: 40px;
        color: rgba(59, 130, 246, 0.5);
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.15));
    }

    &:hover i.fa-laptop { color: rgba(251, 146, 60, 0.6); }
    &:hover i.fa-linux     { color: rgba(245, 158, 11, 0.75); }
    &:hover i.fa-apple     { color: rgba(156, 163, 175, 0.75); }
    &:hover i.fa-windows { color: rgba(59, 130, 246, 0.7); }
}

// Text side
.feature-block__text {
    flex: 1;
    min-width: 0;
}

.feature-block__label {
    font: 700 11px 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(149, 207, 245, 0.55);
    margin-bottom: 12px;
}

.feature-block__title {
    font: 800 40px 'Rajdhani', sans-serif;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.feature-block__body {
    font: 400 16px 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.8;
    margin-bottom: 0;
}

.feature-block__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font: 700 14px 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: rgba(149, 207, 245, 0.85);
    border: 1px solid rgba(35, 111, 135, 0.4);
    background: rgba(35, 111, 135, 0.1);
    padding: 11px 24px;
    border-radius: 4px;
    transition: all 200ms ease;

    &:hover {
        background: rgba(35, 111, 135, 0.25);
        border-color: rgba(149, 207, 245, 0.55);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(35, 111, 135, 0.25);
    }
}

.practice-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.practice-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 700 13px 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: rgba(149, 207, 245, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 200ms ease;
    width: fit-content;

    &:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.6);
        color: #fff;
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
}

.practice-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 200ms ease;
}

.practice-link:hover .practice-link-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

@media screen and (max-width: 900px) {
    .feature-block__inner,
    .feature-block--reverse .feature-block__inner {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .feature-block__visual {
        flex: none;
        width: 100%;
    }

    .feature-block__visual--stats {
        height: 200px;
    }

    .feature-block__visual--msn {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .msn-screenshot {
        width: 100%;
    }

    .feature-block__label,
    .feature-block__cta {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-block__title { font-size: 32px; }

    .feature-block {
        padding: 60px 24px;
    }

    .practice-links {
        justify-content: center;
        align-items: center;
    }

    .practice-link {
        width: 100%;
        justify-content: center;
    }
}
