import { styled } from "styled-components";
import { Colors } from '@/app/components/common/variable'
import { device } from '@/app/components/common/Devices'

export const FooterRow = styled.footer `
    background: ${Colors.lightPink};
    overflow: hidden;
    .footer-top{
        padding: 60px 0;
        .footer-logo{
            margin-bottom: 38px;
        }
        .call-link{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            grid-gap: 6px;
            border: 1px solid ${Colors.body};
            padding: 10px 20px;
            border-radius: 50px;
            position: relative;
            svg{
                width: 20px;
                height: 20px;
                transition: all 0.4s;
            }
            span{
                font-size: 14px;
                color: ${Colors.body};
                transition: all 0.4s;
            }
            .hover-text{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                opacity: 0;
            }
            &:hover{
                border-color: ${Colors.primary};
                background: ${Colors.primary};
                font-size: 0;
                svg{
                    opacity: 0;
                    transition: all 0.4s;
                }
                span{
                    opacity: 0;
                    transition: all 0.4s;
                }
                .hover-text{
                    color: ${Colors.white};
                    opacity: 1;
                }
            }
        }
        .footer-info{
            ul{
                display: flex;
                grid-gap: 15px;
                margin-bottom: 16px;
                li {
                    a {
                        width: 44px;
                        height: 44px;
                        border-width: 1px;
                        svg{
                            width: 22px;
                            height: 22px;
                        }
                    }
                }
            }
        }
        .footer-col{
            h4{
                font-size: 22px;
                font-weight: 500;
                color: ${Colors.black};
                margin-bottom: 30px;
            }
            .link-group{
                display: flex;
                margin: 0 -5px;
            }
            .regulatory-list{
                width: 50%;
                max-width: 210px;
                padding: 0 5px;
                li{
                    margin-bottom: 10px;
                    &:last-child{
                        margin: 0;
                    }
                }
                a{
                    font-size: 16px;
                    color: ${Colors.body};
                    border-radius: 63px;
                    border: 1px solid ${Colors.body};
                    padding: 10px;
                    text-align: center;
                    width: 100%;
                    &:hover,&.active{
                        background: ${Colors.primary};
                        border-color: ${Colors.primary};
                        color: ${Colors.white};
                    }
                }
            }
        }
        .quick-list{
            column-count: 2;
            column-gap: 60px;
            li{
                margin-bottom: 35px;
                &:last-child{
                    margin: 0;
                }
            }
            a{
                font-size: 20px;
                color: ${Colors.body};
                &:hover,&.active{
                    color: ${Colors.primary};
                }
                &.active{
                    font-weight: 600;
                }
            }
        }
    }
    .footer-center{
        padding: 30px 0;
        border-top: 1px solid rgb(0 0 0 / 20%);
        border-bottom: 1px solid rgb(0 0 0 / 20%);
        .brand-list{
            .slick-track{
                display: flex;
                align-items: center;
                justify-content: center;
                grid-gap: 40px;
                @media  ${device.tablet}{
                    grid-gap: 10px; 
                }
                .slick-slide{
                    width: auto !important;
                }
            }
            .brand-image{
                text-align: center;
                padding: 0 20px;
                img{
                    width: 100%;
                    height: 120px;
                    object-fit: contain;
                    margin: auto;
                    filter: grayscale(1);
                    transition: all 0.4s;
                    @media  ${device.tablet}{
                        width: auto;
                        max-width: 120px;
                        height: auto;
                        max-height: 80px;
                    }
                }
                &:hover{
                    img{
                        filter: grayscale(0);
                        transition: all 0.4s;
                    }
                }
            }
        }
    }
    .footer-bottom{
        padding: 26px 0;
        p{
            font-size:12px;
            text-align: center;
            margin: 0;
            color: ${Colors.gray_33};
            span{
                padding: 0 10px;
            }
            a{
                color: ${Colors.gray_33};
                &:hover{
                    color: ${Colors.primary};
                    text-decoration: underline;
                }    
            }
        }
    }
    @media  ${device.laptop}{
        .footer-top {
            .footer-logo{
                margin-bottom: 24px;
            }
            .footer-info{
                ul{
                    grid-gap: 6px;
                    margin-bottom: 24px;
                    li{
                        a{
                            width: 34px;
                            height: 34px;
                            svg{
                                width: 18px;
                                height: 18px;
                            }
                        }
                    }
                }
            }
            .quick-list{
                column-gap: 0;
                li{
                    margin-bottom: 20px;
                }
                a{
                    font-size: 16px;
                }
            }
            .call-link {
                padding: 9px 30px;
                grid-gap: 8px;
                svg{
                    width: 20px;
                }
            }
            .footer-col {
                .regulatory-list{
                    max-width: 175px;
                    a{
                        font-size: 13px;
                    }
                }
            }
        }
    }
    @media  ${device.laptopS}{
        .footer-top {
            padding: 50px 0;
            .call-link {
                span{
                    font-size: 14px ;
                }
            }
            .footer-col {
                h4{
                    margin-bottom: 20px;
                }
                &.footer-info{
                    border-top: 1px solid rgb(0 0 0 / 20%);
                    margin-top: 24px;
                    padding-top: 24px;
                }
            }
            .footer-info {
                ul {
                    display: flex;
                    grid-gap: 10px;
                    li {
                        a{
                            width: 38px;
                            height: 38px;
                        }
                    }
                }
            }
            .quick-list {
                li{
                    margin-bottom: 10px;
                }
            }
        }
        .footer-center{
            padding: 16px 0;
        }
        .footer-bottom{
            padding: 12px 0;
            p{
                font-size: 12px;
                span{
                    padding: 0 8px;
                }
            }
        }
    }
    @media  ${device.tablet}{
        .footer-top {
            .footer-col {
                border-bottom: 1px solid rgb(0 0 0 / 20%);
                margin-bottom: 24px;
                padding-bottom: 20px;
                &.footer-info {
                    border: none;
                    padding: 0 12px;
                    margin: 0;
                }
            }
        }
    }
    @media  ${device.mobile}{
        .footer-top {
            padding: 40px 0;
            .footer-logo{
                margin-bottom: 16px;
            }
            .quick-list {
                a{
                    font-size: 14px;
                }
            }
            .footer-col {
                h4{
                    font-weight: 600;
                }
                .regulatory-list{
                    max-width: 50%;
                }
            }
        }
    }
    @media  ${device.mobileS}{
        .footer-logo-col{
            text-align: center;
        }
        .footer-top{
            .footer-col{
                h4{
                    font-size: 18px;
                    margin-bottom: 16px;
                }
                .link-group{
                    flex-wrap: wrap;
                }
                .regulatory-list{
                    width: 100%;
                    max-width: 100%;
                    margin-bottom: 10px;
                    &:last-child{
                        margin: 0;
                    }
                }
            }
            .footer-info {
                ul{
                    margin-bottom: 20px;
                }
            }
        }
        .footer-bottom {
            p{
                font-size: 10px;
                line-height: 18px;
            }
        }
    }
`;