/* Inventory Specific Styles */

/* Inventory Header */
.inventory-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    margin-top: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.stat-item i {
    font-size: 1.5rem;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
}

/* Inventory Controls */
.inventory-controls {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
}

.controls-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: end;
}

.filter-section,
.sort-section,
.search-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section h3,
.sort-section h3,
.search-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00d4ff;
    color: white;
    border-color: #00d4ff;
}

.sort-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
}

.sort-select option {
    background: #1a1a2e;
    color: #fff;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #ccc;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: #666;
}

/* Inventory Grid Section */
.inventory-grid-section {
    padding: 40px 0 80px;
}

.inventory-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.inventory-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #fff;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: #00d4ff;
    color: white;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.inventory-item:hover::before {
    left: 100%;
}

.inventory-item:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.item-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-rarity {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.item-value {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.item-date {
    color: #666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Rarity Colors */
.rarity.common {
    background: #4a4a4a;
    color: #fff;
}

.rarity.rare {
    background: #4a90e2;
    color: #fff;
}

.rarity.epic {
    background: #9b59b6;
    color: #fff;
}

.rarity.legendary {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: #fff;
}

/* Empty Inventory */
.empty-inventory {
    text-align: center;
    padding: 80px 20px;
}

.empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-content i {
    font-size: 4rem;
    color: #666;
    margin-bottom: 20px;
}

.empty-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.empty-content p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff4757;
}

.modal-body {
    padding: 30px;
}

.item-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.item-icon-large {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-info .item-rarity {
    margin-bottom: 10px;
}

.item-value,
.item-date {
    color: #ccc;
    margin-bottom: 5px;
}

.item-description {
    color: #999;
    line-height: 1.6;
    margin-top: 15px;
}

.item-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* List View */
.inventory-grid.list-view {
    grid-template-columns: 1fr;
}

.inventory-grid.list-view .inventory-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 15px 20px;
}

.inventory-grid.list-view .item-icon {
    font-size: 2rem;
    margin-right: 20px;
    margin-bottom: 0;
    width: 60px;
    text-align: center;
}

.inventory-grid.list-view .item-details {
    flex: 1;
}

.inventory-grid.list-view .item-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.inventory-grid.list-view .item-rarity {
    margin-right: 10px;
}

.inventory-grid.list-view .item-value {
    margin-left: auto;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inventory-stats {
        gap: 30px;
    }

    .controls-content {
        grid-template-columns: 1fr;
    }

    .inventory-info {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .item-detail {
        flex-direction: column;
        text-align: center;
    }

    .item-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .inventory-item {
        padding: 15px;
    }

    .item-icon {
        font-size: 2rem;
    }

    .item-name {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
