/* ============================================================
   FEGYVER RAKTÁR – Item V2 build-szerkesztő (soros elrendezés)
   ============================================================ */

#armory-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 28px 60px;
}

.armory-browse-header {
    text-align: center;
    margin-bottom: 28px;
}

.armory-title {
    font-family: "AOW", "Outfit", sans-serif;
    font-size: 2.2rem;
    color: #eaf7ff;
    margin: 0 0 8px;
    letter-spacing: 1px;
}

.armory-subtitle {
    color: var(--c-text-dim);
    font-size: 0.95rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------------- Build-újragenerálás gombok ---------------- */

.armory-regenerate-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11A8 8 0 1 0 18.5 16'/><path d='M20 5v6h-6'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11A8 8 0 1 0 18.5 16'/><path d='M20 5v6h-6'/></svg>");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.armory-regenerate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(200, 170, 110, 0.5);
    background: rgba(10, 9, 6, 0.55);
    color: #ffd24c;
    cursor: pointer;
    transition: opacity var(--t-fast, 0.15s) ease, transform var(--t-fast, 0.15s) ease, border-color var(--t-fast, 0.15s) ease;
}

.armory-regenerate-btn:hover {
    border-color: #ffd24c;
}

.armory-regenerate-btn--all {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-top: 1px solid var(--border-glass);
    border-radius: var(--radius-s, 8px);
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.armory-regenerate-btn--all:hover {
    transform: translateY(-1px);
}

.armory-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
}

.armory-regenerate-btn--row {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    opacity: 0.85;
}

.armory-regenerate-btn--row:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}

/* ---------------- Hőslista ---------------- */

#armory-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.armory-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    border-radius: var(--radius-m, 10px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(200, 170, 110, 0.15);
    transition: border-color var(--t-fast, 0.15s) ease, background var(--t-fast, 0.15s) ease;
}

.armory-row:hover {
    border-color: rgba(200, 170, 110, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.armory-row + .armory-row {
    margin-top: 10px;
}

.armory-row-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 170px;
    flex: 0 0 auto;
}

.armory-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #C8AA6E;
    flex: 0 0 auto;
}

.armory-row-name {
    font-family: "Outfit", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #eaf7ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.armory-row-slots {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.armory-slot-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    border-right: 1px solid rgba(200, 170, 110, 0.2);
}

.armory-slot-group:last-child {
    border-right: none;
    padding-right: 0;
}

/* ---------------- Slotok ---------------- */

.armory-build-slot {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 26, 18, 0.55), rgba(10, 9, 6, 0.55));
    border: 1px dashed rgba(200, 170, 110, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex: 0 0 auto;
    transition: border-color var(--t-fast, 0.15s) ease, transform var(--t-fast, 0.15s) ease;
}

.armory-build-slot:hover {
    border-color: #C8AA6E;
    transform: scale(1.06);
}

.armory-build-slot-index {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(200, 170, 110, 0.7);
}

.armory-build-slot.is-filled {
    border-style: solid;
    padding: 0;
}

.armory-build-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.armory-build-slot-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(10, 9, 6, 0.85);
    border: 1px solid rgba(200, 170, 110, 0.6);
    color: #eaf7ff;
    font-size: 9px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.armory-build-slot-remove:hover {
    background: rgba(200, 60, 40, 0.85);
}

.armory-slot-group-starter .armory-starter-slot {
    border-color: rgba(76, 212, 255, 0.5);
}

.armory-slot-group-build {
    gap: 8px;
}

/* ---------------- Fogyóeszköz csoport ---------------- */

.armory-slot-group-consumable {
    gap: 16px;
}

.armory-consumable-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.armory-consumable-maxcount {
    width: 44px;
    padding: 6px 6px;
    border-radius: 6px;
    background: rgba(10, 9, 6, 0.55);
    border: 1px solid rgba(200, 170, 110, 0.5);
    color: #eaf7ff;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
}

.armory-consumable-maxcount:focus {
    outline: none;
    border-color: #C8AA6E;
}

/* ---------------- Bolt gomb (sor végén, még inaktív) ---------------- */

.armory-row-shop-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: none;
    background-color: #ffd24c;
    -webkit-mask-image: url('../image/icons/shop.png');
    mask-image: url('../image/icons/shop.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity var(--t-fast, 0.15s) ease, transform var(--t-fast, 0.15s) ease;
}

.armory-row-shop-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ---------------- Tárgyválasztó popup ---------------- */

.armory-popup {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay, 900);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 5, 3, 0.7);
    opacity: 1;
    transition: opacity var(--t-fast, 0.15s) ease;
}

.armory-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

#armory-popup-window {
    width: min(720px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, rgba(16, 22, 30, 0.97), rgba(6, 9, 13, 0.97));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #C8AA6E;
    border-radius: var(--radius-m, 10px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
    padding: 16px;
}

#armory-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#armory-popup-title {
    font-family: "SpectralBold", serif;
    font-size: 1.05rem;
    color: #C8AA6E;
    letter-spacing: 0.5px;
}

#armory-popup-close {
    padding: 4px 10px;
}

.armory-popup-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    color: rgba(240, 230, 210, 0.75);
    cursor: pointer;
    user-select: none;
    flex: 0 0 auto;
}

.armory-popup-toggle input[type="checkbox"] {
    accent-color: #C8AA6E;
    cursor: pointer;
}

.armory-popup-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding-right: 4px;
}

.armory-popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 110, 0.22);
    border-radius: var(--radius-s, 6px);
    padding: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.armory-popup-item:hover {
    border-color: #C8AA6E;
    background: rgba(200, 170, 110, 0.1);
    transform: scale(1.05);
}

.armory-popup-item.is-selected {
    border-color: #C8AA6E;
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
}

.armory-popup-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.armory-popup-item span {
    font-size: 9px;
    color: rgba(240, 230, 210, 0.6);
    text-align: center;
    line-height: 1.2;
}

.armory-popup-empty {
    color: var(--c-text-dim);
    font-size: 0.85rem;
    padding: 12px 4px;
    grid-column: 1 / -1;
    text-align: center;
}

.armory-popup-desc {
    border-top: 1px solid rgba(200, 170, 110, 0.25);
    padding-top: 10px;
    min-height: 60px;
}

.armory-popup-desc-name {
    font-family: "SpectralBold", serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #C8AA6E;
    margin-bottom: 4px;
    min-height: 16px;
}

.armory-popup-desc-text {
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(240, 230, 210, 0.75);
}

/* ---------------- Reszponzív ---------------- */

@media (max-width: 900px) {
    .armory-row {
        flex-wrap: wrap;
    }

    .armory-row-actions {
        margin-left: 0;
    }
}
