/* FPS Loadout Panel */
.fps-loadout-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    overflow: hidden;
}

.fps-loadout-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.fps-loadout-panel .panel-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A90E2;
}

.fps-loadout-panel .close-panel-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.fps-loadout-panel .close-panel-btn:hover {
    color: #ff5555;
}

/* Loadout Description */
.loadout-description {
    padding: 1rem 1.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    margin: 1rem 1.5rem;
    border-radius: 4px;
}

.loadout-description p {
    margin: 0;
    font-size: 0.9rem;
    color: #ecf0f1;
}

/* Loadout Content */
.loadout-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Loadout Grid */
.loadout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Loadout Slot */
.loadout-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 180px;
}

.loadout-slot:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.loadout-slot.equipped {
    border-color: rgba(46, 204, 113, 0.5);
}

.loadout-slot.empty {
    border-color: rgba(255, 255, 255, 0.15);
    border-style: dashed;
}

/* Slot Header */
.slot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-icon {
    font-size: 1.75rem;
}

.slot-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4A90E2;
}

/* Empty State */
.slot-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1rem;
}

.empty-text {
    font-size: 0.9rem;
    color: #666;
}

.equip-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid #4A90E2;
    border-radius: 6px;
    color: #4A90E2;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.equip-btn:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

/* Equipped Info */
.slot-equipped-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.equipped-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.equipped-tier {
    font-size: 0.85rem;
    color: #999;
}

.equipped-effect {
    font-size: 0.9rem;
    color: #4A90E2;
    font-style: italic;
    padding: 0.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
    margin-top: auto;
}

/* Slot Actions */
.slot-actions {
    display: flex;
    gap: 0.5rem;
}

.change-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid #4A90E2;
    border-radius: 4px;
    color: #4A90E2;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.change-btn:hover {
    background: rgba(74, 144, 226, 0.3);
}

.unequip-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.unequip-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* Loadout Actions */
.loadout-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.save-loadout-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-loadout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.save-loadout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-loadout-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 6px;
    color: #e74c3c;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-loadout-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* Item Selection Modal */
.item-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #4A90E2;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #ff5555;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

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

.selectable-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.selectable-item:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4A90E2;
    transform: translateY(-2px);
}

.selectable-item .item-name {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.selectable-item .item-uses,
.selectable-item .item-quantity {
    font-size: 0.85rem;
    color: #999;
}

/* No Items Message */
.no-items-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: #666;
}

.no-items-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.no-items-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
}

.no-items-hint {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Loading State */
.loadout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top-color: #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loadout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .loadout-actions {
        flex-direction: column;
    }

    .item-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}
