/* ===========================================
   Product Card Section
   제품 카드 섹션 스타일
   =========================================== */

/* Product List Section - Light Theme */
.product-list-section {
    padding: 0;
    position: relative;
}

.product-list-section .container {
    position: relative;
    z-index: 1;
    padding: 0;
}

.product-list-section .section-header h1 {
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 20px;
}

.product-list-section .section-header p {
    color: #666666;
    margin-bottom: 48px;
}

/* Product Card */
.product-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 900px;
    margin-bottom: 0;
}

.card-background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 900px;
}

.card-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out;
}

.card-background .default-bg {
    z-index: 1;
}

.card-background .left-hover-bg,
.card-background .right-hover-bg {
    z-index: 2;
    opacity: 0;
}

/* Hover Overlays */
.hover-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.red-overlay,
.blue-overlay {
    position: absolute;
    top: -100%;
    width: 50%;
    height: 100%;
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.red-overlay {
    right: 0;
    background-color: #9B2246;
}

.blue-overlay {
    left: 0;
    background-color: #00358E;
}

/* Product Logos */
.product-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.logo-left,
.logo-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-left {
    left: 0;
}

.logo-right {
    left: 50%;
}

.logo-left img,
.logo-right img {
    max-height: 900px;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.default-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 1;
}

.hover-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
}

/* Hover Texts */
.hover-texts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hover-text-left,
.hover-text-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 20px));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
}

.hover-text-left {
    left: 25%;
}

.hover-text-right {
    left: 75%;
}

.hover-text-left h2,
.hover-text-right h2 {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 22pt;
    font-weight: bold;
    letter-spacing: 0pt;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hover-text-left p,
.hover-text-right p {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 14pt;
    letter-spacing: 0pt;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Areas */
.hover-left,
.hover-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 4;
}

.hover-left {
    left: 0;
}

.hover-right {
    right: 0;
}

/* Left Hover Effect */
.hover-left:hover ~ .card-background .left-hover-bg {
    opacity: 1 !important;
}

.hover-left:hover ~ .hover-overlays .blue-overlay {
    top: 0 !important;
}

.hover-left:hover ~ .product-logos .default-logo {
    opacity: 0 !important;
}

.hover-left:hover ~ .product-logos .logo-left .hover-logo {
    opacity: 1 !important;
}

.hover-left:hover ~ .hover-texts .hover-text-left {
    opacity: 0 !important;
}

/* Right Hover Effect */
.hover-right:hover ~ .card-background .right-hover-bg {
    opacity: 1 !important;
}

.hover-right:hover ~ .hover-overlays .red-overlay {
    top: 0 !important;
}

.hover-right:hover ~ .product-logos .default-logo {
    opacity: 0 !important;
}

.hover-right:hover ~ .product-logos .logo-right .hover-logo {
    opacity: 1 !important;
}

.hover-right:hover ~ .hover-texts .hover-text-right {
    opacity: 0 !important;
}

/* JavaScript controlled classes */
.left-hover-active .left-hover-bg {
    opacity: 1 !important;
}

.left-hover-active .blue-overlay {
    top: 0 !important;
}

.left-hover-active .default-logo {
    opacity: 0 !important;
}

.left-hover-active .logo-left .hover-logo {
    opacity: 1 !important;
}

.left-hover-active .hover-text-left {
    opacity: 0 !important;
}

.right-hover-active .right-hover-bg {
    opacity: 1 !important;
}

.right-hover-active .red-overlay {
    top: 0 !important;
}

.right-hover-active .default-logo {
    opacity: 0 !important;
}

.right-hover-active .logo-right .hover-logo {
    opacity: 1 !important;
}

.right-hover-active .hover-text-right {
    opacity: 0 !important;
}

/* List Styles */
.list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* 클릭 가능한 영역 */
.list-left-half,
.list-right-half {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.list-left-half {
    left: 0;
}

.list-right-half {
    right: 0;
}

.list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* 카드(로고 컨테이너) */
.list li {
    position: relative;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 180px;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* 포커스 가능 & 접근성 */
.list li[tabindex="0"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(96,165,250,.55), 0 0 0 6px rgba(96,165,250,.25);
}

/* 등장 애니메이션 클래스 */
.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* 스태거 애니메이션 */
.list li:nth-child(1) { transition-delay: 100ms; }
.list li:nth-child(2) { transition-delay: 200ms; }
.list li:nth-child(3) { transition-delay: 300ms; }
.list li:nth-child(4) { transition-delay: 400ms; }
.list li:nth-child(5) { transition-delay: 500ms; }
.list li:nth-child(6) { transition-delay: 600ms; }

/* hover 효과 */
.list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 카드 안쪽 레이아웃 */
.list .logo_w {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.list .p_logo {
    transition: transform 0.3s ease;
}

.list .p_logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(.15) contrast(1.05);
    transition: transform .5s ease, filter .4s ease;
}

/* shine 하이라이트 */
.list li::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .9s cubic-bezier(.22,.85,.35,1);
    mix-blend-mode: screen;
}

.list li:hover::after {
    transform: translateX(120%);
}

/* hover 시 로고 강조 */
.list li:hover .p_logo {
    transform: scale(1.05);
}

/* 미세한 idle 플로팅 */
.list li:nth-child(3n) {
    animation: float 8s ease-in-out infinite .4s;
}

.list li:nth-child(3n+1) {
    animation: float 9s ease-in-out infinite 1s;
}

.list li:nth-child(3n+2) {
    animation: float 10s ease-in-out infinite .8s;
}

@keyframes float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -2px;
    }
}

/* 작은 캡션 */
.list .cap {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    letter-spacing: .02em;
}

.list .logo-placeholder {
    max-width: 100%;
    max-height: 50px;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.section-more {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-card {
        min-height: 500px;
    }

    .card-background {
        min-height: 500px;
    }

    .hover-text-left h2,
    .hover-text-right h2 {
        font-size: 16pt;
    }

    .hover-text-left p,
    .hover-text-right p {
        font-size: 10pt;
    }

    .list li {
        width: 140px;
        height: 80px;
    }
}
