import styled from '@emotion/styled' ; interface CardContainerProps { width : number ; } export const Grid = styled . div `
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 45px;
` ; export const CardContainer = styled . div < CardContainerProps > `
    display: flex;
    width: ${ ( props ) => props . width }px;
    height: ${ ( props ) => ( props . width * 3 ) / 2 }px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0px 3px 3px 1px rgba(0, 0, 0, 0.4);
    transition: 0.5s ease-out;
    position: relative;

    & > img {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        object-position: center;
        object-fit: cover;
    }

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.3);
    }
` ; export const BlurBottom = styled . div `
    position: relative;
    display: flex;
    color: ${ ( props ) => props . theme . color . white };
    height: 30%;
    width: 100%;
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(175, 175, 175, 0) 0%, rgba(44, 44, 44, 0.47) 77.08%, #2d2d2d 100%);
    border-radius: 0px 0px 20px 20px;
    backdrop-filter: blur(20px);
    padding: 20px;
    div {
        width: 100%;
    }
` ; export const BlurFull = styled . div `
    height: 100%;
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: ${ ( props ) => props . theme . color . white };
    animation: growblur 0.7s ease-out;
    backdrop-filter: blur(20px);

    @keyframes growblur {
        0% {
            backdrop-filter: blur(6px);
            background: rgba(0, 0, 0, 0);
        }
        100% {
            backdrop-filter: blur(20px);
            background: rgba(0, 0, 0, 0.4);
        }
    }
` ; interface textAlign { align ? : string ; } export const Title = styled . p < textAlign > `
    font: ${ ( props ) => props . theme . font . textEnMd };
    margin: 10px auto;
    text-align: ${ ( props ) => props . align || 'left' };
` ; export const P = styled . p < textAlign > `
    font: ${ ( props ) => props . theme . font . textEnBase };
    margin: 10px auto;
    text-align: ${ ( props ) => props . align || 'left' };
` ; export const Price = styled . p `
    margin-right: 10px;
    font: ${ ( props ) => props . theme . font . textEnSm };
    font-size: 16px;
` ; export const PriceContainer = styled . div `
    position: absolute;
    bottom: 20px;
    right: 20px;

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

    & img {
        width: 28px;
        height: 29px;
        opacity: 0.7;
    }
` ;