#inventory-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--menu-bg);
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

#inventory-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

#inventory-page h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.inventory-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-button.active {
    background: var(--gradient-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.inventory-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
}

.inventory-item.selected {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.inventory-item.selected .select-button {
    background: #4CAF50;
    cursor: default;
    opacity: 0.8;
}

.inventory-item.selected .select-button:hover {
    transform: none;
    box-shadow: none;
}

.select-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.select-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.item-preview {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.default-blade {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.default-blade::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 5px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: slashPreview 2s infinite;
}

.default-theme {
    background: radial-gradient(circle at center, #222 0%, #000 100%);
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-theme::before {
    content: '🎮';
    font-size: 2rem;
    opacity: 0.5;
}

.blue-blade {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.blue-blade::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 5px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(30, 144, 255, 0.8) 50%,
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.7);
    animation: slashPreview 2s infinite;
}

.easter-blade {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.easter-blade::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 5px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(119, 221, 119, 0.8) 50%,
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(119, 221, 119, 0.7);
    animation: slashPreview 2s infinite;
}

.pink-theme-preview {
    position: relative;
    background: linear-gradient(135deg, #ffe8f3 0%, #ffc1e3 100%);
    overflow: hidden;
}

.green-theme-preview {
    position: relative;
    background: linear-gradient(135deg, #e8ffe8 0%, #90ee90 100%);
    overflow: hidden;
}

.preview-egg {
    position: absolute;
    width: 30px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: eggFallPreview linear infinite;
    opacity: 0.8;
}

@keyframes slashPreview {
    0% {
        transform: translateX(-100%) rotate(-45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes eggFallPreview {
    0% { 
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(140px) rotate(360deg);
        opacity: 0;
    }
}

.inventory-item h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.select-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.select-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.locked-overlay {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

.item-description {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
}

.inventory-item.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.inventory-item.locked:hover {
    opacity: 0.8;
}

#inventory-back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #333, #444);
    color: white;
    padding: 15px 35px;
    font-size: 18px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

#inventory-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .item-preview {
        height: 120px;
    }

    .inventory-item h3 {
        font-size: 1rem;
    }
}