/**
 * 파일명: style.css
 * 파일경로: /home/daintour/musicbox.kr/assets/css/
 * 기능: 커스텀 스타일 (Bootstrap 5 보완)
 * 작성일: 2026-01-07
 * 수정일: 2026-01-07
 */

/* === 기본 설정 === */
:root {
    --primary-color: #CF1A5E;
    --dark-bg: #212529;
    --player-height: 200px;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #1a1a2e;
    color: #ffffff;
    padding-bottom: var(--player-height);
}

/* === 네비게이션 === */
.navbar {
    z-index: 1030;
}

.navbar-brand {
    font-weight: 600;
}

/* === 메인 컨텐츠 === */
main {
    min-height: calc(100vh - var(--player-height));
}

.content-wrapper {
    padding: 20px 15px;
}

/* === 카드 스타일 === */
.card {
    background-color: #16213e;
    border: none;
    border-radius: 12px;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* === 버튼 스타일 === */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #ff5088;
    border-color: #ff5088;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* === 폼 스타일 === */
.form-control, .form-select {
    background-color: #0f0f23;
    border: 1px solid #333;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #0f0f23;
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

.form-control::placeholder {
    color: #888;
}

/* === 리스트 스타일 === */
.list-group-item {
    background-color: #16213e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.list-group-item:hover {
    background-color: #1a2744;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* === 카테고리 탭 === */
.category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #16213e;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab:hover, .category-tab.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* === 플레이리스트 아이템 === */
.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.playlist-item.playing {
    background-color: rgba(255, 107, 157, 0.2);
}

.playlist-item .track-number {
    width: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.playlist-item .track-title {
    flex: 1;
    margin-left: 10px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item .track-actions {
    display: flex;
    gap: 5px;
}

/* === 플레이어 컨테이너 === */
.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    border-top: 1px solid #333;
    z-index: 1020;
}

/* === jPlayer 커스텀 === */
.jp-video {
    margin: 0 auto;
}

.jp-interface {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
}

.jp-playlist ul {
    max-height: 300px;
    overflow-y: auto;
}

/* === 로그인/회원가입 페이지 === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background-color: #16213e;
    border-radius: 16px;
    padding: 30px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary-color);
}

.auth-logo h1 {
    font-size: 24px;
    margin-top: 10px;
}

/* === 인덱스 페이지 === */
.hero-section {
    text-align: center;
    padding: 60px 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
}

.feature-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h5 {
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-box p,
.feature-box .text-muted {
    color: #adb5bd !important;
}

/* === 모바일 최적화 === */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .playlist-item .track-title {
        font-size: 14px;
    }
}

/* === 스크롤바 스타일 === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* === 모달 내 입력 필드 placeholder === */
.modal .form-control::placeholder {
    color: #888 !important;
}

.modal .form-control.bg-dark::placeholder {
    color: #aaa !important;
}