/* ==========================================
   TypeClimb FOOTER
========================================== */

:root {
    --footer-bg: #f1f5f9;
    --footer-bg-deep: #e8eef6;
    --footer-card: #ffffff;
    --footer-card-2: #f8fafc;
    --footer-border: var(--tc-border);

    --footer-primary: #7c5cff;
    --footer-primary-light: #9b84ff;

    --footer-success: #16c784;
    --footer-danger: #ff4d67;
    --footer-warning: #ffb547;
    --footer-info: #2da7ff;

    --footer-text: var(--tc-text);
    --footer-text-light: var(--tc-text-secondary);
    --footer-text-muted: var(--tc-text-muted);

    --footer-soft: rgba(15, 23, 42, 0.04);
    --footer-soft-strong: rgba(15, 23, 42, 0.07);

    --footer-radius: 20px;
    --footer-transition: 0.3s ease;
}


/* ==========================================
   DARK THEME
========================================== */

html[data-theme="dark"] {
    --footer-bg: #07111f;
    --footer-bg-deep: #040b16;
    --footer-card: #0c1a2e;
    --footer-card-2: #101f36;
    --footer-border: rgba(255, 255, 255, 0.08);

    --footer-text: #ffffff;
    --footer-text-light: #b7c3d6;
    --footer-text-muted: #7f8da3;

    --footer-soft: rgba(255, 255, 255, 0.03);
    --footer-soft-strong: rgba(255, 255, 255, 0.05);
}


/* ==========================================
   FOOTER WRAPPER
========================================== */

.sk-footer {
    position: relative;

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 92, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at top right,
            rgba(45, 167, 255, 0.08),
            transparent 30%
        ),
        var(--footer-bg-deep);

    color: var(--footer-text);

    padding: 50px 0 0;

    overflow: hidden;
}

.sk-footer *,
.sk-footer *::before,
.sk-footer *::after {
    box-sizing: border-box;
}

.sk-footer a {
    text-decoration: none;
}

.sk-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ==========================================
   CTA SECTION
========================================== */

.footer-cta {
    width: min(1400px, 95%);

    margin: 0 auto 40px;
}

.cta-content {
    display: flex;

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

    gap: 40px;

    padding: 35px 40px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            var(--footer-card-2),
            var(--footer-card)
        );

    border: 1px solid rgba(124, 92, 255, 0.18);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-icon {
    flex-shrink: 0;
}

.cta-icon i {
    font-size: 4rem;

    background:
        linear-gradient(
            135deg,
            #8d79ff,
            #5d39ff
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text h2 {
    margin: 0 0 10px;

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

    line-height: 1.25;
}

.cta-text p {
    max-width: 520px;

    margin: 0;

    color: var(--footer-text-light);

    font-size: 1rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;

    flex-shrink: 0;

    gap: 15px;
}

.cta-btn {
    display: inline-flex;

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

    gap: 10px;

    min-height: 52px;

    padding: 14px 26px;

    border-radius: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition: var(--footer-transition);
}

.cta-btn.primary {
    background:
        linear-gradient(
            135deg,
            #8a67ff,
            #6d48ff
        );

    color: #fff;

    box-shadow:
        0 12px 30px rgba(124, 92, 255, 0.25);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
}

.cta-btn.secondary {
    border: 1px solid var(--footer-border);

    color: var(--footer-text);

    background: var(--footer-soft);
}

.cta-btn.secondary:hover {
    background: var(--footer-soft-strong);

    transform: translateY(-3px);
}


/* ==========================================
   MAIN FOOTER
========================================== */

.footer-main {
    width: min(1400px, 95%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        300px
        minmax(0, 1fr)
        300px;

    gap: 35px;

    padding-bottom: 40px;
}


/* ==========================================
   BRAND SECTION
========================================== */

.footer-brand {
    padding-right: 10px;
}

.footer-brand-logo {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    text-decoration: none;

    flex-shrink: 0;
}

.footer-brand-logo-image {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;
}

.footer-brand-logo-text {
    color: var(--footer-text);

    font-size: 1.35rem;
    font-weight: 750;

    letter-spacing: -0.4px;

    white-space: nowrap;
}

.footer-brand p {
    margin: 18px 0 30px;

    color: var(--footer-text-light);

    line-height: 1.9;
}


/* ==========================================
   BRAND STATS
========================================== */

.footer-stats {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.stat-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.stat-item i {
    width: 50px;
    height: 50px;

    display: flex;

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

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 1.1rem;
}

.stat-item:nth-child(1) i {
    background: rgba(124, 92, 255, 0.15);

    color: #8f79ff;
}

.stat-item:nth-child(2) i {
    background: rgba(45, 167, 255, 0.15);

    color: #2da7ff;
}

.stat-item:nth-child(3) i {
    background: rgba(22, 199, 132, 0.15);

    color: #16c784;
}

.stat-item:nth-child(4) i {
    background: rgba(255, 181, 71, 0.15);

    color: #ffb547;
}

.stat-item h4 {
    margin: 0;

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

    line-height: 1.2;
}

.stat-item span {
    color: var(--footer-text-muted);

    font-size: 0.92rem;
}


/* ==========================================
   FOOTER LINKS
========================================== */

.footer-links {
    display: grid;

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

    gap: 30px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    position: relative;

    margin: 0 0 30px;

    font-size: 1.1rem;
    font-weight: 700;
}

.footer-column h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -10px;

    width: 35px;
    height: 3px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #8f79ff,
            #5d39ff
        );
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 16px;
}

.footer-column a {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--footer-text-light);

    line-height: 1.4;

    transition: var(--footer-transition);
}

.footer-column a:hover {
    color: var(--footer-text);

    transform: translateX(5px);
}


/* ==========================================
   RIGHT SIDE
========================================== */

.footer-side {
    display: flex;

    flex-direction: column;

    gap: 25px;

    min-width: 0;
}

.footer-card {
    background:
        linear-gradient(
            180deg,
            var(--footer-card-2),
            var(--footer-card)
        );

    border: 1px solid var(--footer-border);

    border-radius: var(--footer-radius);

    padding: 25px;

    transition: var(--footer-transition);
}

.footer-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(124, 92, 255, 0.25);
}

