/* ==================================================
   MAIN FOOTER
================================================== */

.site-footer {

    width: 100%;

    margin-top: 25px;

    background: rgba(4, 37, 82, 0.88);

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    border-top:
        1px solid
        rgba(255,255,255,0.25);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

}


/* ==================================================
   TELEGRAM + SHARE BOX
================================================== */

.footer-action {

    position: relative;

    overflow: hidden;

    isolation: isolate;

    margin: 8px 10px;

    min-height: 48px;

    padding: 7px 8px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    border-radius: 4px;

    border: 2px solid transparent;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

}


/* ==================================================
   CONTINUOUS BORDER LOOP
================================================== */

.telegram-box::before,
.share-box::before {

    content: "";

    position: absolute;

    width: 200%;

    height: 500%;

    left: -50%;

    top: -200%;

    border-radius: 50%;

    animation:
        borderLoop 3s linear infinite;

    pointer-events: none;

    z-index: -2;

}


/* ==================================================
   TELEGRAM ANIMATED BORDER
================================================== */

.telegram-box::before {

    background:
        conic-gradient(
            from 0deg,

            transparent 0deg,

            transparent 65deg,

            rgba(0,120,255,0.15) 85deg,

            rgba(0,140,255,1) 110deg,

            rgba(255,255,255,1) 125deg,

            rgba(0,140,255,1) 140deg,

            rgba(0,120,255,0.15) 160deg,

            transparent 180deg,

            transparent 360deg
        );

}


/* ==================================================
   SHARE ANIMATED BORDER
================================================== */

.share-box::before {

    background:
        conic-gradient(
            from 0deg,

            transparent 0deg,

            transparent 65deg,

            rgba(0,160,40,0.15) 85deg,

            rgba(0,180,50,1) 110deg,

            rgba(255,255,255,1) 125deg,

            rgba(0,180,50,1) 140deg,

            rgba(0,160,40,0.15) 160deg,

            transparent 180deg,

            transparent 360deg
        );

}


/* ==================================================
   INNER BOX
================================================== */

.telegram-box::after,
.share-box::after {

    content: "";

    position: absolute;

    inset: 2px;

    border-radius: 3px;

    pointer-events: none;

    z-index: -1;

}


.telegram-box::after {

    background:
        rgba(225,242,255,0.88);

}


.share-box::after {

    background:
        rgba(228,255,228,0.88);

}


/* ==================================================
   BORDER ROTATION
================================================== */

@keyframes borderLoop {

    0% {

        transform:
            rotate(0deg);

    }

    100% {

        transform:
            rotate(360deg);

    }

}


/* ==================================================
   TELEGRAM BOX
================================================== */

.telegram-box {

    color: #004d83;

    box-shadow:
        0 0 6px
        rgba(0,140,255,0.20);

}


/* ==================================================
   SHARE BOX
================================================== */

.share-box {

    color: #087516;

    box-shadow:
        0 0 6px
        rgba(0,150,30,0.20);

}


/* ==================================================
   CONTENT ABOVE BORDER
================================================== */

.footer-action-text,
.footer-btn {

    position: relative;

    z-index: 5;

}


/* ==================================================
   ACTION TEXT
================================================== */

.footer-action-text {

    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.2;

}


/* ==================================================
   ACTION SVG
================================================== */

.action-icon {

    width: 18px;

    height: 18px;

    flex: 0 0 18px;

    display: block;

}


/* ==================================================
   FOOTER BUTTON
================================================== */

.footer-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border: 0;

    border-radius: 4px;

    padding: 9px 12px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    cursor: pointer;

    transition:
        all 0.2s ease;

}


/* Telegram */

.telegram-btn {

    background: #075b91;

}


/* Share */

.share-btn {

    background: #087510;

}


/* Button Hover */

.footer-btn:hover {

    opacity: 0.92;

    transform:
        translateY(-1px);

}


/* Button SVG */

.button-icon {

    width: 15px;

    height: 15px;

    flex: 0 0 15px;

    display: block;

}


/* ==================================================
   FOOTER LINKS
================================================== */

.footer-links {

    padding:
        30px 10px 7px;

    background:
        rgba(3,34,75,0.65);

    border-top:
        1px solid
        rgba(255,255,255,0.18);

    border-bottom:
        1px solid
        rgba(255,255,255,0.28);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

}


/* ==================================================
   LINK ROW
================================================== */

.footer-link-row {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: nowrap;

    gap: 12px;

    margin-bottom: 7px;

}


/* ==================================================
   FOOTER LINK
================================================== */

.footer-link {

    width: 145px;

    min-width: 0;

    padding: 4px 7px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border:
        1px solid #ffffff;

    border-radius: 5px;

    background:
        rgba(255,255,255,0.03);

    color: #ffffff;

    text-align: center;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;

    text-decoration: none;

    transition:
        all 0.2s ease;

}


/* Terms Width */

.footer-link-wide {

    width: 190px;

}


/* Link Hover */

.footer-link:hover {

    background:
        rgba(255,255,255,0.12);

}


/* Link SVG */

.link-icon {

    width: 14px;

    height: 14px;

    flex: 0 0 14px;

    display: block;

}


/* ==================================================
   COPYRIGHT
================================================== */

.copyright {

    padding:
        11px 5px 9px;

    background:
        rgba(3,27,59,0.88);

    text-align: center;

    font-size: 17px;

    line-height: 1.4;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

}


.copyright strong {

    font-weight: 700;

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {


    .footer-action {

        margin:
            7px 8px;

        padding: 6px;

        min-height: 46px;

    }


    .footer-action-text {

        font-size: 13px;

        gap: 7px;

    }


    .action-icon {

        width: 17px;

        height: 17px;

        flex-basis: 17px;

    }


    .footer-btn {

        padding:
            8px 9px;

        font-size: 12px;

        gap: 5px;

    }


    .button-icon {

        width: 14px;

        height: 14px;

        flex-basis: 14px;

    }


    /* Footer Links */

    .footer-links {

        padding:
            30px 7px 7px;

    }


    /*
       MOBILE LAYOUT

       3 buttons = top row
       2 buttons = bottom row
    */

    .footer-link-row {

        flex-wrap: nowrap;

        gap: 7px;

        margin-bottom: 7px;

    }


    /* First Row */

    .footer-link {

        width: 31.5%;

        min-width: 0;

        padding:
            4px 2px;

        gap: 3px;

        font-size: 10px;

    }


    /* Terms */

    .footer-link-wide {

        width: 190px;

        max-width: 52%;

    }


    .link-icon {

        width: 12px;

        height: 12px;

        flex-basis: 12px;

    }


    /* Copyright */

    .copyright {

        padding:
            10px 4px 9px;

        font-size: 14px;

    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 360px) {


    .footer-action-text {

        font-size: 12px;

    }


    .footer-btn {

        padding:
            7px 8px;

        font-size: 11px;

    }


    .footer-link {

        font-size: 9px;

    }


    .copyright {

        font-size: 13px;

    }

}