@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary-color: #5EB0ED; /* 포인트 컬러 */
    --bg-color: #FAF0A8; /* 전체 연한 배경색 */
    --card-bg: #FFFFFF;
    --text-main: #111111;
    --text-sub: #666666;
    --placeholder: #D9D9D9; /* 회색 네모박스 색상 */
    --border-color: #E2E8E5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 40px;
}
.header-logo-img {
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding: 24px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
}

.copyright {
    color: var(--text-sub);
    font-size: 13px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-sub);
    text-decoration: underline;
    font-size: 13px;
}

/* Reusable UI Components */
.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-desc {
    color: var(--text-sub);
    font-size: 16px;
    margin-bottom: 40px;
}

.placeholder-box {
    background-color: var(--placeholder);
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 700;
    font-size: 20px;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}
.placeholder-box:active {
    transform: scale(0.98);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}
.lightbox.active {
    opacity: 1;
}

/* Home */
.youtube-mv {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    margin-top: 20px;
    margin-bottom: 60px;
}
/* Carousel Banner */
.carousel-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 12 / 5;
    margin: 0 auto 40px auto;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.carousel-item {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--placeholder);
    color: #555;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s;
    z-index: 10;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.9); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
}
.carousel-indicators .dot {
    width: 8px;
    height: 8px;
    background: #CCC;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
}
.carousel-indicators .dot.active {
    background: #0096FF;
    width: 16px;
    border-radius: 8px;
}

.btn-outline {
    background-color: #FFFFFF !important;
    border: 1px solid var(--border-color);
    border-radius: 50px !important;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 176, 237, 0.15);
}

/* Pill Button Grid */
.pill-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.home-shortcuts {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}
.home-shortcuts .pill-btn {
    flex: 1 1 0;
    white-space: nowrap;
}
.pill-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pill-btn:hover, .pill-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94,176,237,0.15);
}
.pill-icon {
    font-size: 20px;
}

/* One Click Streaming */
.platform-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.icon-box {
    width: 150px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.icon-box:hover, .icon-box.active {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(94,176,237,0.15);
}
.icon-box.active .icon-placeholder {
    background: var(--primary-color);
}
.icon-box.active .icon-img {
    box-shadow: 0 0 0 3px var(--primary-color);
}
.icon-placeholder {
    width: 48px;
    height: 48px;
    background: #EAEAEA;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: background 0.2s;
}
.icon-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
    transition: box-shadow 0.2s;
}
.icon-name { font-size: 14px; font-weight: 600; color: var(--text-sub); }
.recommended-list-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}
.recommended-list-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.recommended-placeholder { height: 600px; }

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tab {
    flex: 1 1 0;
    text-align: center;
    padding: 12px 4px;
    font-size: 14px;
    letter-spacing: -0.3px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.tab.active {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

/* Guide Image & Sequence */
.img-sequence {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.guide-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: block;
    cursor: zoom-in;
}

/* Guide placeholder */
.guide-placeholder { height: 800px; }

/* Genie Share Grid */
.genie-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.genie-share-grid .btn-primary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 10px;
}

/* Music Show */
.musicshow-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.ms-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
}
.ms-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between;}
.ms-placeholder { height: 200px; }

