@charset "utf-8";

/* #contentWrap 베이스·반응형은 common.css로 이관(공통). */

/* 취향발견 */
#tasteDscv {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

#tasteDscv .tasteList {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#tasteDscv .tasteList .cardBox {
    width: calc((100% - 80px) / 3);
    display: flex;
    box-sizing: border-box;
    outline: none;
}

#tasteDscv .card {
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* 1집발견 목록(.homePost)과 동일한 호버 그림자 */
    transition: box-shadow 0.3s ease-in-out;
}

#tasteDscv .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#tasteDscv .card h2 {
    width: 100%;
    height: 2.5em;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    word-break: keep-all;
    text-align: center;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#tasteDscv .tasteList .brandBox,
#tasteDscv .tasteList .quizBox {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    margin-top: auto;
    margin-bottom: auto;
}

#tasteDscv .tasteList .brandBox {
    position: relative;
}

#tasteDscv .tasteList .brandBox .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

#tasteDscv .tasteList .brandImg {
    width: 100%;
    height: 100%;
    margin: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 20px;
}

#tasteDscv .tasteList .quizBox {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

#tasteDscv .tasteList .quizImg {
    margin: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border-radius: 20px;
    flex: 1;
}

#tasteDscv .tasteList .btnTake {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    padding: 6px 45px ;
    background-color: var(--pointColor);
    border: 0;
    border-radius: 100vh;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    margin-top: auto;
}

#tasteDscv .tasteList .btnTake .takePoint {
    position: relative;
    font-size: 16px;
    color: #fff;
    font-weight: 900;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#tasteDscv .tasteList .btnTake .takePoint:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("../images/icon_point.svg");
    background-size: cover;
    background-position: 0 50%;
    background-repeat: no-repeat;
}

/*
Wide Desktop greater than 1600px — 4열
*/
@media (min-width: 1601px) {
    #tasteDscv .tasteList .cardBox {
        width: calc((100% - 120px) / 4);
    }
}

/*
Tablet Device Less than 1023px or greater than 768px
*/
@media all and (min-width:768px) and (max-width:1023px) {
    #tasteDscv .tasteList {
        gap: 20px;
    }

    #tasteDscv .tasteList .cardBox {
        width: calc((100% - 20px) / 2);
    }

    #tasteDscv .card h2 {
        font-size: 18px;
    }
}

/*
Mobile Device Less than 768px
*/
@media all and (max-width:767px) {
    #tasteDscv .tasteList {
        gap: 30px;
    }

    #tasteDscv .tasteList .cardBox {
        width: 100%;
    }

}

/* blade @push('styles')에서 이관 (CSS 정리) — 디자이너 taste.css 누락 보강
   1) --bg-img 변수 → background-image 매핑 (다른 페이지 패턴과 동일)
   2) .quizBox position:relative — .label(absolute) 기준 컨테이너 */
#tasteDscv .tasteList .brandImg,
#tasteDscv .tasteList .quizImg { background-image: var(--bg-img); }
#tasteDscv .tasteList .quizBox { position: relative; }
#tasteDscv .tasteList .quizBox > .label,
#tasteDscv .tasteList .brandBox > .label { text-transform: uppercase; z-index: 2; pointer-events: none; }
