@charset "utf-8";

/* 컨테이너 */
#container {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.main_title {
    font-family: 'NanumSquareNeo-dEb', sans-serif;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sub_title {
    font-family: 'NanumSquareNeo-cBd', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* 악기 그리드 */
.instruments_grid {
    width: 100%;
    max-width: 1600px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* 카테고리 섹션 */
.category_section {
    animation: fadeInUp 0.8s ease-out;
}

.category_title {
    font-family: 'NanumSquareNeo-dEb', sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #ffd700;
}

/* 악기 행 */
.instruments_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 악기 카드 */
.instrument_card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
}

.instrument_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instrument_card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.instrument_card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(102, 126, 234, 0.3),
        0 0 15px 2px rgba(102, 126, 234, 0.6),
        0 0 30px 4px rgba(118, 75, 162, 0.5),
        0 0 50px 6px rgba(102, 126, 234, 0.3),
        inset 0 0 80px rgba(102, 126, 234, 0.1);
}

.instrument_card:hover::before {
    opacity: 1;
}

.instrument_card:hover::after {
    transform: scaleX(1);
}

.card_number {
    font-family: 'NanumSquareNeo-dEb', sans-serif;
    font-size: 24px;
    color: #667eea;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.instrument_card:hover .card_number {
    color: #764ba2;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.card_content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.instrument_name {
    font-family: 'NanumSquareNeo-dEb', sans-serif;
    font-size: 18px;
    color: #333333;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.instrument_card:hover .instrument_name {
    color: #667eea;
}

.instrument_desc {
    font-family: 'NanumSquareNeo-cBd', sans-serif;
    font-size: 11px;
    color: #888888;
    transition: all 0.3s ease;
}

.instrument_card:hover .instrument_desc {
    color: #764ba2;
}

/* 푸터 */
.footer {
    margin-top: 20px;
}

.footer img {
    height: 35px;
    width: auto;
    opacity: 0.8;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 1400px) {
    .main_title {
        font-size: 32px;
    }

    .category_title {
        font-size: 18px;
    }

    .instruments_row {
        gap: 12px;
    }

    .instrument_card {
        padding: 10px 12px;
        gap: 10px;
    }

    .card_number {
        font-size: 22px;
        min-width: 36px;
    }

    .instrument_name {
        font-size: 16px;
    }

    .instrument_desc {
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .main_title {
        font-size: 28px;
    }

    .instruments_row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .instrument_card {
        padding: 10px;
        gap: 8px;
    }

    .card_number {
        font-size: 20px;
        min-width: 32px;
    }

    .instrument_name {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main_title {
        font-size: 24px;
    }

    .sub_title {
        font-size: 14px;
    }

    .category_title {
        font-size: 16px;
    }

    .instruments_row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .instrument_card {
        padding: 8px;
        gap: 8px;
    }

    .card_number {
        font-size: 18px;
        min-width: 28px;
    }

    .instrument_name {
        font-size: 14px;
    }

    .instrument_desc {
        font-size: 9px;
    }
}
