/* ============================================================
   CODEWORD HACKATHON PLATFORM
   PREMIUM FOOTER
   ------------------------------------------------------------
   Clean premium design
   Purple + orange CodeWord theme
   No extra decorative line above the footer
   HTML classes preserved
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');


/* ============================================================
   RESET
   ============================================================ */

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


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

.premium-footer {
    --footer-purple: #4F46D8;
    --footer-purple-dark: #312E81;
    --footer-purple-light: #756FF0;

    --footer-orange: #F6A623;
    --footer-orange-light: #FFBE4F;

    position: relative;
    width: 100%;
    margin: 0;
    padding: 58px 24px 0;

    overflow: hidden;

    color: #FFFFFF;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(79, 70, 216, 0.22) 0,
            rgba(79, 70, 216, 0.08) 22%,
            transparent 44%
        ),
        radial-gradient(
            circle at 94% 90%,
            rgba(246, 166, 35, 0.15) 0,
            rgba(246, 166, 35, 0.05) 22%,
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #111426 0%,
            #191B35 50%,
            #101225 100%
        );

    border-top: 1px solid rgba(79, 70, 216, 0.28);
}


/* ============================================================
   BACKGROUND GLOW
   ============================================================ */

.premium-footer::before {
    content: "";

    position: absolute;
    width: 420px;
    height: 420px;

    top: -280px;
    left: -180px;

    background:
        radial-gradient(
            circle,
            rgba(79, 70, 216, 0.20) 0%,
            rgba(79, 70, 216, 0.07) 38%,
            transparent 72%
        );

    pointer-events: none;
}

.premium-footer::after {
    content: "";

    position: absolute;
    width: 400px;
    height: 400px;

    right: -220px;
    bottom: -260px;

    background:
        radial-gradient(
            circle,
            rgba(246, 166, 35, 0.13) 0%,
            rgba(246, 166, 35, 0.04) 38%,
            transparent 72%
        );

    pointer-events: none;
}


/* ============================================================
   FOOTER WRAPPER
   ------------------------------------------------------------
   IMPORTANT:
   No ::before decorative line here.
   This removes the extra line visible above Quick Links.
   ============================================================ */

.footer-wrapper {
    position: relative;
    z-index: 2;

    width: min(100%, 1180px);
    margin: 0 auto;

    display: grid;

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

    gap: 55px;

    padding: 0 0 46px;
}


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

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

.footer-brand h2 {
    position: relative;
    display: inline-block;

    margin: 0 0 18px;

    color: #FFFFFF;

    font-size: 25px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.footer-brand h2::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 44px;
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--footer-orange),
            var(--footer-purple-light)
        );
}

.footer-brand p {
    max-width: 440px;

    margin: 0;

    color: #D7DCEC;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}


/* ============================================================
   SOCIAL ICONS
   ============================================================ */

.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
    min-height: 40px;
}

.social-icons a {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;

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

    color: #FFFFFF;

    font-size: 15px;
    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

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

    background:
        linear-gradient(
            135deg,
            var(--footer-orange),
            var(--footer-orange-light)
        );

    border-color: var(--footer-orange);

    color: #171717;

    box-shadow:
        0 10px 25px rgba(246, 166, 35, 0.22);
}


/* ============================================================
   LINK COLUMNS
   ============================================================ */

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

.footer-links h4 {
    position: relative;
    display: inline-block;

    margin: 0 0 22px;
    padding-bottom: 10px;

    color: #FFFFFF;

    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;

    letter-spacing: 0;
}

.footer-links h4::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 38px;
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--footer-orange),
            var(--footer-purple-light)
        );
}

.footer-links a {
    position: relative;

    display: block;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 13px;
    padding-left: 0;

    color: #CDD2E2;

    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;

    text-decoration: none;

    transition:
        color .25s ease,
        padding-left .25s ease;
}

.footer-links a:last-child {
    margin-bottom: 0;
}

.footer-links a::before {
    content: "›";

    display: inline-block;

    width: 0;

    opacity: 0;

    overflow: hidden;

    color: var(--footer-orange);

    font-size: 18px;
    line-height: 1;

    transition:
        width .2s ease,
        opacity .2s ease;
}

.footer-links a:hover {
    padding-left: 6px;
    color: #FFFFFF;
}

.footer-links a:hover::before {
    width: 13px;
    opacity: 1;
}


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