/* Radio & Donation Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.info-card:hover, .info-card.active {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.info-card h3 { font-size: 22px; margin-bottom: 12px; }
.info-card p { color: var(--text-sub); margin-bottom: 30px; font-size: 15px; line-height: 1.5; pointer-events: none; }
.info-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}
.btn-primary {
    background-color: #007D62;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}
.info-card.active .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: border-color 0.2s;
}
.info-card.active .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Official Links */
.official-links-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.official-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-sub);
    transition: transform 0.2s, color 0.2s;
}
.official-link-item:hover {
    transform: translateY(-3px);
    color: var(--text-main);
}
.official-icon-placeholder {
    width: 56px;
    height: 56px;
    background-color: var(--placeholder);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.official-link-item:hover .official-icon-placeholder {
    background-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(94,176,237,0.3);
}
.official-link-text {
    font-size: 13px;
    font-weight: 600;
}

/* Official Icon Images */
.official-icon-img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.official-link-item:hover .official-icon-img {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(94,176,237,0.3);
}

/* 햄버거 메뉴 토글 버튼 (PC에서는 숨김) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 200;
}
.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        padding-top: 80px;
        padding-left: 30px;
        gap: 10px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 150;
    }
    
    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        display: block;
    }
    .nav-link.active::after {
        display: none; /* 모바일 메뉴에서는 밑줄 효과 제거 */
    }
    .nav-link.active {
        color: var(--primary-color);
    }

    /* 햄버거 X 애니메이션 */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 반응형 레이아웃 조정 */
    .pill-btn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-shortcuts {
        flex-wrap: nowrap;
    }
    .home-shortcuts .pill-btn {
        flex: 1 1 0;
        min-width: 0;
    }
    .pill-btn {
        padding: 16px 12px;
        font-size: 14px;
        gap: 8px;
    }
    .pill-icon {
        font-size: 16px;
    }
    .platform-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .icon-box {
        width: calc(33.333% - 6px); /* 한 줄에 3개씩 배치되도록 너비 설정 */
        padding: 12px 0;
        border-radius: 12px;
    }
    .icon-placeholder {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }
    .icon-name {
        font-size: 12px;
    }

    .musicshow-top {
        grid-template-columns: 1fr;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .info-card {
        padding: 20px 16px;
    }
    .info-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
        text-align: left;
    }
    .info-card p {
        display: block;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .support-grid .info-card {
        padding: 16px 12px;
    }
    .support-grid .info-card h3 {
        font-size: 15px;
        margin-bottom: 4px;
        text-align: center;
    }
    .support-grid .info-card p {
        display: none;
    }

    .genie-share-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .btn-primary, .btn-outline {
        padding: 10px 16px;
        font-size: 14px;
    }

    .official-links-wrapper {
        gap: 16px;
        flex-wrap: wrap;
    }
    .official-icon-placeholder, .official-icon-img {
        width: 48px;
        height: 48px;
        font-size: 14px;
        border-radius: 12px;
        margin-bottom: 8px;
    }
    .official-link-text {
        font-size: 12px;
    }

    .main-content {
        padding: 30px 16px;
    }
    .page-title {
        font-size: 24px;
    }
    
    /* 가이드 탭(버튼) 모바일 줄바꿈 균형 조정 */
    .tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .tab {
        flex: 1 1 calc(20% - 6px); /* 5 items per row max */
        padding: 10px 2px;
        font-size: 11px;
        letter-spacing: -0.5px;
    }
    .download-tabs .tab {
        flex: 1 1 calc(25% - 6px); /* 4 items per row */
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* 초소형 모바일 화면 (가로 380px 이하) 대응 */
@media (max-width: 380px) {
    .pill-btn {
        font-size: 13px;
        padding: 14px 8px;
    }
    .home-shortcuts .pill-btn {
        flex: 1 1 100%;
    }
}

/* Background Decorations */
.bg-deco {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}
.bg-deco-1 { top: 5%; left: 5%; width: 15vw; max-width: 150px; height: 15vw; max-height: 150px; background-image: url('image/bg_deco_1.svg'); }
.bg-deco-2 { top: 15%; right: 5%; width: 12vw; max-width: 120px; height: 12vw; max-height: 120px; background-image: url('image/bg_deco_2.svg'); }
.bg-deco-3 { bottom: 10%; left: 8%; width: 18vw; max-width: 180px; height: 18vw; max-height: 180px; background-image: url('image/bg_deco_3.svg'); }
.bg-deco-4 { bottom: 15%; right: 8%; width: 20vw; max-width: 200px; height: 20vw; max-height: 200px; background-image: url('image/bg_deco_4.svg'); }
.bg-deco-5 { top: 40%; left: 50%; transform: translate(-50%, -50%); width: 25vw; max-width: 250px; height: 25vw; max-height: 250px; background-image: url('image/bg_deco_5.svg'); opacity: 0.6; }