.footer-card h3 {
    margin: 0 0 20px;

    font-size: 1.15rem;
}


/* ==========================================
   CERTIFICATE VERIFICATION
========================================== */

#verifyCertificateForm {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

#verifyCertificateForm input {
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--footer-border);

    border-radius: 12px;

    outline: none;

    background: var(--footer-bg-deep);

    color: var(--footer-text);

    font-size: 0.95rem;

    transition: var(--footer-transition);
}

#verifyCertificateForm input::placeholder {
    color: var(--footer-text-muted);
}

#verifyCertificateForm input:focus {
    border-color: #7c5cff;

    box-shadow:
        0 0 0 3px rgba(124, 92, 255, 0.12);
}

#verifyCertificateForm button {
    width: 100%;
    height: 52px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    color: #fff;

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

    background:
        linear-gradient(
            135deg,
            #1ed98d,
            #13b26f
        );

    transition: var(--footer-transition);
}

#verifyCertificateForm button:hover {
    transform: translateY(-2px);

    filter: brightness(1.05);
}


/* ==========================================
   TOP TYPERS
========================================== */

.top-user {
    display: flex;

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

    gap: 15px;

    padding: 14px 0;

    border-bottom:
        1px solid var(--footer-border);
}

.top-user:last-of-type {
    border-bottom: none;
}

.top-user span {
    color: var(--footer-text-light);

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.top-user strong {
    flex-shrink: 0;

    color: var(--footer-text);
}

.leaderboard-link {
    display: inline-block;

    margin-top: 15px;

    color: #8f79ff;

    font-weight: 600;

    transition: var(--footer-transition);
}

.leaderboard-link:hover {
    transform: translateX(5px);

    color: #a594ff;
}


/* ==========================================
   FOOTER EXTRA SECTION
========================================== */

.footer-extra {
    width: min(1400px, 95%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        minmax(0, 1.5fr);

    gap: 25px;

    padding: 10px 0 40px;
}


/* ==========================================
   NEWSLETTER
========================================== */

.newsletter {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            var(--footer-card-2),
            var(--footer-card)
        );

    border: 1px solid var(--footer-border);

    border-radius: var(--footer-radius);

    padding: 28px;
}

.newsletter-plane {
    position: absolute;

    right: 20px;
    top: 20px;

    font-size: 72px;

    color: rgba(157, 0, 255, 0.6);

    pointer-events: none;

    z-index: 0;
}

.newsletter-plane i {
    display: block;
}

.newsletter h3,
.newsletter p,
.newsletter form {
    position: relative;
    z-index: 1;
}

.newsletter h3 {
    margin: 0 0 12px;

    font-size: 1.3rem;
}

.newsletter p {
    margin: 0 0 20px;

    color: var(--footer-text-light);

    line-height: 1.8;
}

.newsletter form {
    display: flex;

    overflow: hidden;

    border-radius: 12px;
}

.newsletter input {
    flex: 1;

    min-width: 0;

    height: 52px;

    padding: 0 18px;

    border: none;

    outline: none;

    background: var(--footer-bg-deep);

    color: var(--footer-text);
}

.newsletter input::placeholder {
    color: var(--footer-text-muted);
}

.newsletter button {
    min-width: 140px;

    border: none;

    cursor: pointer;

    color: #fff;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #8b6fff,
            #6d48ff
        );

    transition: var(--footer-transition);
}

.newsletter button:hover {
    filter: brightness(1.1);
}


/* ==========================================
   TRUST SECTION
========================================== */

.trust-section {
    background:
        linear-gradient(
            180deg,
            var(--footer-card-2),
            var(--footer-card)
        );

    border: 1px solid var(--footer-border);

    border-radius: var(--footer-radius);

    padding: 28px;
}

.trust-section h3 {
    margin: 0 0 25px;

    font-size: 1.25rem;
}

.trust-grid {
    display: grid;

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

    gap: 15px;
}

.trust-item {
    min-height: 110px;

    display: flex;

    flex-direction: column;

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

    gap: 12px;

    padding: 15px;

    text-align: center;

    background: var(--footer-soft);

    border:
        1px solid var(--footer-border);

    border-radius: 14px;

    transition: var(--footer-transition);
}

