/*
Theme Name: La Forge - GardeLibre
Author: Joseph & Associé
Version: 1.1
*/

/* 1. VARIABLES DE L'UNIVERS */
:root {
    --noir: #050505;
    --acier: #E8ECEF;
    --vert: #00FF41;
    --vert-alpha: rgba(0, 255, 65, 0.15);
    --jaune-electron: #FFD700;
    --cuir: #12100E;
    --container: 1100px;
}

/* 2. RESET & BASE */
body {
    background-color: var(--noir);
    color: var(--vert);
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { color: var(--acier); text-transform: uppercase; letter-spacing: 3px; }
a { text-decoration: none; color: inherit; }

.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 3. HEADER & NAVIGATION */
#blade-header {
    border-bottom: 1px solid var(--vert-alpha);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-weight: bold; font-size: 1.4rem; text-shadow: 0 0 8px var(--vert); }

.btn-forge {
    background: transparent;
    border: 1px solid var(--vert);
    color: var(--vert);
    padding: 10px 20px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-forge:hover {
    background: var(--vert);
    color: var(--noir);
    box-shadow: 0 0 15px var(--vert);
}

/* 4. BOOT SEQUENCE (OVERLAY) */
#guard-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.terminal-text { font-size: 1.1rem; margin-bottom: 10px; }
.fade-out { opacity: 0; visibility: hidden; }

/* 5. GRILLE D'INVENTAIRE (CS:GO STYLE) */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1px;
    background-color: var(--vert-alpha);
    border: 1px solid var(--vert-alpha);
}

.inventory-item {
    background-color: var(--noir);
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
}

.inventory-item:hover {
    background-color: var(--cuir);
    box-shadow: inset 0 0 30px var(--vert-alpha);
}

.item-rarity {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.6rem;
    color: var(--vert);
    opacity: 0.6;
    letter-spacing: 1px;
}

.item-image {
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inventory-item:hover .item-image img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.15) rotate(2deg);
}

.item-info {
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding-top: 15px;
}

.item-name {
    font-size: 0.85rem;
    color: var(--acier);
    text-transform: uppercase;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    color: var(--jaune-electron);
    font-weight: bold;
    font-size: 1rem;
}

.item-region {
    font-size: 0.65rem;
    color: var(--vert);
    opacity: 0.5;
    margin-top: 2px;
}

/* 6. FOOTER */
#roots-footer {
    border-top: 1px solid var(--vert-alpha);
    padding: 60px 0;
    margin-top: 80px;
    opacity: 0.4;
    font-size: 0.75rem;
    text-align: center;
}