/* Instruments Channel Styles - PC Version */

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 16px;
    align-items: stretch;
    justify-items: stretch;
}

.instrument-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.instrument-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.instrument-card:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    z-index: 10;
}

.instrument-card:hover::before {
    opacity: 1;
}

.instrument-card:active {
    transform: scale(0.98) translateY(0);
    transition: transform 0.1s ease;
}

/* Icon style */
.instrument-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.instrument-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.instrument-card:hover .instrument-icon {
    transform: scale(1.1);
    color: var(--accent-primary);
}

/* Label style */
.instrument-label {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.instrument-chinese {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.instrument-card:hover .instrument-chinese {
    color: var(--accent-primary);
}

.instrument-name {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.instrument-card:hover .instrument-name {
    opacity: 1;
}

/* Large Desktop: 1440px and up */
@media (min-width: 1440px) {
    .instruments-grid {
        gap: 14px;
        padding: 18px;
    }
    
    .instrument-card {
        padding: 18px 14px;
        min-height: 110px;
    }
    
    .instrument-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
}
