/* 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 네비게이션 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.navbar-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    flex-wrap: wrap;
}

.navbar-menu li a {
    display: block;
    padding: 10px 18px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar-menu li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.navbar-menu li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 메인 컨테이너 */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
}

.content-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

/* 제목 */
h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    margin-top: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 설명 텍스트 */
.description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    color: #856404;
    font-weight: 500;
}

/* 플레이어 컨테이너 */
.player-wrapper {
    margin: 30px 0;
}

/* 컨트롤 패널 */
.control-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.control-group {
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* 선택 박스 */
select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    min-width: 200px;
}

select:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 코드 블록 */
pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

/* 리스트 */
ul {
    margin-left: 20px;
    color: #666;
    line-height: 2;
}

ul li {
    margin-bottom: 8px;
}

ul li strong {
    color: #667eea;
}

/* 정보 박스 */
.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #0d47a1;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #1b5e20;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #e65100;
}

/* 북마크 리스트 */
.bookmark-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.bookmark-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bookmark-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.bookmark-info {
    flex: 1;
}

.bookmark-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bookmark-time {
    color: #999;
    font-size: 0.9rem;
}

.bookmark-actions {
    display: flex;
    gap: 8px;
}

/* 플레이리스트 */
.playlist-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.playlist-items {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.playlist-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.playlist-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.playlist-item-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 피처 그리드 (홈페이지용) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-title {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* 반응형 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .navbar-menu {
        margin-top: 15px;
    }
    
    .content-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .playlist-container {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
