/* 모바일 버전 CSS - 최대 768px */

/* 기본 설정 */
html {
    font-size: 14px;
    /* 모바일 스크롤 최적화 */
    scroll-behavior: auto; /* 모바일에서는 smooth scroll 비활성화 */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body {
    /* 모바일 스크롤 최적화 */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    /* 터치 액션 최적화 */
    touch-action: pan-y;
}

/* 네비게이션 스크롤 효과 */
.navbar {
    transition: transform 0.3s ease-in-out;
}

.container {
    padding: 0 var(--spacing-sm);
}

/* 섹션 타이틀 */
.section-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1rem;
}

/* 네비게이션 */
.nav-container {
    padding: 0 var(--spacing-sm);
}

.nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--spacing-xxl);
    transition: left var(--transition-normal);
    gap: var(--spacing-xl);
}

.nav-menu.active {
    left: 0;
}

.nav-link {
    font-size: 1.2rem;
    padding: var(--spacing-sm);
}

.hamburger {
    display: flex;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 히어로 섹션 */
.hero-section {
    min-height: 100vh;
    padding: var(--spacing-xxl) 0;
}

.hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
    padding: 0 var(--spacing-sm);
}

.hero-text {
    justify-self: center !important;
    text-align: center !important;
}

.title-main {
    font-size: 1.8rem;
}

.title-name {
    font-size: 2.8rem;
}

.hero-subtitle {
    font-size: 1.1rem;
}

.hero-description {
    font-size: 1rem;
}

.hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.image-frame {
    width: 250px;
    height: 380px;
    margin: 0 auto;
}

/* 프로필 섹션 */
.profile-section {
    padding: var(--spacing-xl) 0;
}

.info-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.info-item {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
}

.info-item i {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.info-text h3 {
    font-size: 1rem;
}

.info-text p {
    font-size: 0.9rem;
}

.profile-description {
    padding: var(--spacing-lg);
}

.profile-description p {
    font-size: 1rem;
}

/* 방송출연 섹션 */
.broadcast-section {
    padding: var(--spacing-xl) 0;
}

.broadcast-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.broadcast-card {
    padding: var(--spacing-lg);
}

.broadcast-image {
    aspect-ratio: 1 / 1; /* 모바일에서도 정사각형 유지 */
}

.broadcast-img {
    object-position: center 30%; /* 얼굴 위치 조정 */
}

.card-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
}

.card-header i {
    font-size: 1.8rem;
}

.card-header h3 {
    font-size: 1.2rem;
}

.card-content p {
    font-size: 0.95rem;
}

/* 음반 섹션 */
.albums-section {
    padding: var(--spacing-xl) 0;
}

.albums-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-lg);
}

.album-cover {
    height: 200px;
}

.album-image {
    font-size: 1.6rem;
}

.album-info {
    padding: var(--spacing-md);
}

.album-info h3 {
    font-size: 1.1rem;
}

.album-info p {
    font-size: 0.9rem;
}

/* 공연 섹션 */
.concerts-section {
    padding: var(--spacing-xl) 0;
}

.concerts-timeline::before {
    left: 20px;
}

.timeline-item {
    padding-left: 60px;
}

.timeline-year {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.timeline-content {
    padding: var(--spacing-lg);
}

.timeline-content h3 {
    font-size: 1.2rem;
}

.timeline-content li {
    font-size: 0.9rem;
    padding: var(--spacing-xs) 0;
    padding-left: 30px; /* 모바일에서 음표와 겹치지 않도록 */
}

/* 음악 스타일 섹션 */
.style-section {
    padding: var(--spacing-xl) 0;
}

.style-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.style-text p {
    font-size: 1rem;
}

.style-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-item {
    padding: var(--spacing-md);
}

.feature-item i {
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.85rem;
}

/* 갤러리 섹션 */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.gallery-image {
    height: 250px;
    object-fit: contain; /* 사진이 잘리지 않도록 */
    background-color: var(--primary-color); /* 빈 공간을 빨간색으로 채움 */
}

.gallery-overlay h3 {
    font-size: 1rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
}

/* 히스토리 갤러리 */
.history-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 500px;
}

/* 프로필 갤러리 */
.gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.history-img {
    aspect-ratio: 1 / 1; /* 정사각형 유지 */
    object-position: center 30%; /* 얼굴 위치 조정 */
}

.history-item p {
    font-size: 0.8rem;
}

