/**
 * Item-Changes Widget – Darstellung wie Item-Build (Itemization), Pfeil-Icons, farbige Ränder
 * @package ChampionGuideSystem
 */

.cg-item-changes {
    width: 100%;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    border: none;
}

.cg-item-changes__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #f0e6d2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(200, 155, 60, 0.3);
}

.cg-item-changes__last-updated {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 12px 0 0 0;
    text-align: left;
}
.cg-item-changes__last-updated:first-child {
    margin-top: 0;
    margin-bottom: 12px;
}

.cg-item-changes__items-row.items-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cg-item-changes-gap, 8px);
    margin-bottom: 12px;
    padding: 0;
    list-style: none;
}

/* Item Wrapper – description via title (native tooltip on hover) */
.cg-item-changes .item-wrapper {
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cg-item-changes .item-image-container {
    position: relative;
    display: inline-block;
}

.cg-item-changes .item-icon {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(200, 155, 60, 0.5);
    border-radius: 6px;
    display: block;
    background: #1e2328;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Buff = green border */
.cg-item-changes .cg-item-changes__item-wrapper--gebufft .item-icon {
    border-color: rgba(0, 180, 80, 0.8);
}
.cg-item-changes .cg-item-changes__item-wrapper--gebufft:hover .item-icon {
    border-color: #00b450;
    box-shadow: 0 0 12px rgba(0, 180, 80, 0.5);
}

/* Nerf = red border */
.cg-item-changes .cg-item-changes__item-wrapper--generft .item-icon {
    border-color: rgba(200, 50, 50, 0.8);
}
.cg-item-changes .cg-item-changes__item-wrapper--generft:hover .item-icon {
    border-color: #c83232;
    box-shadow: 0 0 12px rgba(200, 50, 50, 0.5);
}

/* Angepasst/Rework = yellow border */
.cg-item-changes .cg-item-changes__item-wrapper--angepasst .item-icon {
    border-color: rgba(200, 155, 60, 0.8);
}
.cg-item-changes .cg-item-changes__item-wrapper--angepasst:hover .item-icon {
    border-color: #c89b3c;
    box-shadow: 0 0 12px rgba(200, 155, 60, 0.5);
}

/* Badge = Pfeil-Icon (Buff/Nerf/Rework) – top right, no background */
.cg-item-changes__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 0;
    line-height: 1;
    overflow: visible;
    background: transparent;
}

.cg-item-changes__badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.cg-item-changes__badge--buff,
.cg-item-changes__badge--nerf,
.cg-item-changes__badge--adjusted,
.cg-item-changes__badge--neu {
    background: transparent;
}

/* Fallback: text badge when no icon */
.cg-item-changes__badge.cg-item-changes__badge--text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 5px;
    color: #fff;
}

/* Item price – bottom right, gold icon + number (locale via .gold-icon) */
.cg-item-changes .item-price {
    position: absolute;
    bottom: -8px;
    right: -8px;
    left: auto;
    background: linear-gradient(135deg, #785a28 0%, #c89b3c 100%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0px 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    font-family: monospace;
}

.cg-item-changes .item-price .gold-icon {
    font-size: 12px;
}

/* Item name hidden in item changes widget */
.cg-item-changes .item-name {
    display: none;
}

.cg-item-changes__plaintext {
    display: none;
}

.cg-item-changes__empty {
    margin: 0;
    padding: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

@media (max-width: 768px) {
    .cg-item-changes .item-icon {
        width: 56px;
        height: 56px;
    }
    .cg-item-changes .item-price {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .cg-item-changes .item-icon {
        width: 48px;
        height: 48px;
    }
    .cg-item-changes .item-name {
        font-size: 11px;
        max-width: 60px;
    }
}
