/* ===================================
   모바일 웹사이트 스타일시트
   =================================== */

/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ===================================
   모바일 헤더
   =================================== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.header-left,
.header-right {
    flex: 0 0 auto;
    width: 40px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.logo i {
    font-size: 24px;
}

.user-icon,
.login-btn,
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #667eea;
}

.google-login-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.google-login-btn:active {
    transform: scale(0.9);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===================================
   모바일 사이드 네비게이션
   =================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.nav-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active .nav-content {
    transform: translateX(0);
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.nav-header h3 {
    font-size: 18px;
    font-weight: bold;
}

.nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

/* 사용자 정보 영역 */
.nav-user-info {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile .profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.user-details p {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu {
    list-style: none;
    padding: 8px 0;
    flex: 1;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    transition: background 0.2s;
}

.nav-menu li a:active {
    background: #f5f5f5;
}

.nav-menu li a i {
    width: 20px;
    text-align: center;
    color: #667eea;
}

/* 메뉴 섹션 타이틀 */
.nav-section-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    list-style: none;
}

.nav-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

.nav-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* ===================================
   메인 컨텐츠
   =================================== */
.main-content {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    padding-bottom: 20px;
}

/* ===================================
   수다 채널 바
   =================================== */
.suda-channels-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    margin-top: 40px;
}

.channels-header {
    text-align: center;
    margin-bottom: 30px;
}

.suda-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.channels-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.channel-card:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.channel-info {
    text-align: center;
}

.channel-info h4 {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.channel-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   푸터
   =================================== */
.footer {
    background: #2d3748;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #667eea;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.developer-info {
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   반응형 조정
   =================================== */
@media (min-width: 768px) {
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
