/* Styles for item tags in wiki content */

.item-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 2px; 
    font-size: 0.9em;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.item-tag:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
} 

.item-icon {
    width: 32px;
    height: 32px;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: contain;
}

.item-name {
    font-weight: 500;
}

/* Styles for skill tags in wiki content */

.skill-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 100, 200, 0.1);
    border: 1px solid rgba(0, 100, 200, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 2px; 
    font-size: 0.9em;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.skill-tag:hover {
    background-color: rgba(0, 100, 200, 0.2);
    border-color: rgba(0, 100, 200, 0.3);
    box-shadow: 0 1px 3px rgba(0, 100, 200, 0.2);
} 

.skill-icon {
    width: 32px;
    height: 32px;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: contain;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 4px;
}

/* Item popup styles */
.item-popup {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    font-size: 0.9em;
    pointer-events: none;
}

.item-popup .item-popup-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.item-popup .item-popup-description {
    margin: 0;
    line-height: 1.4;
}

/* Dark theme styles */
body.dark-theme .item-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

body.dark-theme .item-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .skill-tag {
    background-color: rgba(100, 150, 255, 0.1);
    border: 1px solid rgba(100, 150, 255, 0.2);
    color: var(--color-text);
}

body.dark-theme .skill-tag:hover {
    background-color: rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.3);
}

body.dark-theme .item-popup {
    background: #2d2d2d;
    border: 1px solid #555;
    color: var(--color-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    .item-tag, .skill-tag {
        font-size: 0.85em;
        padding: 1px 4px;
    }
    
    .item-icon, .skill-icon {
        width: 14px;
        height: 14px;
    }
}