﻿/* ============================================
   메인 페이지 전용 CSS (index.php)
   ============================================ */

/* About Counting Sheep 탭 */
.panel-rail {
    --panel-width: 1200px;
    --tab-width: 65px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1265px;
    display: flex;
    align-items: center;
    transform: translateX(calc(-1 * var(--panel-width, 80%)));
    transition: transform 0.5s ease-in-out;
    z-index: 100;
    overflow: visible;
}

.panel-rail.is-open {
    transform: translateX(0);
}

.left-tab {
    position: relative;
    margin-left: 0;
    width: var(--tab-width, 65px);
    height: auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 120;
}

.left-tab-image {
    width: auto;
    height: auto;
    display: block;
}

.left-tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 20px;
    transform: rotate(180deg);
}

.sheep-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 슬라이딩 패널 */
.sliding-panel {
    position: relative;
    width: var(--panel-width, 1200px);
    height: 100%;
    background-color: #1c2e57;
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sliding-panel-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.sliding-panel-logo img {
    width: 140px;
    height: auto;
    display: block;
}

.sliding-panel.no-video .sliding-panel-logo {
    display: block;
}

.sliding-panel.no-video .sliding-panel-content {
    display: none;
}

.main-container.is-panel-open .panels-container,
.main-container.is-panel-open .right-nav {
    filter: blur(8px);
    pointer-events: none;
}

.right-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.sliding-panel-content {
    width: 80%;
    max-width: 1200px;
    height: 70%;
    position: relative;
}

.sliding-panel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0f1b38;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 중앙 패널 컨테이너 */
.panels-container {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1725px; /* 305px * 5 + 50px * 4 (gap) */
    height: 700px;
    gap: 50px;
    justify-content: center;
    align-items: center;
    transition: filter 0.4s ease;
}

/* 패널 기본 스타일 */
.panel {
    width: 305px;
    height: 700px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    flex-shrink: 0;
}

.panel:nth-child(1) { animation-delay: 0.2s; }
.panel:nth-child(2) { animation-delay: 0.3s; }
.panel:nth-child(3) { animation-delay: 0.4s; }
.panel:nth-child(4) { animation-delay: 0.5s; }
.panel:nth-child(5) { animation-delay: 0.6s; }

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.panel:not(.panel-about):hover .panel-image {
    transform: scale(1.05);
}

.panel-about:hover .panel-image {
    transform: scale(1.05);
}

.panel-mattress:hover .panel-image {
    transform: translate(-50%, -50%) scale(1.05);
}

.panel:not(.panel-about) {
    cursor: pointer;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%);
}

.panel-title {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 55px;
    font-weight: 700;
    z-index: 10;
    line-height: 1;
}

/* ABOUT 패널 */
.panel-about {
    background-color: #e8e8e8;
}

.panel-about .panel-title {
    color: #333;
}

.about-content {
    position: absolute;
    bottom: 30px;
    left: 50px;
    z-index: 10;
    width: 220px;
    text-align: center;
}

.brand-name {
    font-size: 96px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: 'SUIT', serif;
}

.brand-name img {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.brand-slogan {
    font-size: 18px;
    color: #333;
    margin-bottom: 140px;
    font-weight: 300;
}

.brand-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    font-weight: 400;
}

.brand-url {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.about-decorative {
    position: absolute;
    top: 100px;
    left: 300px;
    width: 400px;
    height: 300px;
    background-color: #d0d0d0;
    border-radius: 50%;
    opacity: 0.6;
}

.about-decorative:nth-of-type(2) {
    left: 400px;
    top: 150px;
    background-color: #c8c8c8;
    z-index: 1;
}

.about-decorative:first-of-type {
    z-index: 2;
}

/* SINGLE 패널 */
.panel-single {
    background-color: #f0f0f0;
}

.panel-single .panel-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* COUPLE 패널 */
.panel-couple {
    background-color: #f5f5f5;
}

.panel-couple .panel-title {
    color: #333;
}

/* MATTRESS 패널 */
.panel-mattress {
    background-color: #2a2a2a;
}

.panel-mattress .panel-title {
    color: white;
    top: 40px;
    font-size: 45px;
    line-height: 0.9;
}


.panel-mattress .panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.panel-mattress .panel-image-frame {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 72%;
    height: 48%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.panel-mattress:hover .panel-image {
    transform: scale(1.05);
}

.panel-mattress .panel-overlay {
    display: none;
}


.mattress-desc {
    position: absolute;
    bottom: 60px;
    left: 40px;
    color: white;
    font-size: 16px;
    font-weight: 300;
    z-index: 10;
    width: 225px;
}

/* SIDE TABLE 패널 */
.panel-side-table {
    background-color: #f8f8f8;
}

.panel-side-table .panel-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 45px;
    line-height: 0.9;
}


