/*
|--------------------------------------------------------------------------
| ToolVerse - Footer
|--------------------------------------------------------------------------
| Scope:
| - Only .tv-footer and its children are styled here.
| - No page-specific styles.
| - No generic element selectors that can leak into other sections.
|--------------------------------------------------------------------------
*/

.tv-footer {
    position: relative;
    overflow: hidden;
    margin-top: 90px;
    padding: 78px 0 0;
    background: #0b1220;
    color: #c5cedb;
    isolation: isolate;
}

.tv-footer__glow {
    position: absolute;
    top: -260px;
    left: 50%;
    z-index: -1;
    width: 720px;
    height: 440px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.20) 0%,
            rgba(99, 91, 255, 0.06) 43%,
            rgba(99, 91, 255, 0) 72%
        );
    transform: translateX(-50%);
    pointer-events: none;
}

.tv-footer .tv-container {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   Main Footer Grid
   ========================================================================== */

.tv-footer__main {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.5fr)
        repeat(3, minmax(150px, 0.72fr));
    gap: 54px;
    padding-bottom: 64px;
}


/* ==========================================================================
   Brand Column
   ========================================================================== */

.tv-footer__brand-column {
    max-width: 420px;
}

.tv-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tv-footer__brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #7a72ff 0%,
            #635bff 50%,
            #4940cf 100%
        );
    box-shadow:
        0 12px 30px rgba(99, 91, 255, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform var(--tv-transition-normal),
        box-shadow var(--tv-transition-normal);
}

.tv-footer__brand:hover .tv-footer__brand-mark {
    transform: translateY(-2px) rotate(-3deg);
    box-shadow:
        0 16px 36px rgba(99, 91, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tv-footer__brand-mark svg {
    display: block;
    width: 30px;
    height: 30px;
}

.tv-footer__brand-mark svg path:first-child {
    fill: rgba(255, 255, 255, 0.18);
}

.tv-footer__brand-mark-cut {
    fill: #ffffff;
}

.tv-footer__brand-name {
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.65px;
}

.tv-footer__description {
    max-width: 395px;
    margin: 24px 0 0;
    color: #98a6b8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}


/* ==========================================================================
   Trust Labels
   ========================================================================== */

.tv-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.tv-footer__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--tv-radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: #b7c2d0;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    transition:
        background-color var(--tv-transition-fast),
        border-color var(--tv-transition-fast),
        transform var(--tv-transition-fast);
}

.tv-footer__trust-item:hover {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.065);
    transform: translateY(-1px);
}

.tv-footer__trust-item svg {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: #62d4b6;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   Navigation Columns
   ========================================================================== */

.tv-footer__column {
    min-width: 0;
}

.tv-footer__heading {
    margin: 5px 0 21px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.15px;
}

.tv-footer__links {
    display: grid;
    gap: 12px;
}

.tv-footer__links a {
    position: relative;
    width: fit-content;
    max-width: 100%;
    color: #98a6b8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition:
        color var(--tv-transition-fast),
        transform var(--tv-transition-fast);
}

.tv-footer__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    border-radius: var(--tv-radius-pill);
    background: #817aff;
    transition: width var(--tv-transition-normal);
}

.tv-footer__links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.tv-footer__links a:hover::after {
    width: 100%;
}


/* ==========================================================================
   Bottom Bar
   ========================================================================== */

.tv-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-footer__copyright,
.tv-footer__note {
    margin: 0;
    color: #78879a;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

.tv-footer__note {
    text-align: right;
}


/* ==========================================================================
   Large Tablet
   ========================================================================== */

@media (max-width: 1000px) {

    .tv-footer__main {
        grid-template-columns:
            minmax(260px, 1.3fr)
            repeat(2, minmax(150px, 1fr));
        gap: 48px 38px;
    }

    .tv-footer__column:last-child {
        grid-column: 2 / 4;
    }
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 720px) {

    .tv-footer {
        margin-top: 70px;
        padding-top: 58px;
    }

    .tv-footer__glow {
        top: -220px;
        width: 580px;
        height: 390px;
    }

    .tv-footer__main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 44px 30px;
        padding-bottom: 48px;
    }

    .tv-footer__brand-column {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .tv-footer__description {
        max-width: 560px;
    }

    .tv-footer__column:last-child {
        grid-column: auto;
    }

    .tv-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
        padding: 24px 0;
        gap: 7px;
    }

    .tv-footer__note {
        text-align: left;
    }
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 480px) {

    .tv-footer {
        margin-top: 58px;
        padding-top: 50px;
    }

    .tv-footer__main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-bottom: 42px;
    }

    .tv-footer__brand-column,
    .tv-footer__column:last-child {
        grid-column: auto;
    }

    .tv-footer__brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 13px;
    }

    .tv-footer__brand-name {
        font-size: 21px;
    }

    .tv-footer__description {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.8;
    }

    .tv-footer__trust {
        margin-top: 20px;
    }

    .tv-footer__heading {
        margin-bottom: 17px;
    }

    .tv-footer__links {
        gap: 10px;
    }

    .tv-footer__links a {
        font-size: 13px;
    }

    .tv-footer__bottom {
        padding:
            22px 0
            calc(22px + env(safe-area-inset-bottom));
    }
}


/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 360px) {

    .tv-footer__trust {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tv-footer__brand-mark,
    .tv-footer__trust-item,
    .tv-footer__links a,
    .tv-footer__links a::after {
        transition: none;
    }

    .tv-footer__brand:hover .tv-footer__brand-mark,
    .tv-footer__trust-item:hover,
    .tv-footer__links a:hover {
        transform: none;
    }
}