.enchantment-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #8B4513;
    background: #D2B48C;
    color: #4A4A4A;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #DEB887;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #8B4513;
    color: white;
}

.enchantments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.enchant-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #8B4513;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
    border-color: #D2691E;
}

.enchant-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 8px;
    text-align: center;
}

.enchant-max-level {
    background: #8B4513;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.9em;
    position: absolute;
    top: 10px;
    right: 10px;
}

.enchant-description {
    color: #5A5A5A;
    margin-bottom: 12px;
    line-height: 1.4;
}

.enchant-applies-to {
    background: #E6F3FF;
    border: 1px solid #4A90E2;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9em;
    color: #2C5282;
}

.enchant-applies-to strong {
    color: #1A365D;
}

.enchant-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.enchant-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #8B4513;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.enchant-title {
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.enchant-info {
    color: #4A4A4A;
    line-height: 1.6;
}

.enchant-info h3 {
    color: #8B4513;
    margin-top: 20px;
    margin-bottom: 10px;
}

.enchant-info ul {
    padding-left: 20px;
}

.enchant-info li {
    margin-bottom: 5px;
}

.enchant-conflicts {
    background: #FFE6E6;
    border: 1px solid #FF6B6B;
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
}

.enchant-conflicts strong {
    color: #D63031;
}

.how-to-get {
    background: #E6F7FF;
    border: 1px solid #1890FF;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.how-to-get h4 {
    color: #0050B3;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .enchantments-grid {
        grid-template-columns: 1fr;
    }

    .enchant-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}