/* General */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
}

/* Header */
header {
    background-color: #1e1e1e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #00bfff;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filters input,
.filters select {
    padding: 0.5rem;
    background: #2c2c2c;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

/* Main */
main {
    padding: 2rem;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Item Cards */
.item-card {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.2s ease-in-out, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.item-card:hover {
    transform: scale(1.03);
    border-color: #00bfff;
}

.item-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

/* Item Info */
.item-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.item-price {
    color: #00ff88;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Wear Bar */
.wear-bar {
    height: 10px;
    width: 100%;
    border-radius: 4px;
    margin-top: 0.5rem;
    background: linear-gradient(to right,
            green 0%,
            /* FN */
            #00ff88 7%,
            #a5d6a7 15%,
            /* MW */
            #ffee58 38%,
            /* FT */
            #ffb74d 45%,
            /* WW */
            #e57373 100%
            /* BS */
        );
    position: relative;
}

.wear-indicator {
    position: absolute;
    top: -3px;
    width: 8px;
    height: 16px;
    background-color: #ffffff;
    border: 1px solid #000;
    transform: translateX(-50%);
}

/* Wear Labels */
.wear-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #333;
    color: #777;
    background-color: #1a1a1a;
}