.trust-item:hover {
    transform: translateY(-4px);

    border-color:
        rgba(124, 92, 255, 0.25);

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

.trust-item i {
    font-size: 1.5rem;
}

.trust-item:nth-child(1) i {
    color: var(--footer-text);
}

.trust-item:nth-child(2) i {
    color: #16c784;
}

.trust-item:nth-child(3) i {
    color: #ffb547;
}

.trust-item:nth-child(4) i {
    color: #16c784;
}

.trust-item span {
    color: var(--footer-text-light);

    font-size: 0.92rem;

    line-height: 1.4;
}


/* ==========================================
   FOOTER BOTTOM
========================================== */

.footer-bottom {
    width: min(1400px, 95%);

    margin: 0 auto;

    padding: 30px 0;

    border-top:
        1px solid var(--footer-border);
}


/* ==========================================
   SOCIALS
========================================== */

.footer-social {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 16px;

    margin-bottom: 25px;
}

.footer-social a {
    width: 48px;
    height: 48px;

    display: flex;

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

    border-radius: 50%;

    color: var(--footer-text);

    background:
        var(--footer-soft);

    border:
        1px solid var(--footer-border);

    transition: var(--footer-transition);
}

.footer-social a:hover {
    transform: translateY(-4px);

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #8b6fff,
            #6d48ff
        );
}

.footer-social i {
    font-size: 1.2rem;
}


/* ==========================================
   COPYRIGHT
========================================== */

.footer-copyright {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    text-align: center;
}

.footer-copyright p {
    margin: 0;

    color: var(--footer-text-light);

    line-height: 1.6;
}

.footer-legal {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 18px;
}

.footer-legal a {
    color: var(--footer-text-muted);

    transition: var(--footer-transition);
}

.footer-legal a:hover {
    color: var(--footer-text);
}


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

@media (max-width: 1200px) {

    .footer-main {
        grid-template-columns:
            280px
            minmax(0, 1fr)
            280px;

        gap: 25px;
    }

    .footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 25px;
    }

    .trust-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 992px) {

    .sk-footer {
        padding-top: 35px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-brand p {
        max-width: 700px;
    }

    .footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-side {
        display: grid;

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

        gap: 25px;
    }

    .footer-extra {
        grid-template-columns: 1fr;
    }

    .cta-content {
        gap: 25px;
    }

    .cta-text h2 {
        font-size: 1.75rem;
    }

}


/* ==========================================
   SMALL TABLET / LARGE MOBILE
========================================== */

@media (max-width: 768px) {

    .footer-cta,
    .footer-main,
    .footer-extra,
    .footer-bottom {
        width: min(100% - 30px, 700px);
    }

    .cta-content {
        flex-direction: column;

        padding: 30px 25px;

        text-align: center;
    }

    .cta-text p {
        margin: 0 auto;
    }

    .cta-buttons {
        width: 100%;

        flex-direction: column;

        gap: 12px;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-side {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .newsletter-plane {
        right: 15px;
        top: 12px;
        font-size: 62px;
    }

    .newsletter form {
        flex-direction: column;

        gap: 12px;

        overflow: visible;
    }

    .newsletter input {
        width: 100%;

        border-radius: 12px;
    }

    .newsletter button {
        width: 100%;

        min-height: 52px;

        border-radius: 12px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {

    .sk-footer {
        padding-top: 25px;
    }

    .footer-cta {
        margin-bottom: 30px;
    }

    .cta-content {
        padding: 28px 20px;

        border-radius: 20px;
    }

    .cta-icon i {
        font-size: 3.2rem;
    }

    .cta-text h2 {
        font-size: 1.45rem;

        line-height: 1.35;
    }

    .cta-text p {
        font-size: 0.94rem;

        line-height: 1.7;
    }

    .footer-brand-logo-image {
        width: 38px;
        height: 38px;
    }

    .footer-brand-logo-text {
        font-size: 1.2rem;
    }

    .footer-brand p {
        font-size: 0.94rem;

        line-height: 1.75;
    }

    .stat-item h4 {
        font-size: 1.2rem;
    }

    .stat-item span {
        font-size: 0.85rem;
    }

    .newsletter-plane {
        right: 12px;
        top: 10px;
        font-size: 52px;
    }

    .footer-card,
    .newsletter,
    .trust-section {
        padding: 22px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    .footer-legal {
        gap: 12px 16px;

        font-size: 0.9rem;
    }

}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .footer-cta,
    .footer-main,
    .footer-extra,
    .footer-bottom {
        width: calc(100% - 24px);
    }

    .cta-content {
        padding: 25px 16px;
    }

    .newsletter-plane {
        right: 10px;
        top: 8px;
        font-size: 46px;
    }

    .footer-card,
    .newsletter,
    .trust-section {
        padding: 20px;
    }

    .stat-item {
        gap: 12px;
    }

    .stat-item i {
        width: 44px;
        height: 44px;
    }

    .footer-legal {
        flex-direction: column;

        gap: 10px;
    }

}