.footer-bottom {
    position: relative;
    z-index: 2;

    width: min(100%, 1180px);
    margin: 0 auto;

    min-height: 60px;

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

    gap: 20px;

    padding: 16px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    color: #A5ABBD;

    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom > span:first-child {
    color: #A5ABBD;
}

.developed-by {
    color: #A5ABBD;
    text-align: right;
}

.developed-by a {
    color: #FFC45D;

    font-weight: 700;
    text-decoration: none;

    transition:
        color .25s ease,
        text-shadow .25s ease;
}

.developed-by a:hover {
    color: #FFD98D;

    text-shadow:
        0 0 14px rgba(246, 166, 35, 0.22);
}


/* ============================================================
   ADMIN LINK
   ============================================================ */

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #A5ABBD !important;

    text-decoration: none !important;

    opacity: .8;

    transition:
        opacity .25s ease,
        color .25s ease;
}

.admin-link:hover {
    opacity: 1;
    color: var(--footer-orange) !important;
}


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

@media (max-width: 992px) {

    .premium-footer {
        padding: 52px 22px 0;
    }

    .footer-wrapper {
        width: min(100%, 850px);

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

        gap: 38px;

        padding-bottom: 40px;
    }

    .footer-brand h2 {
        font-size: 23px;
    }

    .footer-brand p {
        max-width: 360px;
        font-size: 13.5px;
    }

    .footer-links h4 {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 13.5px;
    }

    .footer-bottom {
        width: min(100%, 850px);
    }
}


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

@media (max-width: 768px) {

    .premium-footer {
        padding: 46px 20px 0;
    }

    .footer-wrapper {
        width: min(100%, 650px);

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

        gap: 32px 35px;

        padding-bottom: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .footer-links h4 {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 13.5px;
    }

    .footer-bottom {
        width: min(100%, 650px);

        flex-direction: column;

        justify-content: center;

        gap: 5px;

        text-align: center;

        padding: 14px 0;
    }

    .developed-by {
        text-align: center;
    }
}


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

@media (max-width: 600px) {

    .premium-footer {
        padding: 40px 18px 0;
    }

    .premium-footer::before {
        width: 280px;
        height: 280px;

        top: -190px;
        left: -120px;
    }

    .premium-footer::after {
        width: 280px;
        height: 280px;

        right: -150px;
        bottom: -170px;
    }

    .footer-wrapper {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 27px;

        padding-bottom: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand h2 {
        font-size: 22px;
    }

    .footer-brand p {
        max-width: 100%;

        font-size: 13.5px;
        line-height: 1.75;
    }

    .social-icons {
        margin-top: 18px;
    }

    .footer-links h4 {
        margin-bottom: 17px;
        font-size: 16px;
    }

    .footer-links a {
        margin-bottom: 10px;
        font-size: 13.5px;
    }

    .footer-bottom {
        font-size: 11.5px;
    }
}


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

@media (max-width: 400px) {

    .premium-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-wrapper {
        gap: 24px;
    }

    .footer-brand h2 {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 12.5px;
    }

    .footer-links h4 {
        font-size: 15px;
    }

    .footer-links a {
        font-size: 12.5px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .footer-bottom {
        font-size: 10.5px;
    }
}


/* ============================================================
   EXTRA SMALL
   ============================================================ */

@media (max-width: 320px) {

    .premium-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-brand h2 {
        font-size: 19px;
    }

    .footer-brand p {
        font-size: 12px;
    }

    .footer-links h4 {
        font-size: 14px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 10px;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

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

    .premium-footer *,
    .premium-footer *::before,
    .premium-footer *::after {
        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }
}


/* =========================================
   FOOTER LOGO
   ========================================= */

.premium-footer .footer-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    margin: 0 0 20px;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.premium-footer .footer-logo-link:hover {
    transform: translateY(-2px);
}

.premium-footer .footer-logo {
    display: block;
    width: 155px;
    height: 58px;
    max-width: 100%;

    object-fit: contain;
    object-position: left center;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;
    box-shadow: none;
}

.premium-footer .footer-logo-subtitle {
    display: block;
    margin-left: 3px;

    color: #B7B3FF;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Tablet */
@media (max-width: 768px) {
    .premium-footer .footer-logo {
        width: 145px;
        height: 54px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .premium-footer .footer-logo {
        width: 135px;
        height: 50px;
    }

    .premium-footer .footer-logo-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}


/* Remove the white box around the footer logo */
.premium-footer .footer-logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.premium-footer .footer-logo {
    display: block;
    width: 155px;
    height: 65px;
    object-fit: contain;
    object-position: left center;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    mix-blend-mode: screen;
}

.premium-footer .footer-logo-subtitle {
    margin-left: 3px;
    color: #B7B3FF;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   END PREMIUM FOOTER
============================================================ */