/* 여담 섹션 */
.trivia-section {
    padding: var(--spacing-xl) 0;
}

.trivia-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.trivia-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
}

.trivia-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 0 auto var(--spacing-md);
}

.trivia-content h3 {
    font-size: 1.2rem;
}

.trivia-content p {
    font-size: 0.9rem;
}

/* 방송출연 섹션 리스트 */
.performance-list li {
    font-size: 0.85rem;
}

/* 음반 섹션 날짜 */
.album-date {
    font-size: 0.85rem;
}

/* 유튜브 채널 링크 */
.channel-link {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
}

.channel-link i:first-child {
    font-size: 1.3rem;
}

/* 유튜브 링크 */
.youtube-link {
    font-size: 0.85rem;
}

.youtube-link i {
    font-size: 1rem;
}

/* 연락처 섹션 */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-info {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    justify-items: center; /* 모바일에서도 중앙 정렬 */
    max-width: 600px;
    margin: 0 auto var(--spacing-xl) auto;
}

.footer-message {
    font-size: 0.8rem;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-card {
    padding: var(--spacing-lg);
    max-width: 200px; /* 모바일에서 카드 크기 조정 */
    min-height: 120px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h3 {
    font-size: 1.1rem;
}

.contact-details p {
    font-size: 1rem;
}

.contact-note {
    padding: var(--spacing-md);
}

.contact-note p {
    font-size: 0.9rem;
}

/* 푸터 */
.footer {
    padding: var(--spacing-lg) 0;
}

.footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

.footer-text p {
    font-size: 0.9rem;
}

.footer-social {
    gap: var(--spacing-sm);
}

.social-link {
    width: 35px;
    height: 35px;
}

/* 플로팅 버튼들 */
.floating-buttons {
    bottom: 20px;
    right: 20px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.floating-button-group {
    gap: 12px;
}

/* 로딩 화면 */
.loading-content h2 {
    font-size: 1.6rem;
}

.music-note {
    font-size: 3rem;
}

.loading-bar {
    width: 150px;
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    bottom: var(--spacing-md);
}

.scroll-arrow {
    font-size: 1.2rem;
}

/* 플로팅 노트 */
.note {
    font-size: 1.5rem;
}

/* 버튼 조정 */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

/* 카드 호버 효과 조정 */
.info-item:hover,
.broadcast-card:hover,
.album-card:hover,
.feature-item:hover,
.contact-card:hover {
    transform: none;
}

/* 터치 디바이스에서 호버 효과 제거 */
@media (hover: none) {
    .info-item:hover,
    .broadcast-card:hover,
    .album-card:hover,
    .feature-item:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* 작은 화면에서 추가 조정 */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-text {
        justify-self: center !important;
        text-align: center !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .title-name {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .image-frame {
        width: 240px;
        height: 240px;
    }
    
    .info-item {
        padding: var(--spacing-sm);
    }
    
    .broadcast-card,
    .album-info,
    .timeline-content,
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .contact-note {
        padding: var(--spacing-sm);
    }
}

/* 모바일 Contact 섹션 강제 설정 */
@media (max-width: 768px) {
    .contact-section .contact-info {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
        justify-items: center !important;
        max-width: 600px !important;
        margin: 0 auto var(--spacing-xl) auto !important;
    }
    
    .contact-section     .contact-card {
        max-width: 200px !important;
        min-height: 140px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* 최근 활동 섹션 모바일 */
    .recent-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }
    
    .recent-card {
        padding: var(--spacing-lg) !important;
    }
    
    .recent-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    /* 수상 섹션 모바일 */
    .awards-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
    }
    
    .award-card {
        padding: var(--spacing-lg) !important;
        background: rgba(30, 30, 30, 0.9) !important;
        border: 1px solid rgba(220, 38, 38, 0.4) !important;
    }
    
    .award-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.8rem !important;
    }
    
    .award-info h3 {
        color: var(--text-light) !important;
    }
    
    .award-desc {
        color: rgba(255, 255, 255, 0.8) !important;
    }
}

/* 가로 모드 대응 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content {
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-text {
        justify-self: center !important;
        text-align: center !important;
    }
    
    .title-name {
        font-size: 2.4rem;
    }
    
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 소셜 버튼 모바일 */
.social-button-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.social-btn {
    min-height: 70px;
    padding: var(--spacing-sm);
}

.social-btn i {
    font-size: 1.3rem;
}

.social-btn span {
    font-size: 0.8rem;
}
