/**
 * 파일명: home.css
 * 위치: /home/insamvillage/public_html/assets/css/
 * 기능: 메인 페이지 전용 스타일
 * 작성일: 2025-11-09
 */

/* === 히어로 섹션 === */
.hero-video {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* 초기 그라데이션 배경 */
.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #B8D4B8;
    z-index: 1;
    transition: opacity 1s ease;
}

.hero-gradient-bg.fade-out {
    opacity: 0;
}

/* 영상 래퍼 */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-video-wrapper.show {
    opacity: 1;
}

/* 포스터 이미지 */
.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 유튜브 iframe */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

/* 영상 오버레이 */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

/* 텍스트 콘텐츠 */
.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 0;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-charcoal);
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-main {
    font-size: 3rem;
    color: var(--text-charcoal);
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-main .brand-green {
    color: var(--primary-green);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 통계 카드 === */
.stats-cards {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card.teal {
    background: linear-gradient(135deg, #17A2A2, #20B2AA);
}

.stat-card.orange {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.stat-card.yellow {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
}

.stat-card.gray {
    background: linear-gradient(135deg, #9E9E9E, #BDBDBD);
}

.stat-icon {
    color: white;
}

.stat-info {
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-number .unit {
    font-size: 1.125rem;
    font-weight: 400;
    margin-left: 3px;
}

/* === 마을 소개 === */
.village-intro {
    padding: 80px 0;
    background: #E8F4E8;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h3 {
    font-size: 2.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.intro-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.intro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.intro-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.intro-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* === 프로그램 === */
.programs {
    padding: 80px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.program-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-img img {
    transform: scale(1.1);
}

.program-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
}

.program-badge.hot { background: #FF5252; }
.program-badge.special { background: #4CAF50; }
.program-badge.tradition { background: #FF9800; }
.program-badge.experience { background: #2196F3; }
.program-badge.seasonal { background: #9C27B0; }
.program-badge.village { background: #00BCD4; }

.program-body {
    padding: 25px;
}

.program-body h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.program-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.program-price {
    color: var(--text-green);
    font-size: 1.125rem;
    font-weight: 700;
}

.program-season {
    background: #E8F5E9;
    color: var(--text-green);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8125rem;
}

/* === 연락처 === */
.contact-section {
    padding: 80px 0;
    background: #E8F4E8;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.contact-left h3,
.contact-right h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item span {
    color: #666;
}

/* === 버튼 === */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 버튼 공통 스타일 (main.css에서 상속) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* 메인 페이지 전용 버튼 스타일 오버라이드 */
.btn-primary {
    background: var(--text-green);
    color: white;
    border-color: var(--text-green);
}

.btn-primary:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--ginseng-gold);
    color: white;
    border-color: var(--ginseng-gold);
}

.btn-secondary:hover {
    background: #C69563;
    border-color: #C69563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-green);
    border-color: var(--text-green);
}

.btn-outline:hover {
    background: var(--text-green);
    color: white;
    transform: translateY(-2px);
}


/* === 반응형 === */
@media (max-width: 1024px) {
    .stats-grid,
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-video {
        min-height: 500px;
        padding: 100px 0 60px;
    }
    
    .hero-video-wrapper {
        display: none;
    }
    
    .hero-gradient-bg {
        opacity: 1 !important;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-main {
        font-size: 2rem;
    }
    
    .stats-grid,
    .intro-grid,
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* reduced motion 사용자는 영상 숨김 */
@media (prefers-reduced-motion: reduce) {
    .hero-video-wrapper {
        display: none;
    }
    
    .hero-gradient-bg {
        opacity: 1 !important;
    }
}

