/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 헤더 스타일 */
.header {
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
    z-index: 1000;
    transition: position 0.3s ease;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 메인 콘텐츠 영역 */
.main {
    margin-bottom: 70px; /* footer height 확보 */
    padding: 0; /* 패딩 제거 */
}

/* 비디오 섹션 수정 */
.video-section {
    width: 100%;
    margin-top: 0; /* 간격 조정 */
}

/* 비디오 컨테이너 수정 */
.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율로 변경 */
    margin-bottom: 20px;
    cursor: pointer;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    pointer-events: auto;
    z-index: 2;
}

/* YouTube 기본 UI 요소 숨기기 */
.ytp-chrome-top,
.ytp-chrome-bottom,
.ytp-watermark,
.ytp-large-play-button {
    display: none !important;
}

/* 플레이어에 오버레이 수정 */
.youtube-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* 리스트 섹션에는 패딩 추가 */
.list-section {
    padding: 20px;
}

/* 리스트 스타일 */
.content-list {
    list-style: none;
}

/* 리스트 내 링크 스타일 수정 */
.content-list a {
    text-decoration: none;
    color: inherit;
    display: flex;          /* flex 컨테이너로 변경 */
    align-items: center;    /* 수직 중앙 정렬 */
    width: 100%;
    padding: 15px;          /* 클릭 영역 확대 */
}

.content-list li {
    background: white;
    margin-bottom: 15px;
    padding: 0;             /* 패딩을 a 태그로 이동 */
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;       /* border-radius 적용을 위해 */
}

.content-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.content-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.content-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.content-info p {
    font-size: 14px;
    color: #666;
}

/* 푸터 네비게이션 */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000; /* 푸터가 항상 위에 오도록 */
}

.footer-content {
    padding: 10px 0;
}

.nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-btn {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    color: #777;
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    transition: all 0.2s ease;
}

.nav-btn i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-btn span {
    font-size: 12px;
}

.nav-btn.active {
    color: #5D9CEC; /* 활성화된 버튼 색상 */
}

.nav-btn:hover {
    color: #4A89DC; /* 호버 색상 */
}

/* PC 화면 대응 스타일 */
@media screen and (min-width: 1025px) {
    html, body {
        background-color: #f6f7fb;  
    }

    /* 전체 앱 컨테이너 스타일 */
    .app {
        max-width: 430px;  /* 모바일 기기 평균 너비 */
        margin: 0 auto;    /* 중앙 정렬 */
        background-color: #f5f5f5;
        min-height: 100vh; /* 최소 높이를 화면 높이로 설정 */
        position: relative;
        box-shadow: 0 0 20px rgba(0,0,0,0.1); /* 그림자 효과 */
    }

    /* 헤더는 그대로 유지 */
    .header {
        max-width: 430px;
    }

    /* 메인 콘텐츠 영역 */
    .main {
        max-width: 430px;
    }

    /* 푸터 네비게이션 */
    .footer-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 매우 큰 화면에서의 최대 너비 제한 */
@media screen and (min-width: 1440px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
}

/* 브랜드 소개 스타일 */
.brand-intro {
    text-align: center;
    padding: 20px 30px 40px;
    line-height: 1.6;
}

.brand-intro p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.brand-intro p:last-child {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 배너 섹션 스타일 */
.banner-section {
    width: 100%;
    margin-top: -4px; /* 헤더와의 간격 제거 */
}

.banner-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    margin-bottom: 20px;
}

.banner-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 다운로드 섹션 특별 스타일 */
.download-section {
    padding: 20px;
    margin-bottom: 20px;
}

.download-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.download-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.download-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.download-content {
    padding: 20px;
    text-align: center;
}

.download-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.download-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* 푸터 페이지들을 위한 공통 스타일 */
.page-content {
    padding: 20px;
    margin-bottom: 70px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.admin-app {
    max-width: 430px;
    margin: 0 auto;
    background: var(--background-color, #f5f5f5);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding-bottom: 70px; /* 푸터 공간 확보 */
}
@media (min-width: 1025px) {
    .admin-app {
        background: #f6f7fb;
    }
    .admin-app .footer-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }
}
