/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0d2a4a; /* MTV 네이비 */
    --accent-color: #ffffff;
    --text-color: #333333;
    --bg-color: #f8f9fa;
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    /* 💡 메인 헤더 고정을 위한 여백 추가 */
    padding-top: 70px; 
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =======================================================
   1. 커스텀 팝업(모달) 공통 스타일 (대표님 원본)
======================================================== */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.custom-modal-overlay.active { opacity: 1; visibility: visible; }
.custom-modal-box {
    background: #fff; width: 90%; max-width: 400px; border-radius: 12px; padding: 24px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.active .custom-modal-box { transform: translateY(0); }
.custom-modal-message { font-size: 16px; margin-bottom: 24px; line-height: 1.5; color: #333; word-break: keep-all; }
.custom-modal-btn {
    background-color: var(--primary-color); color: #fff; border: none; padding: 12px 24px;
    border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; width: 100%; transition: background-color 0.2s;
}
.custom-modal-btn:hover { background-color: #1a4270; }

/* =======================================================
   2. 메인 페이지 (히어로, 버튼, 유튜브) 스타일
======================================================== */
.hero-section { position: relative; height: calc(100vh - 70px); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('/images/main.png') no-repeat center center/cover; transform: scale(1.05); transition: background-image 0.5s ease; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(13, 42, 74, 0.9) 0%, rgba(10, 25, 47, 0.7) 100%); }
.hero-content { position: relative; z-index: 10; width: 100%; padding: 0 20px; box-sizing: border-box; }
.hero-title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; color: #fff; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.2; word-break: keep-all; }
.hero-desc { font-size: clamp(0.95rem, 2vw, 1.25rem); color: #cdd6e0; line-height: 1.6; word-break: keep-all; }
.pc-br { display: block; }
.btn-smartstore-pro { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 1.1rem; font-weight: 600; padding: 16px 32px; border-radius: 50px; backdrop-filter: blur(5px); cursor: pointer; transition: all 0.3s; }
.btn-smartstore-pro:hover { background: #03c75a; border-color: #03c75a; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(3, 199, 90, 0.3); }

/* 우측 하단 둥둥이 B2B 버튼 */
.floating-b2b-btn { position: fixed; right: 20px; bottom: 30px; z-index: 990; width: 70px; height: 70px; background-color: #0d2a4a; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-decoration: none; box-shadow: 0 8px 25px rgba(13, 42, 74, 0.4); transition: transform 0.3s, box-shadow 0.3s; }
.floating-b2b-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 30px rgba(13, 42, 74, 0.6); }
.floating-b2b-btn .icon { font-size: 24px; margin-bottom: 2px; }
.floating-b2b-btn .text { font-size: 12px; font-weight: 800; line-height: 1.1; text-align: center; }

/* 공통 섹션 타이틀 & 유튜브 16:9 비율 세팅 */
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; color: #0d2a4a; margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; word-break: keep-all; }
.section-desc { text-align: center; font-size: 1.1rem; color: #666; margin-bottom: 40px; word-break: keep-all; }
.trust-section { padding: 100px 0; background: #fff; }
.youtube-wrapper { position: relative; width: 100%; max-width: 900px; margin: 0 auto; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); background-color: #000; pointer-events: none; }
.youtube-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* =======================================================
   3. 메인 라인업 섹션 (와이드 카드 & 4개 브라켓)
======================================================== */
.lineup-section { padding: 100px 0; background: #0a192f; }

/* 와이드 카드 (z-index 충돌 해결) */
.lineup-featured { position: relative; background: #0d2a4a; border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 40px; margin-bottom: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden; }
.lineup-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); z-index: 0; transition: opacity 0.3s; }
.lineup-featured:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.lineup-featured:hover::before { opacity: 0.5; }
.featured-content, .featured-icon { position: relative; z-index: 10; }
.featured-content { text-align: left; }
.badge { background:#03c75a; color:#fff !important; padding:6px 14px; border-radius:20px; font-size:12px; font-weight:bold; margin-bottom:15px; display:inline-block; }
.featured-title { font-size:1.8rem; margin:0 0 10px 0; color: #ffffff !important; font-weight: 800; }
.featured-desc { color:#cdd6e0 !important; margin:0; font-size:1.05rem; line-height: 1.6; word-break:keep-all; }
.featured-icon { font-size: 4.5rem; color: #ffffff !important; opacity: 0.9; }

/* 하단 4개 브라켓 카드 (글씨 묻힘 방지 !important 적용) */
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lineup-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 35px 25px; cursor: pointer; transition: all 0.3s; position: relative; }
.lineup-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); transform: translateY(-5px); }
.lineup-card h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: #ffffff !important; }
.lineup-card p { color: #cdd6e0 !important; font-size: 0.95rem; line-height: 1.5; margin-bottom: 0; }
.lineup-icon { position: absolute; right: 25px; bottom: 25px; font-size: 2rem; color: rgba(255,255,255,0.4) !important; transition: color 0.3s; }
.lineup-card:hover .lineup-icon { color: #ffffff !important; }

/* 4. 제품 상세 전용 넓은 모달 */
.product-modal-box { width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 35px 30px; position: relative; text-align: center; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.custom-modal-overlay.active .product-modal-box { transform: translateY(0); }
.close-modal-btn { position: absolute; top: 15px; right: 20px; font-size: 32px; color: #bbb; cursor: pointer; transition: color 0.3s; line-height: 1; }
.close-modal-btn:hover { color: #333; }

/* =======================================================
   5. 모바일/PC 반응형 제어
======================================================== */
@media (min-width: 769px) { 
    .hero-bg { background-image: url('/images/mainpc.png'); } 
}
@media (max-width: 768px) {
    .pc-br { display: none; }
    .btn-smartstore-pro { width: 100%; padding: 18px 20px; font-size: 1rem; }
    .floating-b2b-btn { bottom: 20px; right: 15px; width: 60px; height: 60px; }
    .floating-b2b-btn .icon { font-size: 20px; margin-bottom: 0; }
    .floating-b2b-btn .text { font-size: 11px; }
    .trust-section, .lineup-section { padding: 60px 0; }
    .section-desc { margin-bottom: 25px; font-size: 1rem; }
    .youtube-wrapper { border-radius: 12px; }
    
    .product-modal-box { padding: 30px 20px; width: 92%; }
    #modal-title { font-size: 20px !important; }
    
    .lineup-featured { flex-direction: column; text-align: center; padding: 30px 20px; }
    .featured-content { text-align: center; } 
    .featured-title { font-size: 1.5rem !important; }
    .featured-icon { font-size: 3rem; margin-top: 20px; }
}