/* Interactive Showcase Frontend Styles */
.interactive-showcase-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Arial', sans-serif;
}

.interactive-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* 좌측 이미지 섹션 */
.showcase-image-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 20px;
}

.main-image-container {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.main-image-container:hover {
    transform: scale(1.02);
}

.main-showcase-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 우측 제목 목록 섹션 */
.showcase-titles-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.titles-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

/* 제목 항목 스타일 */
.title-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.title-item:hover {
    transform: translateX(8px);
}

.title-item.active {
    transform: translateX(12px);
}

.title-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.title-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 18px 24px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    min-height: 60px;
}

/* 활성화된 항목만 노란색 */
.title-item.active .title-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* 호버 시 색상 변경 */
.title-item:hover .title-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

/* 활성화 + 호버 */
.title-item.active:hover .title-content {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.title-text {
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    transition: color 0.3s ease;
}

/* 호버 시와 활성화 시 텍스트 색상 */
.title-item:hover .title-text,
.title-item.active .title-text {
    color: #1f2937;
}

.title-icon {
    font-size: 14px;
    margin-left: 12px;
    color: #fbbf24;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 호버 시와 활성화 시에만 아이콘 표시 */
.title-item:hover .title-icon,
.title-item.active .title-icon {
    opacity: 1;
}

/* 연결선 효과 (화살표 표시) */
.title-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f59e0b;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 호버 시나 활성화 시에만 화살표 표시 */
.title-item:hover::after,
.title-item.active::after {
    opacity: 0.6;
}

/* 호버 시 화살표 강조 */
.title-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

/* 오류 메시지 */
.interactive-showcase-error {
    text-align: center;
    padding: 40px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* 로딩 상태 */
.main-showcase-image[src=""] {
    opacity: 0.5;
    background: #f3f4f6;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .interactive-showcase-wrapper {
        gap: 40px;
    }
    
    .title-text {
        font-size: 15px;
    }
    
    .title-content {
        padding: 16px 20px;
        min-height: 55px;
    }
}

@media (max-width: 768px) {
    .interactive-showcase-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .interactive-showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .showcase-image-section {
        position: static;
        order: 2;
    }
    
    .showcase-titles-section {
        padding-top: 0;
        order: 1;
    }
    
    .titles-container {
        gap: 15px;
    }
    
    .title-content {
        padding: 15px 20px;
        min-height: 50px;
    }
    
    .title-text {
        font-size: 14px;
    }
    
    .title-item:hover {
        transform: translateX(4px);
    }
    
    .title-item.active {
        transform: translateX(6px);
    }
    
    /* 모바일에서는 연결선 제거 */
    .title-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .interactive-showcase-container {
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .interactive-showcase-wrapper {
        gap: 20px;
    }
    
    .titles-container {
        gap: 12px;
    }
    
    .title-content {
        padding: 12px 16px;
        min-height: 45px;
    }
    
    .title-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .title-icon {
        font-size: 12px;
        margin-left: 8px;
    }
    
    .main-image-container {
        border-radius: 8px;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .title-item,
    .title-content,
    .main-showcase-image,
    .main-image-container {
        transition: none;
    }
    
    .title-item:hover,
    .title-item.active {
        transform: none;
    }
    
    .main-image-container:hover {
        transform: none;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .title-content {
        border: 2px solid #000;
    }
    
    .title-text {
        color: #000 !important;
        font-weight: 600;
    }
}

/* 프린트 스타일 */
@media print {
    .interactive-showcase-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .interactive-showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title-content {
        background: #f3f4f6 !important;
        color: #1f2937 !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
    }
    
    .title-text {
        color: #1f2937 !important;
    }
    
    .title-item::after {
        display: none;
    }
    
    .main-image-container {
        box-shadow: none;
    }
    
    .showcase-image-section {
        position: static;
    }
} 