/* BOUTIQUE ET INVENTAIRE */

/* Header */
.shop-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Catégories */
.shop-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.shop-category-btn {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.shop-category-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.shop-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.category-icon {
    font-size: 1.5rem;
}

/* Grille d'items */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Item card */
.shop-item {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Raretés */
.shop-item.rarity-common {
    border-color: #94a3b8;
}

.shop-item.rarity-rare {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.shop-item.rarity-epic {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.shop-item.rarity-legendary {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: legendaryGlow 2s ease-in-out infinite;
}

@keyframes legendaryGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }
}

/* Badge de rareté */
.item-rarity-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rarity-rare .item-rarity-badge {
    background: #3b82f6;
}

.rarity-epic .item-rarity-badge {
    background: #a855f7;
}

.rarity-legendary .item-rarity-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Item content */
.item-icon {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
}

.item-name {
    font-size: 1.3rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.item-duration {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Footer de l'item */
.item-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.item-owned {
    text-align: center;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-buy-item {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-item:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* INVENTAIRE PROFIL */
.profile-inventory-section {
    margin-top: 2rem;
}

.profile-inventory-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.profile-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.inventory-item {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.inventory-item.rarity-rare {
    border-color: #3b82f6;
}

.inventory-item.rarity-epic {
    border-color: #a855f7;
}

.inventory-item.rarity-legendary {
    border-color: #f59e0b;
}

.inventory-item .item-icon {
    font-size: 2.5rem;
    margin: 0;
}

.item-info {
    flex-grow: 1;
}

.item-info .item-name {
    font-size: 1rem;
    text-align: left;
    margin: 0;
}

.item-quantity {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-use-item {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-use-item:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* MODALE D'ATTAQUE */
.attack-modal-content {
    max-width: 600px;
}

.attack-players-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.player-attack-item {
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.player-attack-item:hover {
    background: var(--bg-light);
    border-color: var(--danger-color);
    transform: translateX(5px);
}

.player-attack-item .player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.player-attack-item .player-info {
    flex-grow: 1;
}

.player-attack-item .player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-attack-item .player-capital {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* SCREAMER OVERLAY */
.screamer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaryShake 0.1s infinite;
}

.screamer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scaryShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-10px, -10px) rotate(-5deg); }
    20% { transform: translate(10px, 10px) rotate(5deg); }
    30% { transform: translate(-10px, 10px) rotate(-5deg); }
    40% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-10px, -10px) rotate(-5deg); }
    60% { transform: translate(10px, 10px) rotate(5deg); }
    70% { transform: translate(-10px, 10px) rotate(-5deg); }
    80% { transform: translate(10px, -10px) rotate(5deg); }
    90% { transform: translate(-10px, -10px) rotate(-5deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .shop-items-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-categories {
        gap: 0.5rem;
    }
    
    .shop-category-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .profile-inventory {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .shop-item {
        padding: 1rem;
    }
    
    .item-icon {
        font-size: 3rem;
    }
    
    .item-name {
        font-size: 1.1rem;
    }
    
    .item-price {
        font-size: 1.25rem;
    }
    
    .shop-category-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
    }
}

