/* JunSan-Special.css - 준산 특별 리뷰 페이지 스타일 */

/* --- 1. Global Variables & Reset (Light Mode Theme) --- */
:root {
    --ut-green: #2ecc71;
    /* UsageTalk Signature Green */
    --ut-green-hover: #27ae60;
    --ut-light-bg: #ffffff;
    /* 흰색 배경으로 변경 */
    --ut-card-bg: #f8f8f8;
    /* 밝은 회색 카드 배경 */
    --ut-text-main: #333333;
    /* 검정색 텍스트 */
    --ut-text-sub: #666666;
    /* 회색 서브 텍스트 */
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--ut-light-bg);
    /* 흰색 배경 */
    color: var(--ut-text-main);
    /* 검정색 텍스트 */
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- 2. Layout Utilities --- */
.clsContainer {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.clsSectionSpacer {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 3. Typography & Badges --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
}

h2.clsSectionTitle {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 900;
}

p.clsSectionSubtitle {
    text-align: center;
    color: var(--ut-text-sub);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Section Description - 긴 설명 텍스트 */
.clsSectionDescription {
    text-align: center;
    color: var(--ut-text-sub);
    margin-bottom: 50px;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.clsHighlight {
    color: var(--ut-green);
}

/* Tag Wrapper - 태그들을 왼쪽 정렬 */
.clsTagWrapper {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.clsTagBadge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    background-color: var(--ut-green);
    color: white;
    transition: all 0.3s ease;
}

.clsTagBadge:hover {
    transform: scale(1.05);
}

/* Before 태그 - 파란색 */
.clsTagBadge.clsTagBefore {
    border-color: #3498db;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.clsTagBadge.clsTagBefore:hover {
    background-color: #3498db;
    color: white;
}

/* After 태그 - 주황색 */
.clsTagBadge.clsTagAfter {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.clsTagBadge.clsTagAfter:hover {
    background-color: #e74c3c;
    color: white;
}

/* --- 4. Hero Section --- */
.clsHeroSection {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.clsHeroTitle {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 900;
    color: var(--ut-text-main);
}

.clsHeroSubtitle {
    font-size: 1.3rem;
    color: var(--ut-text-sub);
    margin-bottom: 0;
}

/* --- 5. Sticky Navigation --- */
.clsStickyNav {
    position: sticky;
    top: 70px;
    /* 헤더 높이만큼 */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 50;
    /* 헤더(9999)보다 낮게 설정 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clsNavList {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.clsNavBtn {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.clsNavBtn:hover,
.clsNavBtn.active {
    background: var(--ut-green);
    border-color: var(--ut-green);
    color: #fff;
    font-weight: bold;
}

/* --- 6. Video Grid System (Responsive Magic) --- */
.clsVideoGrid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* Case 1: 1 Video (Cinema Mode) */
.clsGrid1 {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Case 2: 2 Videos (Split Mode) */
.clsGrid2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Case 3: 3 Videos (Gallery Mode) */
.clsGrid3 {
    grid-template-columns: repeat(3, 1fr);
}

/* --- 7. Video Card Component --- */
.clsVideoCard {
    background-color: var(--ut-card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.clsVideoCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2);
}

/* Video Area (16:9 Aspect Ratio) */
.clsVideoWrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Ratio */
    background-color: #000;
    cursor: pointer;
}

/* Placeholder background for videos without thumbnails */
.clsVideoWrapper.clsVideoPlaceholder {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clsVideoWrapper.clsVideoPlaceholder::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.clsVideoWrapper iframe,
.clsVideoWrapper .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ Video Thumbnail - 모든 썸네일 동일 크기 */
.clsVideoThumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 비율 유지하면서 영역 채우기 */
    z-index: 1;
}

/* Custom Play Button */
.clsPlayBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--ut-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.clsPlayBtn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid var(--ut-green);
    margin-left: 5px;
}

.clsVideoWrapper:hover .clsPlayBtn {
    background: var(--ut-green);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--ut-green);
}

.clsVideoWrapper:hover .clsPlayBtn::after {
    border-left-color: white;
}

/* Card Text Content */
.clsCardContent {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clsCardTitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.clsCardDesc {
    font-size: 0.9rem;
    color: var(--ut-text-sub);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* --- 8. CTA Section --- */
.clsCtaSection {
    background: linear-gradient(135deg, #111 0%, #0a2f1b 100%);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.clsCtaBtn {
    background-color: var(--ut-green);
    color: #000;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 18px 50px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
    transition: 0.3s;
    display: inline-block;
}

.clsCtaBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.6);
    background-color: #fff;
}

/* --- 9. Responsive Media Queries --- */
@media (max-width: 900px) {
    .clsGrid3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h2.clsSectionTitle {
        font-size: 1.8rem;
    }

    .clsHeroTitle {
        font-size: 2rem;
    }

    .clsHeroSubtitle {
        font-size: 1rem;
    }

    .clsStickyNav {
        top: 50px;
        /* 모바일 헤더 높이 */
    }

    /* 모바일: 모든 그리드를 1열로 강제 변환 */
    .clsGrid1,
    .clsGrid2,
    .clsGrid3 {
        grid-template-columns: 1fr;
    }

    .clsNavList {
        gap: 5px;
    }

    .clsNavBtn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .clsVideoCard {
        margin-bottom: 20px;
    }

    .clsSectionSpacer {
        padding: 60px 0;
    }

    .clsStickyNav {
        top: 50px;
        /* 모바일 헤더 높이 */
    }
}

/* --- 10. Scroll Animations --- */
.clsFadeIn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.clsFadeIn.clsVisible {
    opacity: 1;
    transform: translateY(0);
}