/* ==========================================
   공용음원 페이지 스타일
   ========================================== */

.shared-music-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: var(--bg-black);
}

/* 헤더 */
.shared-music-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease;
}

.header-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.header-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* 검색 및 필터 */
.music-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 통계 */
.music-stats {
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-size: 1rem;
    animation: fadeInUp 0.8s ease;
}

.music-stats strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 음원 그리드 */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.music-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
}

.music-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
}

.music-thumbnail {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.music-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-button-large {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.music-card:hover .play-button-large {
    transform: scale(1.15);
    background: #0052cc;
}

.music-info {
    padding: 1.8rem;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.music-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.music-type-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-original {
    background: rgba(0, 200, 100, 0.2);
    color: #00C864;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

.badge-instrumental {
    background: rgba(138, 43, 226, 0.2);
    color: #8A2BE2;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.music-artist {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-artist i {
    color: var(--primary-color);
}

.music-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
    width: 20px;
}

.track-code {
    font-family: 'Courier New', monospace;
    color: var(--text-white);
    font-weight: 600;
}

.music-genre {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-dots {
    color: var(--text-gray);
    padding: 0 0.5rem;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.loading i {
    margin-right: 0.8rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info p,
.footer-links li,
.footer-contact li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 반응형 */
@media (max-width: 768px) {
    .shared-music-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
        justify-content: center;
    }
    
    .header-icon {
        font-size: 3rem;
        margin-top: 1rem;
    }
    
    .music-controls {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .music-grid {
        grid-template-columns: 1fr;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
