:root {
    --bg-dark: #0a0e27;
    --bg-card: #151934;
    --bg-hover: #1e2442;
    --primary: #6c5ce7;
    --primary-hover: #5b4cdb;
    --secondary: #00b894;
    --text: #e0e0e0;
    --text-dim: #a0a0a0;
    --legendary: #ff6b35;
    --epic: #a855f7;
    --rare: #3b82f6;
    --common: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.featured-items {
    padding: 2rem 0 4rem;
}

.featured-items h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.item-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

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

.item-card.legendary {
    border-color: var(--legendary);
}

.item-card.epic {
    border-color: var(--epic);
}

.item-card.rare {
    border-color: var(--rare);
}

.item-card.common {
    border-color: var(--common);
}

.item-image {
    height: 200px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.item-info {
    padding: 1.5rem;
}

.rarity-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.legendary .rarity-badge {
    background: var(--legendary);
    color: white;
}

.epic .rarity-badge {
    background: var(--epic);
    color: white;
}

.rare .rarity-badge {
    background: var(--rare);
    color: white;
}

.common .rarity-badge {
    background: var(--common);
    color: white;
}

.item-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-add:hover {
    background: var(--primary-hover);
}

footer {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}
