/* 音樂風格分類樣式 */

/* 風格卡片 */
.style-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    min-height: 200px;
    min-width: 200px;
    flex: 1 1 200px;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 風格卡片背景 */
.style-card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.style-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-card:hover .style-card-bg img {
    transform: scale(1.1);
}

/* 風格卡片覆蓋層 */
.style-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.style-card:hover .style-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
}

/* 風格卡片內容 */
.style-card-content {
    position: relative;
    z-index: 3;
}

.style-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.style-card-count {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
}

.style-card-count i {
    margin-right: 0.5rem;
}

/* 風格卡片按鈕 */
.style-card-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.style-card:hover .style-card-button {
    opacity: 1;
    transform: translateY(0);
}

.style-card-button:hover {
    background-color: #FF53B4;
    transform: translateY(0) scale(1.1);
}

/* 風格標籤雲 */
.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.style-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(57, 193, 222, 0.15);
    color: #39C1DE;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(57, 193, 222, 0.3);
}

.style-tag:hover {
    background-color: rgba(57, 193, 222, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.style-tag i {
    margin-right: 0.5rem;
}

.style-tag-count {
    background-color: rgba(57, 193, 222, 0.3);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
}

/* 今日更新區域歌曲頭像播放器按鈕樣式 */
.music-cover-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-cover-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.375rem;
    z-index: 1;
}

.music-cover-wrapper::after {
    content: '\f04b';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #ffffff;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.music-cover-wrapper:hover::before {
    opacity: 1;
}

.music-cover-wrapper:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.music-cover-wrapper:hover img {
    transform: scale(1.05);
}

.music-cover-wrapper img {
    transition: transform 0.3s ease;
    border-radius: 0.375rem;
}

/* 播放狀態下的樣式 */
.music-cover-wrapper.playing::before {
    background-color: rgba(170, 60, 255, 0.7);
    opacity: 1;
}

.music-cover-wrapper.playing::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    color: #ffffff;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .music-cover-wrapper::after {
        font-size: 14px;
    }
}